protected JPopupMenu createPopMenu() {
    JPopupMenu pop = new BasePopupMenu();
    copy =
        new JMenuItem(PublicResource.getString("TextEditor.popmenu.copy"), IconResource.ICON_COPY);
    copy.addActionListener(new CopyAction());

    paste =
        new JMenuItem(
            PublicResource.getString("TextEditor.popmenu.paste"), IconResource.ICON_PASTE);
    paste.addActionListener(new PasteAction());

    cut = new JMenuItem(PublicResource.getString("TextEditor.popmenu.cut"), IconResource.ICON_CUT);
    cut.addActionListener(new CutAction());

    selectAll =
        new JMenuItem(
            PublicResource.getString("TextEditor.popmenu.selectAll"), IconResource.getBlankIcon());
    selectAll.addActionListener(new SelectAllAction());

    pop.add(cut);
    pop.add(copy);
    pop.add(paste);
    pop.add(new JSeparator());
    pop.add(selectAll);
    return pop;
  }
Пример #2
0
 /* (non-Javadoc)
  * @see com.coolsql.system.Task#getDescribe()
  */
 public String getDescribe() {
   return PublicResource.getString("system.closetask.unloadplugin.describe");
 }