Examples of ViewEvent


Examples of org.woped.editor.controller.vep.ViewEvent

      // First check whether we have any active modal dialogs.
      // If so, there is no point and even some danger in reacting on the activated message
      // because we will change back to the original frame in an instant
      boolean modalityFixed = FixModality();
      if (!modalityFixed)
        getEditorFocus().fireViewEvent(new ViewEvent(getEditorFocus(), AbstractViewEvent.VIEWEVENTTYPE_GUI, AbstractViewEvent.SELECT_EDITOR));
  }
View Full Code Here

Examples of org.woped.editor.controller.vep.ViewEvent

    public void internalFrameClosing(InternalFrameEvent e)
    {     
        IEditor editor = ((DefaultEditorFrame) e.getSource()).getEditor();
        WoPeDAction action = ActionFactory.getStaticAction(ActionFactory.ACTIONID_CLOSE);
        action.actionPerformed(new ViewEvent(editor, AbstractViewEvent.VIEWEVENTTYPE_GUI, AbstractViewEvent.CLOSE));

    }
View Full Code Here

Examples of org.woped.editor.controller.vep.ViewEvent

        .getAllEditors());
    boolean canceled = false;
    for (Iterator<IEditor> iter = editorList.iterator(); iter.hasNext();)
    {
      IEditor editor = (IEditor) iter.next();
      processViewEvent(new ViewEvent(editor,
          AbstractViewEvent.VIEWEVENTTYPE_GUI,
          AbstractViewEvent.CLOSE));
      if (getMediator().getUi().getAllEditors().contains(editor))
      {
        canceled = true;
View Full Code Here

Examples of org.woped.editor.controller.vep.ViewEvent

            if (value == (JOptionPane.YES_OPTION))
            {
              // try to save
              getMediator()
                  .processViewEvent(
                      new ViewEvent(
                          editor,
                          AbstractViewEvent.VIEWEVENTTYPE_FILE,
                          AbstractViewEvent.SAVE));
              closeEditor = editorVC.isSaved();
            } else if (value == JOptionPane.NO_OPTION)
View Full Code Here

Examples of org.woped.editor.controller.vep.ViewEvent

      target.setName(action_id);
    }
   
    public void actionPerformed(ActionEvent e) { 
     
      action.actionPerformed(new ViewEvent(this, AbstractViewEvent.VIEWEVENTTYPE_GUI, event_id));
      if (action_id.equals(ActionFactory.ACTIONID_CLOSE_TOKENGAME)) {
        getRibbon().setVisible(getTokengameGroup(), false);
        getRibbon().setSelectedTask(getAnalyzeTask());
      }
    }
View Full Code Here

Examples of org.woped.editor.controller.vep.ViewEvent

    }
   
    public void actionPerformed(ActionEvent e) {
     
      File f = new File(path);
            fireViewEvent(new ViewEvent(m_mediator.getUi(), AbstractViewEvent.VIEWEVENTTYPE_FILE, AbstractViewEvent.OPEN, f));   
        if (m_mediator.getUi().getAllEditors().size() > numEditors)
          getRibbon().setSelectedTask(getEditTask());
    }   
View Full Code Here

Examples of org.woped.editor.controller.vep.ViewEvent

      this.path = path;
    }
   
    public void actionPerformed(ActionEvent e) {
      File f = new File(path);
            fireViewEvent(new ViewEvent(m_mediator.getUi(), AbstractViewEvent.VIEWEVENTTYPE_FILE, AbstractViewEvent.OPEN_SAMPLE, f));   
        getRibbon().setSelectedTask(getEditTask());
    }
View Full Code Here

Examples of org.woped.editor.controller.vep.ViewEvent

            });
            OSXAdapter.setQuitHandler(new ActionListener() {
              public void actionPerformed(ActionEvent e) {
          m_dam.fireViewEvent(
              new ViewEvent(
                  m_dam,
                  AbstractViewEvent.VIEWEVENTTYPE_GUI,
                  AbstractViewEvent.EXIT));

              }
            });
          
            OSXAdapter.setAboutHandler(new ActionListener() {
              public void actionPerformed(ActionEvent e) {
           m_dam.fireViewEvent(
              new ViewEvent(
                  m_dam,
                  AbstractViewEvent.VIEWEVENTTYPE_GUI,
                  AbstractViewEvent.ABOUT));

              }
            });
           
            OSXAdapter.setPreferencesHandler(new ActionListener() {
              public void actionPerformed(ActionEvent e) {
           m_dam.fireViewEvent(
              new ViewEvent(
                  m_dam,
                  AbstractViewEvent.VIEWEVENTTYPE_APPLICATION,
                  AbstractViewEvent.CONFIG));

              }
View Full Code Here

Examples of org.woped.editor.controller.vep.ViewEvent

        }
     
        // Double click on subprocess element opens subprocess editor
        if (currentCell instanceof SubProcessModel) {
          getEditor().fireViewEvent(
            new ViewEvent(this, AbstractViewEvent.VIEWEVENTTYPE_GUI,
                      AbstractViewEvent.OPEN_SUBPROCESS));
        }
        // Double click on normal element opens property dialog
        else {
          getEditor().setLastMousePosition(e.getPoint());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.