Java Code Examples for com.intellij.execution.ExecutionBundle#message()
The following examples show how to use
com.intellij.execution.ExecutionBundle#message() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScriptRunnerUtil.java From consulo with Apache License 2.0 | 6 votes |
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; }
Example 2
Source File: ExportTestResultsForm.java From consulo with Apache License 2.0 | 6 votes |
@Nullable public String validate() { if (getExportFormat() == ExportTestResultsConfiguration.ExportFormat.UserTemplate) { if (StringUtil.isEmpty(myCustomTemplateField.getText())) { return ExecutionBundle.message("export.test.results.custom.template.path.empty"); } File file = new File(myCustomTemplateField.getText()); if (!file.isFile()) { return ExecutionBundle.message("export.test.results.custom.template.not.found", file.getAbsolutePath()); } } if (StringUtil.isEmpty(myFileNameField.getText())) { return ExecutionBundle.message("export.test.results.output.filename.empty"); } if (StringUtil.isEmpty(myFolderField.getText())) { return ExecutionBundle.message("export.test.results.output.path.empty"); } return null; }
Example 3
Source File: FlutterBazelRunConfigurationType.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
private boolean isNewlyGeneratedName(String name) { // Try to determine if this we are creating a non-template configuration from a template. // This is a hack based on what the code does in RunConfigurable.createUniqueName(). // If it fails to match, the new run config still works, just without any defaults set. final String baseName = ExecutionBundle.message("run.configuration.unnamed.name.prefix"); return name.equals(baseName) || name.startsWith(baseName + " ("); }
Example 4
Source File: FlutterBazelRunConfigurationType.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
private boolean isNewlyGeneratedName(String name) { // Try to determine if this we are creating a non-template configuration from a template. // This is a hack based on what the code does in RunConfigurable.createUniqueName(). // If it fails to match, the new run config still works, just without any defaults set. final String baseName = ExecutionBundle.message("run.configuration.unnamed.name.prefix"); return name.equals(baseName) || name.startsWith(baseName + " ("); }
Example 5
Source File: CreateAction.java From consulo with Apache License 2.0 | 5 votes |
private String generateName(final String actionText) { switch(myType) { case CREATE: return ExecutionBundle.message("create.run.configuration.for.item.action.name", actionText); case SELECT: return ExecutionBundle.message("select.run.configuration.for.item.action.name", actionText); default: return ExecutionBundle.message("save.run.configuration.for.item.action.name", actionText); } }
Example 6
Source File: RuntimeConfigurationError.java From consulo with Apache License 2.0 | 4 votes |
public RuntimeConfigurationError(final String message) { super(message, ExecutionBundle.message("error.common.title")); }
Example 7
Source File: ScopeChooserConfigurable.java From consulo with Apache License 2.0 | 4 votes |
public MySaveAsAction() { super(ExecutionBundle.message("action.name.save.as.configuration"), ExecutionBundle.message("action.name.save.as.configuration"), AllIcons.Actions.Menu_saveall); }
Example 8
Source File: RuntimeConfigurationError.java From consulo with Apache License 2.0 | 4 votes |
public RuntimeConfigurationError(final String message, final Runnable quickFix) { super(message, ExecutionBundle.message("error.common.title")); setQuickFix(quickFix); }
Example 9
Source File: DefaultRunExecutor.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public String getStartActionText() { return ExecutionBundle.message("default.runner.start.action.text"); }
Example 10
Source File: CompileStepBeforeRunNoErrorCheck.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public String getDescription(MakeBeforeRunTaskNoErrorCheck task) { return ExecutionBundle.message("before.launch.compile.step.no.error.check"); }
Example 11
Source File: CompileStepBeforeRunNoErrorCheck.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public String getName() { return ExecutionBundle.message("before.launch.compile.step.no.error.check"); }
Example 12
Source File: ConsoleViewImpl.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public String getPreviousOccurenceActionName() { return ExecutionBundle.message("up.the.stack.trace"); }
Example 13
Source File: ScrollToTestSourceAction.java From consulo with Apache License 2.0 | 4 votes |
public ScrollToTestSourceAction(final TestConsoleProperties properties) { super(ExecutionBundle.message("junit.auto.scroll.to.source.action.name"), ExecutionBundle.message("junit.open.text.in.editor.action.name"), AllIcons.General.AutoscrollToSource, properties, TestConsoleProperties.SCROLL_TO_SOURCE); }
Example 14
Source File: ToolbarPanel.java From consulo with Apache License 2.0 | 4 votes |
public SortByDurationAction(TestConsoleProperties properties) { super(ExecutionBundle.message("junit.runing.info.sort.by.statistics.action.name"), ExecutionBundle.message("junit.runing.info.sort.by.statistics.action.description"), AllIcons.RunConfigurations.SortbyDuration, properties, TestConsoleProperties.SORT_BY_DURATION); }
Example 15
Source File: TestConsoleProperties.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull protected ToggleBooleanProperty createHideSuccessfulConfig(TestConsoleProperties target) { String text = ExecutionBundle.message("junit.runing.info.hide.successful.config.action.name"); setIfUndefined(HIDE_SUCCESSFUL_CONFIG, true); return new DumbAwareToggleBooleanProperty(text, null, null, target, HIDE_SUCCESSFUL_CONFIG); }
Example 16
Source File: TestConsoleProperties.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull protected ToggleBooleanProperty createIncludeNonStartedInRerun(TestConsoleProperties target) { String text = ExecutionBundle.message("junit.runing.info.include.non.started.in.rerun.failed.action.name"); return new DumbAwareToggleBooleanProperty(text, null, null, target, INCLUDE_NON_STARTED_IN_RERUN_FAILED); }
Example 17
Source File: DefaultRunExecutor.java From consulo with Apache License 2.0 | 4 votes |
@Override public String getDescription() { return ExecutionBundle.message("standard.runner.description"); }
Example 18
Source File: UnknownBeforeRunTaskProvider.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public String getName() { return ExecutionBundle.message("before.launch.run.unknown.task"); }
Example 19
Source File: CompileStepBeforeRun.java From consulo with Apache License 2.0 | 4 votes |
@Nonnull @Override public String getName() { return ExecutionBundle.message("before.launch.compile.step"); }
Example 20
Source File: RunDialog.java From consulo with Apache License 2.0 | 4 votes |
public ApplyAction() { super(ExecutionBundle.message("apply.action.name")); }