Package org.eclipse.gef

Examples of org.eclipse.gef.EditPartFactory


                MarqueeDragTracker tracker = (MarqueeDragTracker) super.getDragTracker(req);
                tracker.setMarqueeBehavior(MarqueeSelectionTool.BEHAVIOR_NODES_AND_CONNECTIONS);
                return tracker;
            }
        });
        getGraphicalViewer().setEditPartFactory(new EditPartFactory() {
            public EditPart createEditPart(EditPart context, Object object) {
                if (!(object instanceof GraphElement))
                    return null;
                GraphElement element = (GraphElement) object;
                EditPart editPart = element.getTypeDefinition().createGraphicalEditPart(element);
View Full Code Here


      for (IConfigurationElement config : editor.getAdapterDefinitions()) {
        try {
          Object obj = config
              .createExecutableExtension(PageAdaptersExtensionPointConstants.ATTR_EDITPART_FACTORY);
          if (obj instanceof EditPartFactory) {
            EditPartFactory factory = (EditPartFactory) obj;
            part = factory.createEditPart(context, model);
            if (part != null) {
              return part;
            }
          }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.EditPartFactory

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.