com.intellij.openapi.options.SettingsEditor Java Examples

The following examples show how to use com.intellij.openapi.options.SettingsEditor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XQueryRunConfiguration.java    From intellij-xquery with Apache License 2.0 5 votes vote down vote up
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
    SettingsEditorGroup<XQueryRunConfiguration> group = new SettingsEditorGroup<XQueryRunConfiguration>();
    group.addEditor("Configuration", new RunConfigurationMainTab(getProject()));
    group.addEditor("Java Configuration", new RunConfigurationJavaTab(getProject()));
    group.addEditor("Logs", new LogConfigurationPanel<XQueryRunConfiguration>());
    return group;
}
 
Example #2
Source File: ExternalSystemRunConfiguration.java    From consulo with Apache License 2.0 5 votes vote down vote up
@Nonnull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  SettingsEditorGroup<ExternalSystemRunConfiguration> group = new SettingsEditorGroup<>();
  group.addEditor(ExecutionBundle.message("run.configuration.configuration.tab.title"), new ExternalSystemRunConfigurationEditor(getProject(), mySettings.getExternalSystemId()));
  group.addEditor(ExecutionBundle.message("logs.tab.title"), new LogConfigurationPanel<>());
  return group;
}
 
Example #3
Source File: SingleConfigurationConfigurable.java    From consulo with Apache License 2.0 5 votes vote down vote up
private SingleConfigurationConfigurable(RunnerAndConfigurationSettings settings, @Nullable Executor executor) {
  super(new ConfigurationSettingsEditorWrapper(settings), settings);
  myExecutor = executor;

  final Config configuration = getConfiguration();
  myDisplayName = getSettings().getName();
  myHelpTopic = "reference.dialogs.rundebug." + configuration.getType().getId();

  myBrokenConfiguration = configuration instanceof UnknownRunConfiguration;
  setFolderName(getSettings().getFolderName());

  setNameText(configuration.getName());
  myNameDocument.addDocumentListener(new DocumentAdapter() {
    @Override
    public void textChanged(DocumentEvent event) {
      setModified(true);
      if (!myChangingNameFromCode) {
        RunConfiguration runConfiguration = getSettings().getConfiguration();
        if (runConfiguration instanceof LocatableConfigurationBase) {
          ((LocatableConfigurationBase) runConfiguration).setNameChangedByUser(true);
        }
      }
    }
  });

  getEditor().addSettingsEditorListener(new SettingsEditorListener<RunnerAndConfigurationSettings>() {
    @Override
    public void stateChanged(SettingsEditor<RunnerAndConfigurationSettings> settingsEditor) {
      myValidationResultValid = false;
    }
  });
}
 
Example #4
Source File: RoboVmRunConfiguration.java    From robovm-idea with GNU General Public License v2.0 5 votes vote down vote up
@NotNull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
    if(type instanceof RoboVmIOSConfigurationType) {
        return new RoboVmIOSRunConfigurationSettingsEditor();
    } else {
        return new RoboVmConsoleRunConfigurationSettingsEditor();
    }
}
 
Example #5
Source File: PendingTargetRunConfigurationHandler.java    From intellij with Apache License 2.0 5 votes vote down vote up
/** #api193: remove when 2019.3 no longer supported; default implementation added in 2020.1. */
@Nullable
@Override
public SettingsEditor<RunnerSettings> getSettingsEditor(
    Executor executor, RunConfiguration runConfiguration) {
  return null;
}
 
Example #6
Source File: RunConfigurationExtensionsManager.java    From consulo with Apache License 2.0 5 votes vote down vote up
public <V extends U> void appendEditors(@Nonnull final U configuration,
                                        @Nonnull final SettingsEditorGroup<V> group) {
  for (T extension : getApplicableExtensions(configuration)) {
    @SuppressWarnings("unchecked")
    final SettingsEditor<V> editor = extension.createEditor((V)configuration);
    if (editor != null) {
      group.addEditor(extension.getEditorTitle(), editor);
    }
  }
}
 
Example #7
Source File: HaxeApplicationConfiguration.java    From intellij-haxe with Apache License 2.0 4 votes vote down vote up
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return new HaxeRunConfigurationEditorForm(getProject());
}
 
Example #8
Source File: CppRemoteDebugConfiguration.java    From CppTools with Apache License 2.0 4 votes vote down vote up
public SettingsEditor<com.intellij.execution.configurations.ConfigurationPerRunnerSettings> getRunnerSettingsEditor(ProgramRunner programRunner) {
  return null;
}
 
