本文整理汇总了Java中com.intellij.openapi.options.SettingsEditor类的典型用法代码示例。如果您正苦于以下问题:Java SettingsEditor类的具体用法?Java SettingsEditor怎么用?Java SettingsEditor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SettingsEditor类属于com.intellij.openapi.options包,在下文中一共展示了SettingsEditor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@NotNull
@Override
public final SettingsEditor<T> getConfigurationEditor() {
final SettingsEditor<T> runConfigurationEditor = createConfigurationEditor();
final SettingsEditorGroup<T> group = new SettingsEditorGroup<T>();
// run configuration settings tab:
group.addEditor(ExecutionBundle.message("run.configuration.configuration.tab.title"), runConfigurationEditor);
// tabs provided by extensions:
//noinspection unchecked
PythonRunConfigurationExtensionsManager.getInstance().appendEditors(this, (SettingsEditorGroup)group);
group.addEditor(ExecutionBundle.message("logs.tab.title"), new LogConfigurationPanel<T>());
return group;
}
示例2: createTemplateConfiguration
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@Override
public RunConfiguration createTemplateConfiguration(Project project) {
return new RunConfigurationBase(project,this,"Perl RunConfiguration Template") {
@NotNull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
return new PerlSettingsEditor();
}
@Override
public void checkConfiguration() throws RuntimeConfigurationException {
}
@Nullable
@Override
public RunProfileState getState(Executor executor, ExecutionEnvironment executionEnvironment) throws ExecutionException {
return new PerlRunProfileState(executionEnvironment);
}
};
}
示例3: createEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@Nullable
@Override
public SettingsEditor<AppEngineDeploymentConfiguration> createEditor(
@NotNull DeploymentSource source,
@NotNull RemoteServer<AppEngineServerConfiguration> server) {
if (!(source instanceof AppEngineDeployable)) {
logger.error(
String.format(
"Deployment source with name %s is not deployable to App Engine.",
source.getPresentableName()));
return null;
}
AppEngineDeployable gaeSource = (AppEngineDeployable) source;
AppEngineEnvironment environment = gaeSource.getEnvironment();
if (environment != null && environment.isFlexible()) {
return new AppEngineFlexibleDeploymentEditor(project, gaeSource);
}
return new AppEngineStandardDeploymentEditor(project, gaeSource);
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:23,代码来源:AppEngineDeploymentConfigurator.java
示例4: getConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@NotNull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
SettingsEditorGroup<RemoteRunConfiguration> settingsEditorGroup = new SettingsEditorGroup<>();
settingsEditorGroup.addEditor(ExecutionBundle.message("run.configuration.configuration.tab.title"), new RunConfigurationEditor(getProject()));
settingsEditorGroup.addEditor(ExecutionBundle.message("logs.tab.title"), new LogConfigurationPanel<>());
return settingsEditorGroup;
}
示例5: getSettingsEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@Override
public SettingsEditor<GenericDebuggerRunnerSettings> getSettingsEditor(final Executor executor, RunConfiguration configuration) {
if (configuration instanceof RunConfigurationWithRunnerSettings) {
if (((RunConfigurationWithRunnerSettings)configuration).isSettingsNeeded()) {
return new GenericDebuggerParametersRunnerConfigurable(configuration.getProject());
}
}
return null;
}
示例6: getConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@NotNull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
SettingsEditorGroup<JarApplicationConfiguration> group = new SettingsEditorGroup<JarApplicationConfiguration>();
group.addEditor(ExecutionBundle.message("run.configuration.configuration.tab.title"), new JarApplicationConfigurable(getProject()));
JavaRunConfigurationExtensionManager.getInstance().appendEditors(this, group);
group.addEditor(ExecutionBundle.message("logs.tab.title"), new LogConfigurationPanel<JarApplicationConfiguration>());
return group;
}
示例7: getConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@Override
@NotNull
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
SettingsEditorGroup<ApplicationConfiguration> group = new SettingsEditorGroup<ApplicationConfiguration>();
group.addEditor(ExecutionBundle.message("run.configuration.configuration.tab.title"), new ApplicationConfigurable(getProject()));
JavaRunConfigurationExtensionManager.getInstance().appendEditors(this, group);
group.addEditor(ExecutionBundle.message("logs.tab.title"), new LogConfigurationPanel<ApplicationConfiguration>());
return group;
}
示例8: getConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@NotNull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
SettingsEditorGroup<TestDiscoveryConfiguration> group = new SettingsEditorGroup<TestDiscoveryConfiguration>();
group.addEditor(ExecutionBundle.message("run.configuration.configuration.tab.title"),
new TestDiscoveryConfigurable<TestDiscoveryConfiguration>(getProject()));
JavaRunConfigurationExtensionManager.getInstance().appendEditors(this, group);
group.addEditor(ExecutionBundle.message("logs.tab.title"), new LogConfigurationPanel<TestDiscoveryConfiguration>());
return group;
}
示例9: getConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@Override
@NotNull
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
SettingsEditorGroup<RemoteConfiguration> group = new SettingsEditorGroup<RemoteConfiguration>();
group.addEditor(ExecutionBundle.message("run.configuration.configuration.tab.title"), new RemoteConfigurable(getProject()));
group.addEditor(ExecutionBundle.message("logs.tab.title"), new LogConfigurationPanel<RemoteConfiguration>());
return group;
}
示例10: getConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@NotNull
@Override
public SettingsEditor<DeployToServerRunConfiguration> getConfigurationEditor() {
SettingsEditor<DeployToServerRunConfiguration> commonEditor
= new DeployToServerSettingsEditor(myServerType, myDeploymentConfigurator, getProject());
SettingsEditorGroup<DeployToServerRunConfiguration> group = new SettingsEditorGroup<DeployToServerRunConfiguration>();
group.addEditor("Deployment", commonEditor);
DeployToServerRunConfigurationExtensionsManager.getInstance().appendEditors(this, group);
return group.getEditors().size() == 1 ? commonEditor : group;
}
示例11: appendEditors
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
public <V extends U> void appendEditors(@NotNull final U configuration,
@NotNull 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);
}
}
}
示例12: SingleConfigurationConfigurable
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
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;
}
});
}
示例13: createConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@Override
protected SettingsEditor<? extends RunConfiguration> createConfigurationEditor() {
RestConfigurationEditor editor = new RestConfigurationEditor(getProject(), this, new DocutilsTasksModel());
editor.setConfigurationName("Docutils task");
editor.setInputDescriptor(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor());
editor.setOutputDescriptor(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor());
return editor;
}
示例14: createConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@Override
protected SettingsEditor<? extends RunConfiguration> createConfigurationEditor() {
RestConfigurationEditor editor = new RestConfigurationEditor(getProject(), this, new SphinxTasksModel());
editor.setConfigurationName("Sphinx task");
editor.setOpenInBrowserVisible(false);
editor.setInputDescriptor(FileChooserDescriptorFactory.createSingleFolderDescriptor());
editor.setOutputDescriptor(FileChooserDescriptorFactory.createSingleFolderDescriptor());
return editor;
}
示例15: getConfigurationEditor
import com.intellij.openapi.options.SettingsEditor; //导入依赖的package包/类
@NotNull
@Override
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor() {
Project project = getProject();
AndroidRunConfigurationEditor<AndroidRunConfiguration> editor =
new AndroidRunConfigurationEditor<AndroidRunConfiguration>(project, Predicates.<AndroidFacet>alwaysFalse());
editor.setConfigurationSpecificEditor(new ApplicationRunParameters(project, editor.getModuleSelector()));
return editor;
}