Package org.eclipse.gmf.runtime.diagram.ui.editparts

Examples of org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart.resolveSemanticElement()


    for (Object o : selected) {
      if (o instanceof IGraphicalEditPart) {
        IGraphicalEditPart part = (IGraphicalEditPart) o;
       
        // it must be a GeneratedElement...
        if (part.resolveSemanticElement() instanceof GeneratedElement) {
          GeneratedElement g = (GeneratedElement) part.resolveSemanticElement();
         
          elementsToCheck.add(g);
        }
       
View Full Code Here


      if (o instanceof IGraphicalEditPart) {
        IGraphicalEditPart part = (IGraphicalEditPart) o;
       
        // it must be a GeneratedElement...
        if (part.resolveSemanticElement() instanceof GeneratedElement) {
          GeneratedElement g = (GeneratedElement) part.resolveSemanticElement();
         
          elementsToCheck.add(g);
        }
       
        if (part.getEditingDomain() != null) {
View Full Code Here

      IGraphicalEditPart diagramEditPart) {
   
    for (Object obj : diagramEditPart.getChildren()) {
      if (obj instanceof IGraphicalEditPart) {
        IGraphicalEditPart p = (IGraphicalEditPart) obj;
        if (d.equals(p.resolveSemanticElement()))
          return p;
      }
    }
    return null;
   
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.