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

Java RawCommandLineEditor类代码示例

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

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



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

示例1: createUIComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
private void createUIComponents() {
    testScope = new TextFieldWithBrowseButton();
    testScope.addBrowseFolderListener(null, null, project, FileChooserDescriptorFactory.createSingleFileOrFolderDescriptor());

    testerExecutable = new TextFieldWithBrowseButton();
    testerExecutable.addBrowseFolderListener(null, null, project, FileChooserDescriptorFactory.createSingleFileOrFolderDescriptor());

    testerOptions = new RawCommandLineEditor();
    testerOptions.setDialogCaption("Options");

    userSetupScript = new TextFieldWithBrowseButton();
    userSetupScript.addBrowseFolderListener(null, null, project, FileChooserDescriptorFactory.createSingleFileDescriptor("php"));

    testScopeLabel = new JBLabel(TesterBundle.message("runConfiguration.editor.tester.testScope"));
    testerExecutableLabel = new JBLabel(TesterBundle.message("runConfiguration.editor.tester.testerExecutable"));
    testerOptionsLabel = new JBLabel(TesterBundle.message("runConfiguration.editor.tester.testerOptions"));
    setupScriptLabel = new JBLabel(TesterBundle.message("runConfiguration.editor.tester.setupScript"));
}
 
开发者ID:jiripudil,项目名称:intellij-nette-tester,代码行数:19,代码来源:TesterSettingsEditor.java


