本文整理汇总了Java中com.intellij.execution.ExecutionBundle.message方法的典型用法代码示例。如果您正苦于以下问题:Java ExecutionBundle.message方法的具体用法?Java ExecutionBundle.message怎么用?Java ExecutionBundle.message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.execution.ExecutionBundle
的用法示例。
在下文中一共展示了ExecutionBundle.message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createAppletClassBrowser
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
public static ClassBrowser createAppletClassBrowser(final Project project,
final ConfigurationModuleSelector moduleSelector) {
final String title = ExecutionBundle.message("choose.applet.class.dialog.title");
return new MainClassBrowser(project, moduleSelector, title) {
@Override
protected TreeClassChooser createClassChooser(ClassFilter.ClassFilterWithScope classFilter) {
final Module module = moduleSelector.getModule();
final GlobalSearchScope scope =
module == null ? GlobalSearchScope.allScope(myProject) : GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module);
final PsiClass appletClass = JavaPsiFacade.getInstance(project).findClass("java.applet.Applet", scope);
return TreeClassChooserFactory.getInstance(getProject())
.createInheritanceClassChooser(title, classFilter.getScope(), appletClass, false, false,
ConfigurationUtil.PUBLIC_INSTANTIATABLE_CLASS);
}
};
}
示例2: addLabel
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
public static void addLabel(final TestFrameworkRunningModel model) {
String label;
int color;
if (model.getRoot().isDefect()) {
color = RED.getRGB();
label = ExecutionBundle.message("junit.runing.info.tests.failed.label");
}
else {
color = GREEN.getRGB();
label = ExecutionBundle.message("junit.runing.info.tests.passed.label");
}
final TestConsoleProperties consoleProperties = model.getProperties();
String name = label + " " + consoleProperties.getConfiguration().getName();
Project project = consoleProperties.getProject();
if (project.isDisposed()) return;
LocalHistory.getInstance().putSystemLabel(project, name, color);
}
示例3: executeScriptInConsoleWithFullOutput
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
public static ScriptOutput executeScriptInConsoleWithFullOutput(String exePathString,
@Nullable VirtualFile scriptFile,
@Nullable String workingDirectory,
long timeout,
Condition<Key> scriptOutputType,
@NonNls String... parameters) throws ExecutionException {
final OSProcessHandler processHandler = execute(exePathString, workingDirectory, scriptFile, parameters);
ScriptOutput output = new ScriptOutput(scriptOutputType);
processHandler.addProcessListener(output);
processHandler.startNotify();
if (!processHandler.waitFor(timeout)) {
LOG.warn("Process did not complete in " + timeout / 1000 + "s");
throw new ExecutionException(ExecutionBundle.message("script.execution.timeout", String.valueOf(timeout / 1000)));
}
LOG.debug("script output: ", output.myFilteredOutput);
return output;
}
示例4: getJdkPath
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
public String getJdkPath() throws CantRunException {
final Sdk jdk = getJdk();
if (jdk == null) {
throw new CantRunException(ExecutionBundle.message("no.jdk.specified..error.message"));
}
final String jdkHome = jdk.getHomeDirectory().getPresentableUrl();
if (jdkHome.isEmpty()) {
throw new CantRunException(ExecutionBundle.message("home.directory.not.specified.for.jdk.error.message"));
}
return jdkHome;
}
示例5: checkConfiguration
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
@Override
public void checkConfiguration() throws RuntimeConfigurationException {
super.checkConfiguration();
final String testClassName = getConfiguration().getPersistentData().getMainClassName();
final JavaRunConfigurationModule configurationModule = getConfiguration().getConfigurationModule();
final PsiClass testClass = configurationModule.checkModuleAndClassName(testClassName, ExecutionBundle.message("no.test.class.specified.error.text"));
if (!JUnitUtil.isTestClass(testClass)) {
throw new RuntimeConfigurationWarning(ExecutionBundle.message("class.isnt.test.class.error.message", testClassName));
}
}
示例6: getFilter
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
@Override
protected ClassFilter.ClassFilterWithScope getFilter() throws NoFilterException {
try {
return TestClassFilter.create(SourceScope.wholeProject(getProject()), null);
}
catch (JUnitUtil.NoJUnitException ignore) {
throw new NoFilterException(new MessagesEx.MessageInfo(getProject(),
ignore.getMessage(),
ExecutionBundle.message("cannot.browse.test.inheritors.dialog.title")));
}
}
示例7: getDescription
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
@Override
public String getDescription(MakeBeforeRunTask task) {
return ExecutionBundle.message("before.launch.compile.step");
}
示例8: getProgressText
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
private String getProgressText() {
if (myStopped) return ExecutionBundle.message("test.not.started.progress.text");
final long millis = System.currentTimeMillis() - myStartedAt;
final String phaseName = myProcess == null ? ExecutionBundle.message("starting.jvm.progress.text") : ExecutionBundle.message("instantiating.tests.progress.text");
return phaseName + Formatters.printMinSec(millis);
}
示例9: getDisplayName
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
@Override
public String getDisplayName() {
return ExecutionBundle.message("application.configuration.name");
}
示例10: getConfigurationTypeDescription
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
@Override
public String getConfigurationTypeDescription() {
return ExecutionBundle.message("application.configuration.description");
}
示例11: printMemoryUnsigned
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
public static String printMemoryUnsigned(final long memory) {
return ExecutionBundle.message("junit.runing.info.memory.available.kb.message", NumberFormat.getInstance().format((double)memory/1024.0));
}
示例12: RuntimeConfigurationException
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
public RuntimeConfigurationException(final String message) {
super(message, ExecutionBundle.message("run.configuration.error.dialog.title"));
}
示例13: getName
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
public String getName() {
return ExecutionBundle.message("test.cases.count.message", getTestsCount());
}
示例14: MyCopyAction
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
public MyCopyAction() {
super(ExecutionBundle.message("run.configuration.arguments.help.panel.copy.action.name"));
copyFrom(ActionManager.getInstance().getAction(IdeActions.ACTION_COPY));
}
示例15: JrePathEditor
import com.intellij.execution.ExecutionBundle; //导入方法依赖的package包/类
/**
* This constructor can be used in UI forms. <strong>Don't forget to call {@link #setDefaultJreSelector(DefaultJreSelector)}!</strong>
*/
public JrePathEditor() {
myLabel = new JBLabel(ExecutionBundle.message("run.configuration.jre.label"));
myComboBoxModel = new SortedComboBoxModel<JreComboBoxItem>(new Comparator<JreComboBoxItem>() {
@Override
public int compare(JreComboBoxItem o1, JreComboBoxItem o2) {
int result = Comparing.compare(o1.getOrder(), o2.getOrder());
if (result != 0) {
return result;
}
return o1.getPresentableText().compareToIgnoreCase(o2.getPresentableText());
}
});
myDefaultJreItem = new DefaultJreItem();
myComboBoxModel.add(myDefaultJreItem);
final Sdk[] allJDKs = ProjectJdkTable.getInstance().getAllJdks();
for (Sdk sdk : allJDKs) {
myComboBoxModel.add(new SdkAsJreItem(sdk));
}
final Set<String> jrePaths = new HashSet<String>();
for (JreProvider provider : JreProvider.EP_NAME.getExtensions()) {
String path = provider.getJrePath();
if (!StringUtil.isEmpty(path)) {
jrePaths.add(path);
myComboBoxModel.add(new CustomJreItem(path));
}
}
for (Sdk jdk : allJDKs) {
String homePath = jdk.getHomePath();
if (!SystemInfo.isMac) {
final File jre = new File(jdk.getHomePath(), "jre");
if (jre.isDirectory()) {
homePath = jre.getPath();
}
}
if (jrePaths.add(homePath)) {
myComboBoxModel.add(new CustomJreItem(homePath));
}
}
ComboBox comboBox = new ComboBox(myComboBoxModel);
comboBox.setEditable(true);
comboBox.setRenderer(new ColoredListCellRendererWrapper<JreComboBoxItem>() {
@Override
protected void doCustomize(JList list, JreComboBoxItem value, int index, boolean selected, boolean hasFocus) {
value.render(this, selected);
}
});
myComboboxEditor = new JreComboboxEditor(myComboBoxModel);
myComboboxEditor.getEditorComponent().setTextToTriggerEmptyTextStatus(DEFAULT_JRE_TEXT);
comboBox.setEditor(myComboboxEditor);
myPathField = new ComboboxWithBrowseButton(comboBox);
myPathField.addBrowseFolderListener(ExecutionBundle.message("run.configuration.select.alternate.jre.label"),
ExecutionBundle.message("run.configuration.select.jre.dir.label"),
null, BrowseFilesListener.SINGLE_DIRECTORY_DESCRIPTOR,
JreComboboxEditor.TEXT_COMPONENT_ACCESSOR);
setLayout(new MigLayout("ins 0, gap 10, fill, flowx"));
add(myLabel, "shrinkx");
add(myPathField, "growx, pushx");
InsertPathAction.addTo(myComboboxEditor.getEditorComponent());
setAnchor(myLabel);
updateUI();
}