Package org.openbp.jaspira.action

Examples of org.openbp.jaspira.action.ActionMgr


    if (actionsBySequence != null)
    {
      KeyMgr.getInstance().removeSequences(actionsBySequence.keySet().iterator());
    }

    ActionMgr actionMgr = ActionMgr.getInstance();

    // Unregister the actions of the event modules
    if (eventActionNames != null)
    {
      for (Iterator it = eventActionNames.iterator(); it.hasNext();)
      {
        actionMgr.removeAction((String) it.next());
      }
    }

    // Unregister the user actions
    actionMgr.removeAllActions(getExternalActions());
  }
View Full Code Here


        {
          canPaste = target.canPaste(transferable);
        }
      }

      ActionMgr am = ActionMgr.getInstance();

      JaspiraAction copyAction = am.getAction("global.clipboard.copy");
      if (copyAction != null)
        copyAction.setEnabled(canCopy);

      JaspiraAction cutAction = am.getAction("global.clipboard.cut");
      if (cutAction != null)
        cutAction.setEnabled(canCut);

      JaspiraAction deleteAction = am.getAction("global.clipboard.delete");
      if (deleteAction != null)
        deleteAction.setEnabled(canDelete);

      JaspiraAction pasteAction = am.getAction("global.clipboard.paste");
      if (pasteAction != null)
        pasteAction.setEnabled(canPaste);

      return EVENT_IGNORED;
    }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.action.ActionMgr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.