示例2: createUIComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
private void createUIComponents() {
  myParallelBuildDocHyperlinkLabel =
    createHyperlinkLabel("This option is in \"incubation\" and should only be used with ", "decoupled projects", ".",
                         "http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects");

  myCommandLineOptionsDocHyperlinkLabel =
    createHyperlinkLabel("Example: --stacktrace --debug (for more information, please read Gradle's ", "documentation", ".)",
                         "http://www.gradle.org/docs/current/userguide/gradle_command_line.html");

  myConfigureOnDemandDocHyperlinkLabel =
    createHyperlinkLabel("This option may speed up builds. This option is in \"incubation.\" Please read Gradle's ", "documentation", ".",
                         "http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:configuration_on_demand");

  myCommandLineOptionsEditor = new RawCommandLineEditor();
  myCommandLineOptionsEditor.setDialogCaption("Command-line Options");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:GradleCompilerSettingsConfigurable.java


示例3: createEditor

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
@Override
protected JComponent createEditor() {
  vmParameters.setText("VM options:");
  vmParameters.setComponent(new RawCommandLineEditor());
  vmParameters.getComponent().setDialogCaption(vmParameters.getRawText());
  vmParameters.setLabelLocation(BorderLayout.WEST);

  programParameters.setText("Program arguments");
  programParameters.setComponent(new RawCommandLineEditor());
  programParameters.getComponent().setDialogCaption(programParameters.getRawText());
  programParameters.setLabelLocation(BorderLayout.WEST);

  return UiUtil.createBox(
      new JLabel("Target:"),
      targetCombo,
      new JLabel("Plugin SDK"),
      sdkCombo,
      vmParameters.getLabel(),
      vmParameters.getComponent(),
      programParameters.getLabel(),
      programParameters.getComponent(),
      blazeFlagsEditor.createComponent(),
      exeFlagsEditor.createComponent(),
      keepInSyncCheckBox);
}
 
开发者ID:bazelbuild,项目名称:intellij,代码行数:26,代码来源:BlazeIntellijPluginConfiguration.java


示例4: addComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
@Override
protected void addComponents() {
    interpreterNameField = new TextFieldWithBrowseButton();
    interpreterNameField.addBrowseFolderListener("Choose interpreter...", "", getProject(), FileChooserDescriptorFactory.createSingleLocalFileDescriptor());
    LabeledComponent<JComponent> interpreterNameComponent = LabeledComponent.create(createComponentWithMacroBrowse(interpreterNameField), "Interpreter:");
    interpreterNameComponent.setLabelLocation(BorderLayout.WEST);
    add(interpreterNameComponent);

    interpreterOptionsComponent = LabeledComponent.create(new RawCommandLineEditor(), "Interpreter options");
    interpreterOptionsComponent.setLabelLocation(BorderLayout.WEST);
    add(interpreterOptionsComponent);

    programNameField = new TextFieldWithBrowseButton();
    programNameField.addBrowseFolderListener("Choose script...", "", getProject(), FileChooserDescriptorFactory.createSingleLocalFileDescriptor());
    LabeledComponent<JComponent> programNameComponent = LabeledComponent.create(createComponentWithMacroBrowse(programNameField), "Script:");
    programNameComponent.setLabelLocation(BorderLayout.WEST);
    add(programNameComponent);

    programParametersComponent = LabeledComponent.create(new RawCommandLineEditor(), "Script parameters:");
    programParametersComponent.setLabelLocation(BorderLayout.WEST);
    add(programParametersComponent);
}
 
开发者ID:d0as8,项目名称:PerlRun,代码行数:23,代码来源:Form.java


示例5: initComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的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


示例6: Tool

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
Tool(Project project, String command, ToolKey key, TextFieldWithBrowseButton pathField,
     RawCommandLineEditor flagsField, JButton autoFindButton, JTextField versionField, String versionParam,
     @Nullable Topic<SettingsChangeNotifier> topic) {
    this.project = project;
    this.command = command;
    this.key = key;
    this.pathField = pathField;
    this.flagsField = flagsField;
    this.versionField = versionField;
    this.versionParam = versionParam;
    this.autoFindButton = autoFindButton;
    this.topic = topic;
    this.publisher = topic == null ? null : project.getMessageBus().syncPublisher(topic);

    this.propertyFields = Arrays.asList(
            new PropertyField(key.pathKey, pathField),
            new PropertyField(key.flagsKey, flagsField));

    GuiUtil.addFolderListener(pathField, command);
    GuiUtil.addApplyPathAction(autoFindButton, pathField, command);
    updateVersion();
}
 
开发者ID:carymrobbins,项目名称:intellij-haskforce,代码行数:23,代码来源:HaskellToolsConfigurable.java


示例7: initComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
protected void initComponents() {
  myProgramParametersComponent = LabeledComponent.create(new RawCommandLineEditor(),
                                                         ExecutionBundle.message("run.configuration.program.parameters"));

  FileChooserDescriptor fileChooserDescriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor();
  //noinspection DialogTitleCapitalization
  fileChooserDescriptor.setTitle(ExecutionBundle.message("select.working.directory.message"));
  myWorkingDirectoryComboBox = new MacroComboBoxWithBrowseButton(fileChooserDescriptor, getProject());

  myWorkingDirectoryComponent = LabeledComponent.create(myWorkingDirectoryComboBox, ExecutionBundle.message("run.configuration.working.directory.label"));
  myEnvVariablesComponent = new EnvironmentVariablesComponent();

  myEnvVariablesComponent.setLabelLocation(BorderLayout.WEST);
  myProgramParametersComponent.setLabelLocation(BorderLayout.WEST);
  myWorkingDirectoryComponent.setLabelLocation(BorderLayout.WEST);

  addComponents();

  setPreferredSize(new Dimension(10, 10));

  copyDialogCaption(myProgramParametersComponent);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:23,代码来源:CommonProgramParametersPanel.java


示例8: createUIComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
private void createUIComponents() {
    interpreterOptions = new RawCommandLineEditor();
    interpreterOptions.setDialogCaption("Options");

    customWorkingDirectory = new TextFieldWithBrowseButton();
    customWorkingDirectory.addBrowseFolderListener(null, null, project, FileChooserDescriptorFactory.createSingleFolderDescriptor());

    environmentVariables = new EnvironmentVariablesComponent();

    interpreterOptionsLabel = new JBLabel(TesterBundle.message("runConfiguration.editor.cli.interpreterOptions"));
    workingDirectoryLabel = new JBLabel(TesterBundle.message("runConfiguration.editor.cli.workingDirectory"));
}
 
开发者ID:jiripudil,项目名称:intellij-nette-tester,代码行数:13,代码来源:PhpCommandLineSettingsEditor.java


示例9: addComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
@Override
protected void addComponents() {
  myVMParametersComponent = LabeledComponent.create(new RawCommandLineEditor(),
                                           ExecutionBundle.message("run.configuration.java.vm.parameters.label"));
  copyDialogCaption(myVMParametersComponent);

  myVMParametersComponent.setLabelLocation(BorderLayout.WEST);

  add(myVMParametersComponent);
  super.addComponents();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:CommonJavaParametersPanel.java


示例10: initComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
protected void initComponents() {
  myProgramParametersComponent = LabeledComponent.create(new RawCommandLineEditor(),
                                                         ExecutionBundle.message("run.configuration.program.parameters"));

  FileChooserDescriptor fileChooserDescriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor();
  //noinspection DialogTitleCapitalization
  fileChooserDescriptor.setTitle(ExecutionBundle.message("select.working.directory.message"));
  myWorkingDirectoryField = new TextFieldWithBrowseButton();
  myWorkingDirectoryField.addBrowseFolderListener(new MacroAwareTextBrowseFolderListener(fileChooserDescriptor, getProject()) {
    @Override
    public void actionPerformed(ActionEvent e) {
      myFileChooserDescriptor.putUserData(LangDataKeys.MODULE_CONTEXT, myModuleContext);
      setProject(getProject());
      super.actionPerformed(e);
    }
  });

  myWorkingDirectoryComponent = LabeledComponent.create(createComponentWithMacroBrowse(myWorkingDirectoryField), ExecutionBundle.message("run.configuration.working.directory.label"));
  myEnvVariablesComponent = new EnvironmentVariablesComponent();

  myEnvVariablesComponent.setLabelLocation(BorderLayout.WEST);
  myProgramParametersComponent.setLabelLocation(BorderLayout.WEST);
  myWorkingDirectoryComponent.setLabelLocation(BorderLayout.WEST);

  addComponents();

  setPreferredSize(new Dimension(10, 10));

  setAnchor(myEnvVariablesComponent.getLabel());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:31,代码来源:CommonProgramParametersPanel.java


示例11: createEditor

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
@Override
@NotNull
public JComponent createEditor() {
  myModules.fillModules(myPRC.getProject(), PluginModuleType.getInstance());
  JPanel wholePanel = new JPanel(new GridBagLayout());
  myVMParameters.setText(DevKitBundle.message("vm.parameters"));
  myVMParameters.setComponent(new RawCommandLineEditor());
  myVMParameters.getComponent().setDialogCaption(myVMParameters.getRawText());
  myVMParameters.setLabelLocation(BorderLayout.WEST);

  myProgramParameters.setText(DevKitBundle.message("program.parameters"));
  myProgramParameters.setComponent(new RawCommandLineEditor());
  myProgramParameters.getComponent().setDialogCaption(myProgramParameters.getRawText());
  myProgramParameters.setLabelLocation(BorderLayout.WEST);

  GridBagConstraints gc = new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(2, 0, 0, 0), UIUtil.DEFAULT_HGAP, UIUtil.DEFAULT_VGAP);
  wholePanel.add(myVMParameters, gc);
  wholePanel.add(myProgramParameters, gc);
  gc.gridwidth = 1;
  gc.gridy = 3;
  gc.weightx = 0;
  wholePanel.add(myModuleLabel, gc);
  gc.weighty = 1;
  gc.gridx = 1;
  gc.weightx = 1;
  wholePanel.add(myModules, gc);
  gc.gridx = 0;
  gc.gridy = 4;
  gc.gridwidth = 2;

  wholePanel.add(myJrePathEditor, gc);
  gc.gridy = 5;
  wholePanel.add(myShowLogs, gc);
  return wholePanel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:36,代码来源:PluginRunConfigurationEditor.java


示例12: createEditor

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
@NotNull
public JComponent createEditor() {
  myModules.fillModules(myPRC.getProject(), PluginModuleType.getInstance());
  JPanel wholePanel = new JPanel(new GridBagLayout());
  myVMParameters.setText(DevKitBundle.message("vm.parameters"));
  myVMParameters.setComponent(new RawCommandLineEditor());
  myVMParameters.getComponent().setDialogCaption(myVMParameters.getRawText());
  myVMParameters.setLabelLocation(BorderLayout.WEST);

  myProgramParameters.setText(DevKitBundle.message("program.parameters"));
  myProgramParameters.setComponent(new RawCommandLineEditor());
  myProgramParameters.getComponent().setDialogCaption(myProgramParameters.getRawText());
  myProgramParameters.setLabelLocation(BorderLayout.WEST);

  GridBagConstraints gc = new GridBagConstraints(0, GridBagConstraints.RELATIVE, 2, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(2, 0, 0, 0), UIUtil.DEFAULT_HGAP, UIUtil.DEFAULT_VGAP);
  wholePanel.add(myVMParameters, gc);
  wholePanel.add(myProgramParameters, gc);
  gc.gridwidth = 1;
  gc.gridy = 3;
  gc.weightx = 0;
  wholePanel.add(myModuleLabel, gc);
  gc.weighty = 1;
  gc.gridx = 1;
  gc.weightx = 1;
  wholePanel.add(myModules, gc);
  gc.gridx = 0;
  gc.gridy = 4;
  gc.gridwidth = 2;

  wholePanel.add(myAlternativeJREPanel, gc);
  gc.gridy = 5;
  wholePanel.add(myShowLogs, gc);
  return wholePanel;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:35,代码来源:PluginRunConfigurationEditor.java


示例13: addComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
@Override
protected void addComponents() {
    myVMParametersComponent = LabeledComponent.create(new RawCommandLineEditor(), ExecutionBundle.message("run.configuration.java.vm.parameters.label"));
    copyDialogCaption(myVMParametersComponent);

    myVMParametersComponent.setLabelLocation(BorderLayout.WEST);

    add(myVMParametersComponent);
    super.addComponents();
}
 
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:11,代码来源:CommonJavaParametersPanel.java


示例14: getVmOptons

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
public RawCommandLineEditor getVmOptons() {
    return vmOptons;
}
 
开发者ID:zengkid,项目名称:SmartTomcat,代码行数:4,代码来源:RunnerSetting.java


示例15: isModified

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
public static boolean isModified(RawCommandLineEditor editor, String value) {
  return !editor.getText().equals(value);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ComparingUtils.java


示例16: createUIComponents

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
private void createUIComponents() {
  myResourcePatternsField = new RawCommandLineEditor(ParametersListUtil.COLON_LINE_PARSER, ParametersListUtil.COLON_LINE_JOINER);
  myResourcePatternsField.setDialogCaption("Resource patterns");
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:CompilerUIConfigurable.java


示例17: copyDialogCaption

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
protected void copyDialogCaption(final LabeledComponent<RawCommandLineEditor> component) {
  final RawCommandLineEditor rawCommandLineEditor = component.getComponent();
  rawCommandLineEditor.setDialogCaption(component.getRawText());
  component.getLabel().setLabelFor(rawCommandLineEditor.getTextField());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:CommonProgramParametersPanel.java


示例18: getProgramParametersComponent

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
public LabeledComponent<RawCommandLineEditor> getProgramParametersComponent() {
  return myProgramParametersComponent;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:CommonProgramParametersPanel.java


示例19: createComponent

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
public JComponent createComponent() {
  JPanel panel = new JPanel(new GridBagLayout());

  GridBagConstraints c = new GridBagConstraints();
  c.fill = GridBagConstraints.HORIZONTAL;
  c.anchor = GridBagConstraints.WEST;
  c.insets.bottom = 5;

  myRunInBackgroundCheckbox = new JCheckBox("Run in background");
  myRunInBackgroundCheckbox.setMnemonic('b');
  if (!myRunConfigurationMode) {
    c.gridx = 0;
    c.gridy++;
    c.weightx = 1;
    c.gridwidth = GridBagConstraints.REMAINDER;

    panel.add(myRunInBackgroundCheckbox, c);
  }
  c.gridwidth = 1;

  JLabel labelVMParameters = new JLabel("VM Options:");
  labelVMParameters.setDisplayedMnemonic('v');
  labelVMParameters.setLabelFor(myVMParametersEditor = new RawCommandLineEditor());
  myVMParametersEditor.setDialogCaption(labelVMParameters.getText());

  c.gridx = 0;
  c.gridy++;
  c.weightx = 0;
  panel.add(labelVMParameters, c);

  c.gridx = 1;
  c.weightx = 1;
  c.insets.left = 10;
  panel.add(myVMParametersEditor, c);
  c.insets.left = 0;

  JLabel jdkLabel = new JLabel("JRE:");
  jdkLabel.setDisplayedMnemonic('j');
  jdkLabel.setLabelFor(myJdkCombo = new ExternalSystemJdkComboBox(myProject));
  c.gridx = 0;
  c.gridy++;
  c.weightx = 0;
  panel.add(jdkLabel, c);
  c.gridx = 1;
  c.weightx = 1;
  c.fill = GridBagConstraints.NONE;
  c.insets.left = 10;
  panel.add(myJdkCombo, c);
  c.insets.left = 0;
  c.fill = GridBagConstraints.HORIZONTAL;

  myEnvVariablesComponent = new EnvironmentVariablesComponent();
  myEnvVariablesComponent.setPassParentEnvs(true);
  myEnvVariablesComponent.setLabelLocation(BorderLayout.WEST);
  c.gridx = 0;
  c.gridy++;
  c.weightx = 1;
  c.gridwidth = 2;
  panel.add(myEnvVariablesComponent, c);
  c.gridwidth = 1;

  JPanel propertiesPanel = new JPanel(new BorderLayout());
  propertiesPanel.setBorder(IdeBorderFactory.createTitledBorder("Properties", false));

  propertiesPanel.add(mySkipTestsCheckBox = new JCheckBox("Skip tests"), BorderLayout.NORTH);
  mySkipTestsCheckBox.setMnemonic('t');

  collectProperties();
  propertiesPanel.add(myPropertiesPanel = new MavenPropertiesPanel(myProperties), BorderLayout.CENTER);
  myPropertiesPanel.getEmptyText().setText("No properties defined");

  c.gridx = 0;
  c.gridy++;
  c.weightx = c.weighty = 1;
  c.gridwidth = c.gridheight = GridBagConstraints.REMAINDER;
  c.fill = GridBagConstraints.BOTH;
  panel.add(propertiesPanel, c);

  return panel;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:81,代码来源:MavenRunnerPanel.java


示例20: getVMParameters

import com.intellij.ui.RawCommandLineEditor; //导入依赖的package包/类
public RawCommandLineEditor getVMParameters() {
  return myVMParameters.getComponent();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:PluginRunConfigurationEditor.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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