Examples of JaspiraEvent


Examples of org.openbp.jaspira.event.JaspiraEvent

      list.add(decorator);
    }

    if (provider != null)
    {
      provider.fireEvent(new JaspiraEvent(provider, "global.decoration.added", key));
    }
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

      }
    }

    if (provider != null)
    {
      provider.fireEvent(new JaspiraEvent(provider, "global.decoration.removed", key));
    }
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

        // Send the object to the OE
        modeler.fireEvent(new PropertyBrowserSetEvent(modeler, mo, originalObject, false, mo.getDescription(), title, null, false, true));

        // Show object description in info panel
        modeler.fireEvent(new JaspiraEvent(modeler, "plugin.infopanel.setinfotext", mo));
      }

      if (figure instanceof Colorizable)
      {
        // Make the color chooser display the color of the selected object if it has a custom color
        Colorizable colorizable = (Colorizable) figure;
        Color figureColor = colorizable.getFillColor();
        Color defaultColor = colorizable.getDefaultFillColor();
        if (figureColor != null && ! figureColor.equals(defaultColor))
        {
          modeler.fireEvent("colorchooser.setcolor", figureColor);
        }
      }
    }
    else
    {
      // More than one object selected, clear OE
      modeler.fireEvent(new PropertyBrowserSetEvent(modeler));
      modeler.fireEvent(new JaspiraEvent(modeler, "plugin.infopanel.clearinfotext"));
    }

    // Update the cut/copy/paste button status
    modeler.fireEvent("global.clipboard.updatestatus");
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

      removeStackedEvent(VisiblePlugin.GEU);
    }

    // Stack the event;
    // We can safely use the super method here because we already made the checks that are also implemented in this.stackEvent
    super.stackEvent(new JaspiraEvent(this, eventName, null, JaspiraEvent.TYPE_DIRECT, Plugin.LEVEL_PLUGIN, JaspiraEvent.STACKABLE));
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

    Item item = itemBrowser.getSelectedItem();

    if (item instanceof ProcessItem || item instanceof Model)
    {
      // Fire the event that runs the model
      itemBrowser.fireEvent(new JaspiraEvent(itemBrowser, "debugger.client.run", item));
      return EVENT_CONSUMED;
    }

    return EVENT_IGNORED;
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

        else
          eventArg = e.node.getColumnValue(0);

        if (eventArg instanceof DescriptionObject)
        {
          fireEvent(new JaspiraEvent(this, "plugin.infopanel.setinfotext", eventArg));
        }
      }

      break;
    }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

   */
  public void focusLost(FocusEvent e)
  {
    propertyBrowser.saveObject();

    fireEvent(new JaspiraEvent(this, "plugin.infopanel.clearinfotext", null));
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

    // If the result plugin isn't registered in an plugin container, then register
    // it in the same as the Item Browser
    TabbedPluginContainer tpc = plugin.getPluginPanel().getTabbedContainer();
    if (tpc == null)
    {
      JaspiraEvent je = new JaspiraEvent(this, "global.plugin.addtocontainer", plugin);
      je.setTargetClassName("org.openbp.cockpit.plugins.itembrowser.ItemBrowserPlugin");
      fireEvent(je);
    }

    return plugin;
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

      // This will finish the spline animation if not finished yet
      animator.abort();
    }

    // Cause a screen refresh of the invalidated figures
    fireEvent(new JaspiraEvent(DebuggerPlugin.this, "modeler.view.refresh"));

    // Update the action button status
    updateActions();
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

      {
        poller = new PollingThread();
        poller.start();
      }

      fireEvent(new JaspiraEvent(DebuggerPlugin.this, "debugger.client.statuschange", clientId));
    }
  }
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.