Java Code Examples for com.intellij.ide.IdeBundle#message()

The following examples show how to use com.intellij.ide.IdeBundle#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: ProcessPopup.java    From consulo with Apache License 2.0 5 votes vote down vote up
public ProcessPopup(final InfoAndProgressPanel progressPanel) {
  myProgressPanel = progressPanel;

  buildActiveContent();
  myInactiveContentComponent = new JLabel(IdeBundle.message("progress.window.empty.text"), null, JLabel.CENTER) {
    @Override
    public Dimension getPreferredSize() {
      return getEmptyPreferredSize();
    }
  };
  myInactiveContentComponent.setFocusable(true);

  switchToPassive();
}
 
Example 2
Source File: ExportToFileUtil.java    From consulo with Apache License 2.0 5 votes vote down vote up
protected JPanel createFilePanel(JTextField textField, JButton button) {
  JPanel panel = new JPanel();
  panel.setLayout(new GridBagLayout());
  GridBagConstraints gbConstraints = new GridBagConstraints();
  gbConstraints.fill = GridBagConstraints.HORIZONTAL;
  JLabel promptLabel = new JLabel(IdeBundle.message("editbox.export.to.file"));
  gbConstraints.weightx = 0;
  panel.add(promptLabel, gbConstraints);
  gbConstraints.weightx = 1;
  panel.add(textField, gbConstraints);
  gbConstraints.fill = 0;
  gbConstraints.weightx = 0;
  gbConstraints.insets = new Insets(0, 0, 0, 0);
  panel.add(button, gbConstraints);

  String defaultFilePath = myExporter.getDefaultFilePath();
  if (! new File(defaultFilePath).isAbsolute()) {
    defaultFilePath = PathMacroManager.getInstance(myProject).collapsePath(defaultFilePath).replace('/', File.separatorChar);
  } else {
    defaultFilePath = defaultFilePath.replace('/', File.separatorChar);
  }
  textField.setText(defaultFilePath);

  button.addActionListener(
      new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        browseFile();
      }
    }
  );

  return panel;
}
 
Example 3
Source File: GotoClassAction.java    From consulo with Apache License 2.0 5 votes vote down vote up
static void invokeGoToFile(@Nonnull Project project, @Nonnull AnActionEvent e) {
  String actionTitle = StringUtil.trimEnd(ObjectUtils.notNull(e.getPresentation().getText(), GotoClassPresentationUpdater.getActionTitle()), "...");
  String message = IdeBundle.message("go.to.class.dumb.mode.message", actionTitle);
  DumbService.getInstance(project).showDumbModeNotification(message);
  AnAction action = ActionManager.getInstance().getAction(GotoFileAction.ID);
  InputEvent event = ActionCommand.getInputEvent(GotoFileAction.ID);
  Component component = e.getData(PlatformDataKeys.CONTEXT_COMPONENT);
  ActionManager.getInstance().tryToExecute(action, event, component, e.getPlace(), true);
}
 
Example 4
Source File: TipDialog.java    From consulo with Apache License 2.0 4 votes vote down vote up
public NextTipAction() {
  super(IdeBundle.message("action.next.tip"));
  putValue(DialogWrapper.DEFAULT_ACTION, Boolean.TRUE);
}
 
Example 5
Source File: ProjectNameMacro.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getDescription() {
  return IdeBundle.message("macro.project.file.name");
}
 
Example 6
Source File: ProjectPatternProvider.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getDisplayName() {
  return IdeBundle.message("title.project");
}
 
Example 7
Source File: DependencyValidationManagerImpl.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getDisplayName() {
  return IdeBundle.message("shared.scopes.node.text");
}
 
Example 8
Source File: StructureViewSelectInTarget.java    From consulo with Apache License 2.0 4 votes vote down vote up
public String toString() {
  return IdeBundle.message("select.in.file.structure");
}
 
Example 9
Source File: ActionMacroConfigurable.java    From consulo with Apache License 2.0 4 votes vote down vote up
public String getDisplayName() {
  return IdeBundle.message("title.edit.macros");
}
 
Example 10
Source File: TreeFileChooserDialog.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getPromptText() {
  return IdeBundle.message("prompt.filechooser.enter.file.name");
}
 
Example 11
Source File: InstallPluginAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public InstallPluginAction(PluginManagerMain availablePluginPanel, PluginManagerMain installedPluginPanel) {
  super(IdeBundle.message("action.download.and.install.plugin"), IdeBundle.message("action.download.and.install.plugin"), AllIcons.Actions.Install);
  myAvailablePluginPanel = availablePluginPanel;
  myInstalledPluginPanel = installedPluginPanel;
}
 
Example 12
Source File: ScratchesNamedScope.java    From consulo with Apache License 2.0 4 votes vote down vote up
public static String scratchesAndConsoles() {
  return IdeBundle.message("scratches.and.consoles");
}
 
Example 13
Source File: FavoritesProjectViewPane.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getTitle() {
  return IdeBundle.message("action.toolwindow.favorites");
}
 
Example 14
Source File: IntelliJLookAndFeelInfo.java    From consulo with Apache License 2.0 4 votes vote down vote up
public IntelliJLookAndFeelInfo(){
  super(IdeBundle.message("idea.intellij.look.and.feel"), IntelliJLaf.class.getName());
}
 
Example 15
Source File: ModuleProfileNameMacro.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getDescription() {
  return IdeBundle.message("macro.module.profile.name");
}
 
Example 16
Source File: ViewSubtypesHierarchyAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public ViewSubtypesHierarchyAction() {
  super(IdeBundle.message("action.view.subtypes.hierarchy"),
        IdeBundle.message("action.description.view.subtypes.hierarchy"), AllIcons.Hierarchy.Subtypes);
}
 
Example 17
Source File: ModulePathMacro.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getDescription() {
  return IdeBundle.message("macro.module.source.path");
}
 
Example 18
Source File: ProjectPathMacro.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getDescription() {
  return IdeBundle.message("macro.project.source.path");
}
 
Example 19
Source File: DarculaLookAndFeelInfo.java    From consulo with Apache License 2.0 4 votes vote down vote up
public DarculaLookAndFeelInfo() {
  super(IdeBundle.message("idea.dark.look.and.feel"), DarculaLaf.class.getName());
}
 
Example 20
Source File: FilePathRelativeToProjectRootMacro2.java    From consulo with Apache License 2.0 4 votes vote down vote up
@Override
public String getDescription() {
  return IdeBundle.message("macro.file.path.relative.to.root.fwd.slash");
}