Package org.eclipse.graphiti.platform

Examples of org.eclipse.graphiti.platform.IDiagramEditor


  @Override
  public ICreateFeature[] getCreateFeatures() {
    ICreateFeature[] features = ProviderHelper.getCreateFeatures(this);
    AbstractNode selectedNode = null;
    IDiagramTypeProvider dtp = getDiagramTypeProvider();
    IDiagramEditor diagramEditor = dtp.getDiagramEditor();
    if (diagramEditor instanceof RiderDesignEditor) {
      RiderDesignEditor rider = (RiderDesignEditor) diagramEditor;
      selectedNode = rider.getSelectedNode();
      if (selectedNode == null) {
        selectedNode = rider.getSelectedRoute();
View Full Code Here


      // do an asynchronous update in the UI thread
      Display.getDefault().asyncExec(new Runnable() {

        @Override
        public void run() {
          IDiagramEditor diagramEditor = provider.getDiagramEditor();
          if (provider.isAutoUpdateAtRuntime() && diagramEditor.isDirty()) {
            notificationService.updatePictogramElements(dirtyPEs);
          } else {
            diagramEditor.refresh();
          }
        }

      });
    }
View Full Code Here

   * Returns the transactional editing domain of the current diagram editor.
   *
   * @return the transactional editing domain of the diagram editor.
   */
  protected TransactionalEditingDomain getTransactionalEditingDomain() {
    final IDiagramEditor de = getDiagramEditor();
    if (de != null) {
      return de.getEditingDomain();
    }

    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.platform.IDiagramEditor

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.