Package org.openbp.guiclient.event

Examples of org.openbp.guiclient.event.QualifierEvent


        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))
      {
View Full Code Here


        // Invalidate and update the object denoted by the current position
        // fireEvent (new QualifierEvent (DebuggerPlugin.this, "modeler.view.invalidate", position));
        // fireEvent (new JaspiraEvent (DebuggerPlugin.this, "modeler.view.refresh"));

        // Move the object into view
        fireEvent(new QualifierEvent(DebuggerPlugin.this, eventName, position));
      }
    });
  }
View Full Code Here

  protected void addBreakpoint(ModelQualifier qualifier)
  {
    activateBreakpointDecorator();

    breakpointDecorator.add(qualifier);
    fireEvent(new QualifierEvent(DebuggerPlugin.this, "modeler.view.invalidate", qualifier));
  }
View Full Code Here

  void removeBreakpoint(ModelQualifier qualifier)
  {
    if (breakpointDecorator != null)
    {
      breakpointDecorator.remove(qualifier);
      fireEvent(new QualifierEvent(DebuggerPlugin.this, "modeler.view.invalidate", qualifier));

      if (breakpointDecorator.isEmpty())
      {
        deactivateBreakpointDecorator();
      }
View Full Code Here

      // Menu item: Toggle breakpoint
      group.addMenuChild(new JaspiraAction(DebuggerPlugin.this, "debugger.client.togglebreakpoint")
      {
        public void actionPerformed(ActionEvent e)
        {
          fireEvent(new QualifierEvent(DebuggerPlugin.this, "debugger.client.togglebreakpoint", socket.getQualifier()));
        }
      });

      ie.add(group);

      if (haltedPosition != null)
      {
        // Menu item: Step until; add this only if we have a halted process
        group = new JaspiraAction("popupstep", null, null, null, null, 3, JaspiraAction.TYPE_GROUP);

        group.addMenuChild(new JaspiraAction(DebuggerPlugin.this, "debugger.client.stepuntil")
        {
          public void actionPerformed(ActionEvent e)
          {
            fireEvent(new QualifierEvent(DebuggerPlugin.this, "debugger.client.stepuntil", socket.getQualifier()));
          }
        });

        ie.add(group);
      }
View Full Code Here

          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

          ProcessItem process = (ProcessItem) o;
          addModelerView(process, oe.isReadonly());

          if (qualifier != null && qualifier.getObjectPath() != null)
          {
            ModelerPage.this.fireEvent(new QualifierEvent(ModelerPage.this, "modeler.view.select", qualifier));
          }

          return EVENT_CONSUMED;
        }
      }
View Full Code Here

      ModelQualifier oldPosition = haltedPosition;
      haltedPosition = null;

      // Invalidate the current position (will clear the current position marker)
      // This will also enforce a rebuild of the content of a tag.
      fireEvent(new QualifierEvent(DebuggerPlugin.this, "modeler.view.invalidate", oldPosition));
    }

    // Update the position
    haltedPosition = newPos;

    // Activate or deactivator for the decorator for the current position
    if (haltedPosition != null)
    {
      activateStepDecorator();
    }
    else
    {
      deactivateStepDecorator();
    }

    if (newPos != null)
    {
      // 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));

      // Move the object into view; add 100 px offset to prevent the object from hanging in the corner
      scrollIntoView(newPos, true);
    }
View Full Code Here

TOP

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

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.