Package org.openbp.jaspira.undo

Examples of org.openbp.jaspira.undo.UndoMgr


     */
    public JaspiraEventHandlerCode undo(JaspiraActionEvent je)
    {
      if (currentModeler != null)
      {
        UndoMgr undoMgr = currentModeler.getUndoMgr();
        if (undoMgr.canUndo())
        {
          undoMgr.undo();
          return EVENT_CONSUMED;
        }
      }
      return EVENT_IGNORED;
    }
View Full Code Here


     */
    public JaspiraEventHandlerCode redo(JaspiraActionEvent je)
    {
      if (currentModeler != null)
      {
        UndoMgr undoMgr = currentModeler.getUndoMgr();
        if (undoMgr.canRedo())
        {
          undoMgr.redo();
          return EVENT_CONSUMED;
        }
      }
      return EVENT_IGNORED;
    }
View Full Code Here

     */
    public JaspiraEventHandlerCode modeler_view_activated(JaspiraEvent je)
    {
      currentModeler = (Modeler) je.getObject();

      UndoMgr undoMgr = currentModeler.getUndoMgr();
      undoMgr.updateActions();

      return EVENT_HANDLED;
    }
View Full Code Here

    toolSupport = new ModelerToolSupport(this);
    StandardToolSupportSetup.setupToolSupport(toolSupport, true);

    clipboardSupport = new ClipboardSupport(workspaceView, getPluginResourceCollection(), false);

    undoMgr = new UndoMgr();

    getContentPane().removeAll();

    scrollPane = new JScrollPane(workspaceView);
    scrollPane.getViewport().addChangeListener(new ChangeListener()
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.undo.UndoMgr

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.