Examples of OpenEvent


Examples of org.apache.mina.service.executor.OpenEvent

            if (handler != null) {
                IoHandlerExecutor executor = getService().getIoHandlerExecutor();

                if (executor != null) {
                    // asynchronous event
                    executor.execute(new OpenEvent(this));
                } else {
                    // synchronous call (in the I/O loop)
                    handler.sessionOpened(this);
                }
            }
View Full Code Here

Examples of org.apache.mina.service.executor.OpenEvent

            if (handler != null) {
                IoHandlerExecutor executor = getService().getIoHandlerExecutor();

                if (executor != null) {
                    // asynchronous event
                    executor.execute(new OpenEvent(this));
                } else {
                    // synchronous call (in the I/O loop)
                    handler.sessionOpened(this);
                }
            }
View Full Code Here

Examples of org.eclipse.jface.viewers.OpenEvent

  private void internalHandleOpen() {
    Control control = getControl();
    if (control != null && !control.isDisposed()) {
      ISelection selection = getSelection();
      internalFireOpen(new OpenEvent(this, selection));
    }
  }
View Full Code Here

Examples of org.eclipse.jface.viewers.OpenEvent

  private void internalHandleOpen() {
    Control control = getControl();
    if (control != null && !control.isDisposed()) {
      ISelection selection = getSelection();
      internalFireOpen(new OpenEvent(this, selection));
    }
  }
View Full Code Here

Examples of org.eclipse.jface.viewers.OpenEvent

  private void internalHandleOpen() {
    Control control = getControl();
    if (control != null && !control.isDisposed()) {
      ISelection selection = getSelection();
      internalFireOpen(new OpenEvent(this, selection));
    }
  }
View Full Code Here

Examples of org.eclipse.jface.viewers.OpenEvent

    if(ti != null) {
      Object data = ti.getData();
      if(data != null) {
        ISelection selection = new StructuredSelection(data);
        viewer.setSelection(selection, true);
        page.handleOpen(new OpenEvent(viewer, selection));
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jface.viewers.OpenEvent

      @Override
      protected void activate(ISelection selection) {
        final int currentMode = OpenStrategy.getOpenMethod();
        try {
          OpenStrategy.setOpenMethod(OpenStrategy.DOUBLE_CLICK);
          handleOpen(new OpenEvent(viewer, selection));
        }
        finally {
          OpenStrategy.setOpenMethod(currentMode);
        }
      }

      @Override
      protected void linkToEditor(ISelection selection) {
        // not supported by this part
      }

      @Override
      protected void open(ISelection selection, boolean activate) {
        handleOpen(new OpenEvent(viewer, selection));
      }
    };
  }
View Full Code Here

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

Examples of org.openbp.guiclient.event.OpenEvent

          continue;
        }

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

Examples of org.openbp.guiclient.event.OpenEvent

  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
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.