本文整理汇总了Java中com.intellij.execution.configurations.ModuleBasedConfiguration.setModule方法的典型用法代码示例。如果您正苦于以下问题:Java ModuleBasedConfiguration.setModule方法的具体用法?Java ModuleBasedConfiguration.setModule怎么用?Java ModuleBasedConfiguration.setModule使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.execution.configurations.ModuleBasedConfiguration
的用法示例。
在下文中一共展示了ModuleBasedConfiguration.setModule方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupConfigurationModule
import com.intellij.execution.configurations.ModuleBasedConfiguration; //导入方法依赖的package包/类
protected boolean setupConfigurationModule(@Nullable ConfigurationContext context, ModuleBasedConfiguration configuration) {
if (context != null) {
final RunnerAndConfigurationSettings template =
((RunManagerImpl)context.getRunManager()).getConfigurationTemplate(getConfigurationFactory());
final Module contextModule = context.getModule();
final Module predefinedModule = ((ModuleBasedConfiguration)template.getConfiguration()).getConfigurationModule().getModule();
if (predefinedModule != null) {
configuration.setModule(predefinedModule);
return true;
}
final Module module = findModule(configuration, contextModule);
if (module != null) {
configuration.setModule(module);
return true;
}
}
return false;
}
示例2: createConfigurationSettings
import com.intellij.execution.configurations.ModuleBasedConfiguration; //导入方法依赖的package包/类
private static RunnerAndConfigurationSettings createConfigurationSettings(ConfigurationFactory factory, @NotNull final Module module) {
final RunnerAndConfigurationSettings settings =
RunManager.getInstance(module.getProject()).createRunConfiguration(module.getName(), factory);
ModuleBasedConfiguration configuration = (ModuleBasedConfiguration) settings.getConfiguration();
configuration.setModule(module);
return settings;
}
示例3: setupConfigurationModule
import com.intellij.execution.configurations.ModuleBasedConfiguration; //导入方法依赖的package包/类
private void setupConfigurationModule(@Nullable ConfigurationContext context,
ModuleBasedConfiguration configuration) {
if (context != null) {
Module module = getModule(context, configuration);
if (module != null) {
configuration.setModule(module);
}
}
}
示例4: applyTo
import com.intellij.execution.configurations.ModuleBasedConfiguration; //导入方法依赖的package包/类
public void applyTo(final ModuleBasedConfiguration configurationModule)
{
if(myModulesList != null)
{
configurationModule.setModule((Module) myModulesList.getSelectedItem());
}
else
{
configurationModule.setModuleName(myModulesDescriptionsComboBox.getSelectedModuleName());
}
}
示例5: applyTo
import com.intellij.execution.configurations.ModuleBasedConfiguration; //导入方法依赖的package包/类
public void applyTo(final ModuleBasedConfiguration configurationModule) {
configurationModule.setModule((Module)myModulesList.getSelectedItem());
}
示例6: applyTo
import com.intellij.execution.configurations.ModuleBasedConfiguration; //导入方法依赖的package包/类
public void applyTo(final ModuleBasedConfiguration configurationModule) {
configurationModule.setModule((Module) myModulesList.getSelectedItem());
}