本文整理汇总了Java中com.intellij.execution.configurations.ConfigurationTypeUtil.findConfigurationType方法的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationTypeUtil.findConfigurationType方法的具体用法?Java ConfigurationTypeUtil.findConfigurationType怎么用?Java ConfigurationTypeUtil.findConfigurationType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.execution.configurations.ConfigurationTypeUtil
的用法示例。
在下文中一共展示了ConfigurationTypeUtil.findConfigurationType方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createRemoteDebug
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
private void createRemoteDebug(
final RunManagerImpl runManager,
final HybrisProjectDescriptor hybrisProjectDescriptor
) {
final RemoteConfigurationType remoteConfigurationType = ConfigurationTypeUtil.findConfigurationType(
RemoteConfigurationType.class);
final ConfigurationFactory configurationFactory = remoteConfigurationType.getConfigurationFactories()[0];
final String debugName = HybrisI18NBundleUtils.message("hybris.project.import.run.configuration.remote.debug");
final RunnerAndConfigurationSettings runner = runManager.createRunConfiguration(
debugName,
configurationFactory
);
final RemoteConfiguration remoteConfiguration = (RemoteConfiguration) runner.getConfiguration();
remoteConfiguration.PORT = getDebugPort(hybrisProjectDescriptor);
ApplicationManager.getApplication().invokeLater(() -> ApplicationManager.getApplication().runWriteAction(() -> {
runner.setSingleton(true);
runner.setActivateToolWindowBeforeRun(true);
runManager.addConfiguration(runner, true);
runManager.setSelectedConfiguration(runner);
}));
}
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:23,代码来源:DebugRunConfigurationConfigurator.java
示例2: removeMake
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
private void removeMake(final Project project) {
final RunManagerImpl runManager = RunManagerImpl.getInstanceImpl(project);
if (runManager == null) {
return;
}
final AntRunConfigurationType antRunConfigurationType = ConfigurationTypeUtil.findConfigurationType(
AntRunConfigurationType.class);
final ConfigurationFactory configurationFactory = antRunConfigurationType.getConfigurationFactories()[0];
final RunnerAndConfigurationSettings template = runManager.getConfigurationTemplate(configurationFactory);
final AntRunConfiguration runConfiguration = (AntRunConfiguration) template.getConfiguration();
runManager.setBeforeRunTasks(runConfiguration, Collections.<BeforeRunTask>emptyList(), false);
}
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:13,代码来源:DefaultAntConfigurator.java
示例3: createConfiguration
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
/**
* Creates a run configuration, using the given template. The created configuration is then
* added to RunManager.
*/
public void createConfiguration() {
logger.info("Creating configuration.");
ConfigurationType type = ConfigurationTypeUtil.findConfigurationType(configurationType);
RunnerAndConfigurationSettings settings =
runManager.createRunConfiguration(
module.getName(), type.getConfigurationFactories()[0]);
logger.info("Adding configuration to RunManager.");
runManager.addConfiguration(settings, true);
logger.info("Setting created configuration to be the selected.");
runManager.setSelectedConfiguration(settings);
}
示例4: getIcon
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
public Icon getIcon(String file) {
final ConfigurationBean bean = myState.getHistoryElements().get(file);
if (bean != null) {
ConfigurationType type = ConfigurationTypeUtil.findConfigurationType(bean.configurationId);
if (type != null) return type.getIcon();
}
return null;
}
示例5: createRunnerAndConfigurationSettings
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
@NotNull
public static RunnerAndConfigurationSettings createRunnerAndConfigurationSettings(@Nullable MavenGeneralSettings generalSettings,
@Nullable MavenRunnerSettings runnerSettings,
MavenRunnerParameters params,
Project project) {
MavenRunConfigurationType type = ConfigurationTypeUtil.findConfigurationType(MavenRunConfigurationType.class);
RunnerAndConfigurationSettings settings = RunManager.getInstance(project).createRunConfiguration(generateName(project, params), type.myFactory);
MavenRunConfiguration runConfiguration = (MavenRunConfiguration)settings.getConfiguration();
runConfiguration.setRunnerParameters(params);
runConfiguration.setGeneralSettings(generalSettings);
runConfiguration.setRunnerSettings(runnerSettings);
return settings;
}
示例6: createRunnerAndConfigurationSettings
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
private static RunnerAndConfigurationSettings createRunnerAndConfigurationSettings(@Nullable MavenGeneralSettings generalSettings,
@Nullable MavenRunnerSettings runnerSettings,
MavenRunnerParameters params,
Project project) {
MvnRunConfigurationType type = ConfigurationTypeUtil.findConfigurationType(MvnRunConfigurationType.class);
final RunnerAndConfigurationSettings settings = RunManagerEx.getInstanceEx(project).createRunConfiguration(generateName(project, params), type.myFactory);
MvnRunConfiguration runConfiguration = (MvnRunConfiguration)settings.getConfiguration();
runConfiguration.setRunType(getPhaseRunType(params.getGoals()));
runConfiguration.setRunnerParameters(params);
runConfiguration.setGeneralSettings(generalSettings);
runConfiguration.setRunnerSettings(runnerSettings);
return settings;
}
示例7: createRunnerAndConfigurationSettings
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
public static RunnerAndConfigurationSettings createRunnerAndConfigurationSettings(@Nullable MavenGeneralSettings generalSettings,
@Nullable MavenRunnerSettings runnerSettings,
MavenRunnerParameters params,
Project project) {
MavenRunConfigurationType type = ConfigurationTypeUtil.findConfigurationType(MavenRunConfigurationType.class);
final RunnerAndConfigurationSettings settings = RunManagerEx.getInstanceEx(project)
.createConfiguration(generateName(project, params), type.myFactory);
MavenRunConfiguration runConfiguration = (MavenRunConfiguration)settings.getConfiguration();
runConfiguration.setRunnerParameters(params);
runConfiguration.setGeneralSettings(generalSettings);
runConfiguration.setRunnerSettings(runnerSettings);
return settings;
}
示例8: getInstance
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
public static PyCCRunTestsConfigurationType getInstance() {
return ConfigurationTypeUtil.findConfigurationType(PyCCRunTestsConfigurationType.class);
}
示例9: getInstance
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
public static ProcessingConfigurationType getInstance() {
return ConfigurationTypeUtil.findConfigurationType(ProcessingConfigurationType.class);
}
示例10: getInstance
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
@NotNull
public static MuleRemoteConfigurationType getInstance() {
return ConfigurationTypeUtil.findConfigurationType(MuleRemoteConfigurationType.class);
}
示例11: getInstance
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
public static XsltRunConfigType getInstance() {
return ConfigurationTypeUtil.findConfigurationType(XsltRunConfigType.class);
}
示例12: getInstance
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
@NotNull
public static WeaveConfigurationType getInstance()
{
return ConfigurationTypeUtil.findConfigurationType(WeaveConfigurationType.class);
}
示例13: getInstance
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
static TesterTestMethodRunConfigurationType getInstance() {
return ConfigurationTypeUtil.findConfigurationType(TesterTestMethodRunConfigurationType.class);
}
示例14: getInstance
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
static TesterRunConfigurationType getInstance() {
return ConfigurationTypeUtil.findConfigurationType(TesterRunConfigurationType.class);
}
示例15: getInstance
import com.intellij.execution.configurations.ConfigurationTypeUtil; //导入方法依赖的package包/类
public static ConfigurationTypeLivingDoc getInstance() {
return ConfigurationTypeUtil.findConfigurationType(ConfigurationTypeLivingDoc.class);
}