• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SdkComboBox类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中consulo.roots.ui.configuration.SdkComboBox的典型用法代码示例。如果您正苦于以下问题:Java SdkComboBox类的具体用法?Java SdkComboBox怎么用?Java SdkComboBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SdkComboBox类属于consulo.roots.ui.configuration包,在下文中一共展示了SdkComboBox类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initComponents

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
@Override
protected void initComponents()
{
	myModuleBox = new ComboBox();
	myModuleBox.setRenderer(new ModuleListCellRenderer());

	myVmParametersComponent = LabeledComponent.create(new RawCommandLineEditor(), "VM arguments");
	myVmParametersComponent.setLabelLocation(BorderLayout.WEST);
	copyDialogCaption(myVmParametersComponent);

	myUseAlternativeBundleCheckBox = new JCheckBox("Use alternative bundle: ");
	ProjectSdksModel projectSdksModel = new ProjectSdksModel();
	projectSdksModel.reset();

	myAlternativeBundleComboBox = new SdkComboBox(projectSdksModel, Conditions.<SdkTypeId>is(NodeJSBundleType.getInstance()), true);
	myAlternativeBundleComboBox.setEnabled(false);
	myUseAlternativeBundleCheckBox.addItemListener(new ItemListener()
	{
		@Override
		public void itemStateChanged(ItemEvent e)
		{
			myAlternativeBundleComboBox.setEnabled(myUseAlternativeBundleCheckBox.isSelected());
		}
	});
	super.initComponents();
}
 
开发者ID:consulo,项目名称:consulo-nodejs,代码行数:27,代码来源:NodeJSConfigurationPanelBase.java


示例2: createEditor

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
@NotNull
@Override
protected JComponent createEditor()
{
	JPanel verticalLayout = new JPanel(new VerticalFlowLayout(0, 0));

	ProjectSdksModel model = new ProjectSdksModel();
	model.reset();

	myBundleBox = new SdkComboBox(model, Conditions.equalTo(myBundleType), true);
	verticalLayout.add(LabeledComponent.left(myBundleBox, J2EEBundle.message("label.run.configuration.properties.application.server")));

	JPanel openBrowserPanel = new JPanel();
	openBrowserPanel.setBorder(IdeBorderFactory.createTitledBorder("Open browser"));
	verticalLayout.add(openBrowserPanel);

	if(myBundleType.isJreCustomizable())
	{
		AlternativeJREPanel panel = new AlternativeJREPanel();
		verticalLayout.add(panel);
	}

	verticalLayout.add(mySettingsWrapper);

	return verticalLayout;
}
 
开发者ID:consulo,项目名称:consulo-javaee,代码行数:27,代码来源:JavaEEServerConfigurationEditor.java


示例3: NodeJSNewModuleBuilderPanel

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
public NodeJSNewModuleBuilderPanel()
{
	super(new VerticalFlowLayout());

	ProjectSdksModel model = new ProjectSdksModel();
	model.reset();

	myComboBox = new SdkComboBox(model, Conditions.equalTo(NodeJSBundleType.getInstance()), false);

	add(LabeledComponent.create(myComboBox, "Bundle").setLabelLocation(BorderLayout.WEST));
}
 
开发者ID:consulo,项目名称:consulo-nodejs,代码行数:12,代码来源:NodeJSNewModuleBuilderPanel.java


示例4: insertCustomSdkItems

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
@Override
public void insertCustomSdkItems(@Nullable DotNetSimpleModuleExtension extension, @NotNull SdkComboBox comboBox)
{
	if(extension == null)
	{
		return;
	}

	if(extension.getId().equals(getExtensionId()))
	{
		Sdk sdk = extension.getSdk();
		if(sdk == null)
		{
			return;
		}

		VirtualFile homeDirectory = sdk.getHomeDirectory();
		if(homeDirectory == null)
		{
			return;
		}

		VirtualFile child = homeDirectory.findChild(CSharpCompilerUtil.COMPILER_NAME);
		if(child != null)
		{
			comboBox.insertCustomSdkItem(CSharpModuleExtension.INTERNAL_SDK_KEY, "<internal>", getIcon());
		}
	}
}
 
