Пример #1
0
  /** The constructor for the action which steps with the debugger. */
  public StepOutAction() {
    super("Step Out");

    putValue(MNEMONIC_KEY, new Integer('t'));
    putValue(
        ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F11, InputEvent.SHIFT_MASK, false));
    putValue(
        SMALL_ICON,
        XngrImageLoader.get().getImage("com/cladonia/xslt/debugger/ui/icons/StepOut16.gif"));
    putValue(SHORT_DESCRIPTION, "Step Out");
  }
Пример #2
0
  /**
   * The constructor for the action which tags the selected text.
   *
   * @param editor the XML Editor
   */
  public TagAction(ExchangerEditor parent) {
    super("Tag...");

    if (DEBUG) System.out.println("TagAction( " + editor + ")");

    putValue(MNEMONIC_KEY, new Integer('T'));
    // putValue( ACCELERATOR_KEY, KeyStroke.getKeyStroke( KeyEvent.VK_T, InputEvent.CTRL_MASK,
    // false));
    putValue(SMALL_ICON, XngrImageLoader.get().getImage("com/cladonia/xml/editor/icons/Tag16.gif"));
    putValue(SHORT_DESCRIPTION, "Tag...");

    this.parent = parent;

    setEnabled(false);
  }