Package org.openbp.jaspira.event

Examples of org.openbp.jaspira.event.VetoableEvent


    String msg = itemBrowser.getPluginResourceCollection().getRequiredString(item instanceof Model ? "msg.removemodel" : "msg.removeitem");
    int response = JMsgBox.showFormat(null, msg, item.getQualifier(), JMsgBox.TYPE_YESNO);

    if (response == JMsgBox.TYPE_YES)
    {
      VetoableEvent ve = new VetoableEvent(itemBrowser, "standard.file.askdelete", item.getQualifier());
      itemBrowser.fireEvent(ve);

      if (! ve.isVetoed())
      {
        // Select something different than the current node
        itemBrowser.performAlternativeSelection();

        ModelConnector modelConnector = ModelConnector.getInstance();
View Full Code Here


    {
      // Nothing to save
      return EVENT_IGNORED;
    }

    VetoableEvent ve = new VetoableEvent(modeler, "modeler.view.asksave", modeler);
    modeler.fireEvent(ve);
    if (!ve.isVetoed())
    {
      if (modeler.saveProcess())
      {
        modeler.getDrawing().clearModified();
        modeler.fireEvent(new StatusBarTextEvent(modeler, "Process " + modeler.getProcessQualifier() + " saved."));
View Full Code Here

    {
      return;
    }

    // Ask for change from active page to page.
    VetoableEvent ask = new VetoableEvent(this, "global.page.askchange", activePage, page);
    fireEvent(ask);
    if (ask.isVetoed())
    {
      // We have a veto, no change!
      return;
    }
View Full Code Here

    {
      // This might be due to an out of memory error
      return true;
    }

    VetoableEvent ve = new VetoableEvent(this, "modeler.view.askclose", this);
    fireEvent(ve);
    if (ve.isVetoed())
    {
      return false;
    }

    // TOLOCALIZE
View Full Code Here

   *    true  If the plugin has been closed<br>
   *    false  Otherwise
   */
  public boolean requestClose()
  {
    VetoableEvent ve = new VetoableEvent(this, "global.askclose");

    inheritEvent(ve);

    if (ve.isVetoed())
    {
      inheritEvent(new JaspiraEvent(this, "global.closecanceled"));
      return false;
    }

View Full Code Here

TOP

Related Classes of org.openbp.jaspira.event.VetoableEvent

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.