本文整理汇总了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);
}
}
示例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());
}
示例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();
}
示例4: getRunConfigurationActivationTaskName
import com.intellij.execution.RunnerAndConfigurationSettings; //导入方法依赖的package包/类
@NotNull
public static String getRunConfigurationActivationTaskName(@NotNull RunnerAndConfigurationSettings settings) {
return RUN_CONFIGURATION_TASK_PREFIX + settings.getName();
}