Package org.openbp.guiclient.event

Examples of org.openbp.guiclient.event.OpenEvent


      if (qualifier.getItemType().equals(ItemTypes.PROCESS))
      {
        // Open the process of select the node/socket/parameter
        ProcessItem process = getProcess(mo);
        OpenEvent oEvent = new OpenEvent(this, "open.modeler", process);
        fireEvent(oEvent);

        // The event must be fired twice, because the first only deselect the current selection.
        // The second select the component.
        QualifierEvent jEvent = new QualifierEvent(this, "modeler.view.select", qualifier);
        fireEvent(jEvent);
        fireEvent(jEvent);
      }
      else if (qualifier.getItemType().equals(ItemTypes.ACTIVITY) || qualifier.getItemType().equals(ItemTypes.WEBSERVICE) || qualifier.getItemType().equals(ItemTypes.VISUAL) || qualifier.getItemType().equals(ItemTypes.ACTOR))
      {
        // Open the activity in the component editor
        ActivityItem activity = getActivity(mo);
        OpenEvent event = new OpenEvent(this, "global.edit.edit", activity);
        fireEvent(event);
      }
      else if (qualifier.getItemType().equals(ItemTypes.TYPE))
      {
        // Open the datatype in the model manager
        DataTypeItem data = getDataType(mo);
        OpenEvent event = new OpenEvent(this, "plugin.itembrowser.open", data);
        fireEvent(event);
      }
      else if (qualifier.getItemType().equals(ItemTypes.MODEL))
      {
        // Open the datatype in the model manager
        OpenEvent event = new OpenEvent(this, "plugin.itembrowser.open", mo);
        fireEvent(event);
      }
    }
  }
View Full Code Here


          continue;
        }

        ModelQualifier qualifier = new ModelQualifier(args [i + 1]);
        qualifier.setItemType(ItemTypes.PROCESS);
        fireEvent(new OpenEvent(this, "open.modeler", qualifier));
      }
    }
  }
View Full Code Here

  protected void displayProcess(ModelQualifier qualifier)
  {
    // This will generate a history event by itself, take care to ignore it
    skipNextHistoryEvent = true;

    JaspiraEventMgr.fireGlobalEvent(new OpenEvent(this, "open.modeler", qualifier));
  }
View Full Code Here

          qualifier.setItemType(ItemTypes.PROCESS);

          // First, make sure the process the new current position refers to is loaded
          ModelQualifier processQualifier = new ModelQualifier(qualifier);
          processQualifier.setObjectPath(null);
          StackTracePlugin.this.fireEvent(new OpenEvent(StackTracePlugin.this, "open.modeler", processQualifier));

          // Now select the current position
          QualifierEvent event = new QualifierEvent(StackTracePlugin.this, "modeler.view.select", qualifier);
          StackTracePlugin.this.fireEvent(event);
          StackTracePlugin.this.fireEvent(event);
View Full Code Here

        else
        {
          object = event.getObject();
        }

        OpenEvent oe = null;
        String mimeType = openEventInfo [0].getMimeType();
        if (mimeType.startsWith("text/") && (underlyingObject instanceof Item))
        {
          FileOpenEvent foe = new FileOpenEvent(AssociationPlugin.this, openEventInfo [0].getEventName(), (String) object, new String [] { openEventInfo [0].getMimeType() });

          foe.setUnderlyingObject(underlyingObject);
          foe.setReadonly(readOnly);
          foe.setCreate(true);

          if (event instanceof FileOpenEvent)
          {
            foe.setColumnNumber(((FileOpenEvent) event).getColumnNumber());
            foe.setLineNumber(((FileOpenEvent) event).getLineNumber());
          }

          oe = foe;
        }
        else
        {
          oe = new OpenEvent(AssociationPlugin.this, openEventInfo [0].getEventName(), object);

          oe.setUnderlyingObject(underlyingObject);
          oe.setReadonly(readOnly);
          oe.setCreate(true);
          oe.setMimeTypes(new String [] { openEventInfo [0].getMimeType() });
        }

        if (fireEvent(oe))
          return EventModule.EVENT_HANDLED;
      }
View Full Code Here

     * @param ae Event
     */
    public void actionPerformed(ActionEvent ae)
    {
      // Broadcast the open event we have determined for this object
      OpenEvent oe = new OpenEvent(AssociationPlugin.this, openEventInfo.getEventName(), association.getAssociatedObject());
      oe.setUnderlyingObject(association.getUnderlyingObject());
      oe.setReadonly(readOnly);
      oe.setCreate(true);
      oe.setMimeTypes(new String [] { openEventInfo.getMimeType() });

      fireEvent(oe);
    }
View Full Code Here

    {
      // First, make sure the process the new current position refers to is loaded
      ModelQualifier processQualifier = new ModelQualifier(newPos);
      processQualifier.setItemType(ItemTypes.PROCESS);
      processQualifier.setObjectPath(null);
      fireEvent(new OpenEvent(DebuggerPlugin.this, "open.modeler", processQualifier));

      // Invalidate the new current position (will display the current position marker)
      // This will also enforce a rebuild of the content of a tag.
      fireEvent(new QualifierEvent(DebuggerPlugin.this, "modeler.view.invalidate", newPos));
View Full Code Here

    if (step)
    {
      // If we are debugging the process or we are using the internal browser,
      // we have to open the process in the modeler first
      ModelQualifier processQualifier = initialNode.getProcess().getQualifier();
      fireEvent(new OpenEvent(this, "open.modeler", processQualifier));
    }

    // The open.modeler event will be processed asynchonously,
    // so we will also put the request to the web browser to display the URL in the event queue,
    // or otherwise the internal web browser, which resides in the Modeler, will not be instantiated yet
View Full Code Here

TOP

Related Classes of org.openbp.guiclient.event.OpenEvent

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.