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


Java ApplicationConfiguration.setModule方法代码示例

本文整理汇总了Java中com.intellij.execution.application.ApplicationConfiguration.setModule方法的典型用法代码示例。如果您正苦于以下问题:Java ApplicationConfiguration.setModule方法的具体用法?Java ApplicationConfiguration.setModule怎么用?Java ApplicationConfiguration.setModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.execution.application.ApplicationConfiguration的用法示例。


在下文中一共展示了ApplicationConfiguration.setModule方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configApplicationConfiguration

import com.intellij.execution.application.ApplicationConfiguration; //导入方法依赖的package包/类
/**
 * Modifies the run configuration by adding parameters to it, such as a Main class which the
 * user selects.
 */
@NotNull
public ApplicationConfiguration configApplicationConfiguration(TreeClassChooser chooser) {
    if (configurationType.equals("Application")) {
        logger.info("Creating ApplicationConfiguration.");
        ApplicationConfiguration appCon =
                (ApplicationConfiguration)
                        runManager.getSelectedConfiguration().getConfiguration();
        logger.info("Setting main class and module to " + configurationType);
        appCon.setMainClass(chooser.getSelected());
        appCon.setModule(module);
        return appCon;
    }
    logger.info("No applicable configurationType was found.");
    return null;
}
 
开发者ID:testmycode,项目名称:tmc-intellij,代码行数:20,代码来源:RunConfigurationFactory.java

示例2: setProcessParameters

import com.intellij.execution.application.ApplicationConfiguration; //导入方法依赖的package包/类
@Override
protected void setProcessParameters(Project project, ApplicationConfiguration configuration, Module module, @NotNull VirtualFile testsFile) {
  configuration.setMainClassName(EduIntelliJNames.TEST_RUNNER_CLASS);
  configuration.setModule(module);
  PsiFile psiFile = PsiManager.getInstance(project).findFile(testsFile);
  Collection<KtClass> ktClasses = PsiTreeUtil.findChildrenOfType(psiFile, KtClass.class);
  for (KtClass ktClass : ktClasses) {
    String name = ktClass.getName();
    configuration.setProgramParameters(name);
  }
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:12,代码来源:EduKotlinPyCharmTaskChecker.java

示例3: testRunThirdPartyApplication

import com.intellij.execution.application.ApplicationConfiguration; //导入方法依赖的package包/类
public void testRunThirdPartyApplication() throws ExecutionException {
  ApplicationConfiguration configuration =
    new ApplicationConfiguration("Third party", myProject, ApplicationConfigurationType.getInstance());
  configuration.setModule(getModule1());
  configuration.MAIN_CLASS_NAME = "third.party.Main";
  checkCanRun(configuration);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ConfigurationsTest.java

示例4: createApplicationConfiguration

import com.intellij.execution.application.ApplicationConfiguration; //导入方法依赖的package包/类
protected ApplicationConfiguration createApplicationConfiguration(String className, Module module) {
  final ApplicationConfiguration configuration =
    new ApplicationConfiguration("app", getProject(), ApplicationConfigurationType.getInstance());
  configuration.setModule(module);
  configuration.setMainClassName(className);
  return configuration;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:GroovyCompilerTestCase.java

示例5: testRunThridPartyApplication

import com.intellij.execution.application.ApplicationConfiguration; //导入方法依赖的package包/类
public void testRunThridPartyApplication() throws ExecutionException {
  ApplicationConfiguration configuration =
    new ApplicationConfiguration("Thrid party", myProject, ApplicationConfigurationType.getInstance());
  configuration.setModule(getModule1());
  configuration.MAIN_CLASS_NAME = "thrid.party.Main";
  checkCanRun(configuration);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:8,代码来源:ConfigurationsTest.java

示例6: setProcessParameters

import com.intellij.execution.application.ApplicationConfiguration; //导入方法依赖的package包/类
@Override
protected void setProcessParameters(Project project, ApplicationConfiguration configuration, Module module, @NotNull VirtualFile testsFile) {
  configuration.setMainClassName(EduIntelliJNames.TEST_RUNNER_CLASS);
  configuration.setModule(module);
  configuration.setProgramParameters(testsFile.getNameWithoutExtension());
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:7,代码来源:EduJavaPyCharmTaskChecker.java


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