Example #9
Source File: CppRemoteDebugConfiguration.java    From CppTools with Apache License 2.0 4 votes vote down vote up
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return new CppRemoteDebugSettingEditor(getProject());
}
 
Example #10
Source File: SingleConfigurationConfigurable.java    From consulo with Apache License 2.0 4 votes vote down vote up
public RunnerAndConfigurationSettings getSnapshot() throws ConfigurationException {
  final SettingsEditor<RunnerAndConfigurationSettings> editor = getEditor();
  return editor == null ? null : editor.getSnapshot();
}
 
Example #11
Source File: CompoundRunConfiguration.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return new CompoundRunConfigurationSettingsEditor(getProject());
}
 
Example #12
Source File: RunConfigurationBase.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public SettingsEditor<ConfigurationPerRunnerSettings> getRunnerSettingsEditor(ProgramRunner runner) {
  return null;
}
 
Example #13
Source File: AbstractFileType.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public SettingsEditor<AbstractFileType> getEditor() {
  return new CustomFileTypeEditor();
}
 
Example #14
Source File: UnknownRunConfiguration.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return new UnknownSettingsEditor();
}
 
Example #15
Source File: UnknownRunConfiguration.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public SettingsEditor<ConfigurationPerRunnerSettings> getRunnerSettingsEditor(final ProgramRunner runner) {
  return null;
}
 
Example #16
Source File: RunConfigurationConfigurableAdapter.java    From consulo with Apache License 2.0 4 votes vote down vote up
public RunConfigurationConfigurableAdapter(SettingsEditor<T> settingsEditor, T configuration) {
   super(settingsEditor, configuration);
}
 
Example #17
Source File: ProgramRunner.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nullable
SettingsEditor<Settings> getSettingsEditor(Executor executor, RunConfiguration configuration);
 
Example #18
Source File: BaseProgramRunner.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
@javax.annotation.Nullable
public SettingsEditor<Settings> getSettingsEditor(Executor executor, RunConfiguration configuration) {
  return null;
}
 
Example #19
Source File: CppRunConfiguration.java    From CppTools with Apache License 2.0 4 votes vote down vote up
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return new CppRunSettingsEditor(getProject());
}
 
Example #20
Source File: CppRunConfiguration.java    From CppTools with Apache License 2.0 4 votes vote down vote up
public SettingsEditor<com.intellij.execution.configurations.ConfigurationPerRunnerSettings> getRunnerSettingsEditor(ProgramRunner runner) {
  return null;
}
 
Example #21
Source File: DeploymentConfigurator.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nullable
public abstract SettingsEditor<D> createEditor(@Nonnull DeploymentSource source);
 
Example #22
Source File: RuntimeConfigurationProducer.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return myConfig.getConfigurationEditor();
}
 
Example #23
Source File: UserBinaryFileType.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public SettingsEditor<UserBinaryFileType> getEditor() {
  return null;
}
 
Example #24
Source File: LocalServerRunConfiguration.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public SettingsEditor<LocalServerRunConfiguration> getConfigurationEditor() {
  return new LocalToServerSettingsEditor(myServerType, myDeploymentConfigurator, getProject());
}
 
Example #25
Source File: DeployToServerRunConfiguration.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Nonnull
@Override
public SettingsEditor<DeployToServerRunConfiguration> getConfigurationEditor() {
  return new DeployToServerSettingsEditor(myServerType, myDeploymentConfigurator, getProject());
}
 
Example #26
Source File: AbstractRerunFailedTestsAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public SettingsEditor<ConfigurationPerRunnerSettings> getRunnerSettingsEditor(final ProgramRunner runner) {
  return myConfiguration.getRunnerSettingsEditor(runner);
}
 
Example #27
Source File: AbstractRerunFailedTestsAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
@Nonnull
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return myConfiguration.getConfigurationEditor();
}
 
Example #28
Source File: MockRuntimeConfiguration.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return null;
}
 
Example #29
Source File: TestConfiguration.java    From buck with Apache License 2.0 4 votes vote down vote up
@NotNull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
  return new TestConfigurationEditor();
}
 
Example #30
Source File: TrainsRunExtension.java    From trains-pycharm-plugin with Apache License 2.0 4 votes vote down vote up
@Nullable
@Override
protected SettingsEditor<AbstractPythonRunConfiguration> createEditor(@NotNull AbstractPythonRunConfiguration configuration) {
    return null;
}