开发者ID:consulo,项目名称:consulo-csharp,代码行数:30,代码来源:BaseInternalCompilerProvider.java


示例5: CSharpSdkPanel

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
public CSharpSdkPanel()
{
	super(new VerticalFlowLayout());

	myTargetComboBox = new ComboBox<>(DotNetTarget.values());
	myTargetComboBox.setRenderer(new ColoredListCellRenderer<DotNetTarget>()
	{
		@Override
		protected void customizeCellRenderer(@NotNull JList<? extends DotNetTarget> jList, DotNetTarget target, int i, boolean b, boolean b1)
		{
			append(target.getDescription());
		}
	});
	add(myTargetComponent = LabeledComponent.left(myTargetComboBox, "Target"));

	List<String> validSdkTypes = new SmartList<>();
	for(Map.Entry<String, String[]> entry : CSharpNewModuleBuilder.ourExtensionMapping.entrySet())
	{
		// need check C# extension
		ModuleExtensionProviderEP providerEP = ModuleExtensionProviders.findProvider(entry.getValue()[1]);
		if(providerEP == null)
		{
			continue;
		}
		validSdkTypes.add(entry.getKey());
	}

	ProjectSdksModel model = new ProjectSdksModel();
	model.reset();

	myComboBox = new SdkComboBox(model, sdkTypeId -> validSdkTypes.contains(sdkTypeId.getName()), false);

	add(LabeledComponent.left(myComboBox, ".NET SDK"));
}
 
开发者ID:consulo,项目名称:consulo-csharp,代码行数:35,代码来源:CSharpSdkPanel.java


示例6: JrePathEditor

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
/**
 * This constructor can be used in UI forms
 */
public JrePathEditor()
{
	ProjectSdksModel model = new ProjectSdksModel();
	model.reset();

	mySdkComboBox = new SdkComboBox(model, id -> Objects.equals(JavaSdk.getInstance(), id), null, "Auto Select", AllIcons.Actions.FindPlain);

	myLabeledComponent = LabeledComponent.create(mySdkComboBox, JavaExecutionBundle.message("run.configuration.jre.label"));

	setContent(myLabeledComponent);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:15,代码来源:JrePathEditor.java


示例7: JavaNewModuleBuilderPanel

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
public JavaNewModuleBuilderPanel()
{
	super(new VerticalFlowLayout());

	ProjectSdksModel sdksModel = new ProjectSdksModel();
	sdksModel.reset();

	myComboBox = new SdkComboBox(sdksModel, Conditions.instanceOf(JavaSdk.class), false);

	add(LabeledComponent.create(myComboBox, "JDK").setLabelLocation(BorderLayout.WEST));
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:12,代码来源:JavaNewModuleBuilderPanel.java


示例8: insertCustomSdkItems

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
public void insertCustomSdkItems(@Nullable DotNetSimpleModuleExtension extension, @NotNull SdkComboBox comboBox)
{
}
 
开发者ID:consulo,项目名称:consulo-csharp,代码行数:4,代码来源:CSharpCompilerProvider.java


示例9: isAlternativeJreSelected

import consulo.roots.ui.configuration.SdkComboBox; //导入依赖的package包/类
public boolean isAlternativeJreSelected()
{
	SdkComboBox.SdkComboBoxItem selectedItem = mySdkComboBox.getSelectedItem();
	return !(selectedItem instanceof SdkComboBox.NullSdkComboBoxItem);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:6,代码来源:JrePathEditor.java



注:本文中的consulo.roots.ui.configuration.SdkComboBox类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Mapper类代码示例发布时间:2022-05-22
下一篇:
Java ConnectableFlux类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap