当前位置: 首页>>代码示例>>Java>>正文


Java RawCommandLineEditor类代码示例

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


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


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