Package org.eclipse.gef

Examples of org.eclipse.gef.GraphicalViewer.select()


      GraphicalViewer graphicalViewer = (GraphicalViewer) diagramEditor
          .getAdapter(GraphicalViewer.class);
      EditPart selectedEditPart = (EditPart) graphicalViewer
          .getEditPartRegistry().get(selectedView);
      if (selectedEditPart != null) {
        graphicalViewer.select(selectedEditPart);
      }
    }
  }

}
View Full Code Here


      GraphicalViewer graphicalViewer = (GraphicalViewer) diagramEditor
          .getAdapter(GraphicalViewer.class);
      EditPart selectedEditPart = (EditPart) graphicalViewer
          .getEditPartRegistry().get(selectedView);
      if (selectedEditPart != null) {
        graphicalViewer.select(selectedEditPart);
      }
    }
  }

}
View Full Code Here

      GraphicalViewer graphicalViewer = (GraphicalViewer) diagramEditor
          .getAdapter(GraphicalViewer.class);
      EditPart selectedEditPart = (EditPart) graphicalViewer
          .getEditPartRegistry().get(selectedView);
      if (selectedEditPart != null) {
        graphicalViewer.select(selectedEditPart);
      }
    }
  }

}
View Full Code Here

      }
      if (editpart != null)
      {
        // Force a layout first.
        viewer.flush();
        viewer.select(editpart);
        viewer.reveal(editpart);
        if (part instanceof DiagramNodePart)
        {         
          getDiagramModel().handleDirectEditing((DiagramNodePart)part);
        }
View Full Code Here

          if (editpartObj != null)
          {
            if (first)
            {
              viewer.flush();
              viewer.select((EditPart)editpartObj);             
              first = false;
            }
            else
            {
              viewer.appendSelection((EditPart)editpartObj);
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.