Java Code Examples for com.intellij.CommonBundle#message()
The following examples show how to use
com.intellij.CommonBundle#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: SafeFileOutputStream.java From consulo with Apache License 2.0 | 6 votes |
private void restoreFromBackup(@Nullable Path backup, IOException e) throws IOException { if (backup == null) { throw new IOException(CommonBundle.message("safe.write.junk", myTarget), e); } boolean restored = true; try (InputStream in = Files.newInputStream(backup, BACKUP_READ); OutputStream out = Files.newOutputStream(myTarget, MAIN_WRITE)) { FileUtil.copy(in, out); } catch (IOException ex) { restored = false; e.addSuppressed(ex); } if (restored) { throw new IOException(CommonBundle.message("safe.write.restored", myTarget), e); } else { throw new IOException(CommonBundle.message("safe.write.junk.backup", myTarget, backup.getFileName()), e); } }
Example 2
Source File: ExecutionManagerImpl.java From consulo with Apache License 2.0 | 5 votes |
private static boolean userApprovesStopForSameTypeConfigurations(Project project, String configName, int instancesCount) { RunManagerImpl runManager = RunManagerImpl.getInstanceImpl(project); final RunManagerConfig config = runManager.getConfig(); if (!config.isRestartRequiresConfirmation()) return true; DialogWrapper.DoNotAskOption option = new DialogWrapper.DoNotAskOption() { @Override public boolean isToBeShown() { return config.isRestartRequiresConfirmation(); } @Override public void setToBeShown(boolean value, int exitCode) { config.setRestartRequiresConfirmation(value); } @Override public boolean canBeHidden() { return true; } @Override public boolean shouldSaveOptionsOnCancel() { return false; } @Nonnull @Override public String getDoNotShowMessage() { return CommonBundle.message("dialog.options.do.not.show"); } }; return Messages.showOkCancelDialog(project, ExecutionBundle.message("rerun.singleton.confirmation.message", configName, instancesCount), ExecutionBundle.message("process.is.running.dialog.title", configName), ExecutionBundle.message("rerun.confirmation.button.text"), CommonBundle.message("button.cancel"), Messages.getQuestionIcon(), option) == Messages.OK; }
Example 3
Source File: IOExceptionDialog.java From consulo with Apache License 2.0 | 5 votes |
@Nonnull @Override protected Action[] createLeftSideActions() { return new Action[] { new AbstractAction(CommonBundle.message("dialog.ioexception.proxy")) { @Override public void actionPerformed(@Nonnull ActionEvent e) { ShowSettingsUtil.getInstance().editConfigurable(ObjectUtil.tryCast(e.getSource(), JComponent.class), new HttpProxyConfigurable()); } } }; }
Example 4
Source File: Redo.java From consulo with Apache License 2.0 | 4 votes |
protected String getActionName() { return CommonBundle.message("redo.confirmation.title"); }
Example 5
Source File: ComparisonPolicy.java From consulo with Apache License 2.0 | 4 votes |
public TrimSpacePolicy() { super(CommonBundle.message("comparison.policy.trim.space.name")); }
Example 6
Source File: RTBundle.java From react-templates-plugin with MIT License | 4 votes |
public static String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, @NotNull Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 7
Source File: RefactoringBundle.java From consulo with Apache License 2.0 | 4 votes |
public static String message(@PropertyKey(resourceBundle = BUNDLE)String key, Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 8
Source File: RTBundle.java From react-templates-plugin with MIT License | 4 votes |
public static String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, @NotNull Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 9
Source File: BuildUtils.java From CppTools with Apache License 2.0 | 4 votes |
public RerunAction(final ConsoleView consoleView, OSProcessHandler processHandler, Runnable rerun) { super(CommonBundle.message("action.rerun"),CommonBundle.message("action.rerun"), IconLoader.getIcon("/actions/refreshUsages.png"), consoleView, processHandler, rerun); registerCustomShortcutSet(CommonShortcuts.getRerun(),consoleView.getComponent()); }
Example 10
Source File: Undo.java From consulo with Apache License 2.0 | 4 votes |
protected String getActionName() { return CommonBundle.message("undo.dialog.title"); }
Example 11
Source File: SMTestsRunnerBundle.java From consulo with Apache License 2.0 | 4 votes |
public static String message(@PropertyKey(resourceBundle = BUNDLE)String key, Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 12
Source File: Redo.java From consulo with Apache License 2.0 | 4 votes |
protected String getActionName(String commandName) { return CommonBundle.message("redo.command.confirmation.text", commandName); }
Example 13
Source File: DupLocatorBundle.java From consulo with Apache License 2.0 | 4 votes |
public static String message(@Nonnull @PropertyKey(resourceBundle = BUNDLE) String key, @Nonnull Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 14
Source File: LocalHistoryBundle.java From consulo with Apache License 2.0 | 4 votes |
public static String message(@PropertyKey(resourceBundle = PATH_TO_BUNDLE)String key, Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 15
Source File: HaxeCommonBundle.java From intellij-haxe with Apache License 2.0 | 4 votes |
public static String message(@PropertyKey(resourceBundle = BUNDLE) String key, Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 16
Source File: SvnToolBoxBundle.java From SVNToolBox with Apache License 2.0 | 4 votes |
public static String message(@PropertyKey(resourceBundle = BUNDLE) String key, Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 17
Source File: ESLintBundle.java From eslint-plugin with MIT License | 4 votes |
public static String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, @NotNull Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 18
Source File: IntelliJDeodorantBundle.java From IntelliJDeodorant with MIT License | 4 votes |
public static String message(@PropertyKey(resourceBundle = BUNDLE) String key, Object... params) { return CommonBundle.message(getBundle(), key, params); }
Example 19
Source File: DependenciesPanel.java From consulo with Apache License 2.0 | 4 votes |
public CloseAction() { super(CommonBundle.message("action.close"), AnalysisScopeBundle.message("action.close.dependency.description"), AllIcons.Actions.Cancel); }
Example 20
Source File: FluidBundle.java From idea-php-typo3-plugin with MIT License | 2 votes |
public static String message(@NotNull @PropertyKey(resourceBundle = PATH_TO_BUNDLE) String key, @NotNull Object... params) { return CommonBundle.message(getBundle(), key, params); }