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


Java RunnerAndConfigurationSettings.getName方法代码示例

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


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

示例1: update

import com.intellij.execution.RunnerAndConfigurationSettings; //导入方法依赖的package包/类
@Override
public void update(AnActionEvent e) {
  final Project project = e.getProject();
  e.getPresentation().setEnabledAndVisible(
    project != null && ProjectFacetManager.getInstance(project).hasFacets(AppEngineFacet.ID));

  if (project != null) {
    String text;
    RunnerAndConfigurationSettings configurationToRun = getConfigurationToRun(project);
    if (configurationToRun == null) {
      text = getTemplatePresentation().getText();
    }
    else {
      text = "Upload App Engine Application '" + configurationToRun.getName() + "'";
    }
    e.getPresentation().setText(text);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:UploadApplicationAction.java

示例2: ExternalSystemRunConfigurationAction

import com.intellij.execution.RunnerAndConfigurationSettings; //导入方法依赖的package包/类
public ExternalSystemRunConfigurationAction(Project project, RunnerAndConfigurationSettings configurationSettings) {
  myConfigurationSettings = configurationSettings;
  ExternalSystemRunConfiguration runConfiguration = (ExternalSystemRunConfiguration)configurationSettings.getConfiguration();
  systemId = runConfiguration.getSettings().getExternalSystemId();

  ExternalSystemUiAware uiAware = ExternalSystemUiUtil.getUiAware(systemId);
  myGroup = uiAware.getProjectRepresentationName(runConfiguration.getSettings().getExternalProjectPath(), null);
  String actionIdPrefix = getActionPrefix(project, runConfiguration.getSettings().getExternalProjectPath());
  myId = actionIdPrefix + configurationSettings.getName();

  Presentation template = getTemplatePresentation();
  template.setText(myConfigurationSettings.getName(), false);
  template.setIcon(runConfiguration.getIcon());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:ExternalSystemKeymapExtension.java

示例3: RunConfigModel

import com.intellij.execution.RunnerAndConfigurationSettings; //导入方法依赖的package包/类
public RunConfigModel (RunnerAndConfigurationSettings runConfig) {
	this.icon = runConfig.getType() != null ? runConfig.getType().getIcon() : null;
	this.name = runConfig.getName();
}
 
开发者ID:kotcrab,项目名称:quick-launch,代码行数:5,代码来源:RunConfigModel.java

示例4: getRunConfigurationActivationTaskName

import com.intellij.execution.RunnerAndConfigurationSettings; //导入方法依赖的package包/类
@NotNull
public static String getRunConfigurationActivationTaskName(@NotNull RunnerAndConfigurationSettings settings) {
  return RUN_CONFIGURATION_TASK_PREFIX + settings.getName();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ExternalSystemTaskActivator.java


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