Package org.eclipse.gef

Examples of org.eclipse.gef.DefaultEditDomain


public void run(IAction action) {
  int style = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().getStyle();
  Shell shell = new Shell((style & SWT.MIRRORED) != 0 ? SWT.RIGHT_TO_LEFT : SWT.NONE);
  GraphicalViewer viewer = new ScrollingGraphicalViewer();
  viewer.createControl(shell);
  viewer.setEditDomain(new DefaultEditDomain(null));
  viewer.setRootEditPart(new ScalableFreeformRootEditPart());
  viewer.setEditPartFactory(new GraphicalPartFactory());
  viewer.setContents(getContents());
  viewer.flush();
 
View Full Code Here


  LogicPlugin.getDefault().getPreferenceStore().setDefault(
      PALETTE_SIZE, DEFAULT_PALETTE_SIZE);
}

public LogicEditor() {
  setEditDomain(new DefaultEditDomain(this));
}
View Full Code Here

     *
     * @param documentProvider documentProvider must contain Document with rules.
     */
    public ReteViewer(DRLRuleEditor drlEditor) {
        this.drlEditor = drlEditor;
        setEditDomain( new DefaultEditDomain( this ) );
    }
View Full Code Here

  public void initialize(IConfigEditor editor, String uri) {
    this.editor = editor;
    this.namespaceUri = uri;
    initAdapterDefinitions();
    diagram = createFlowDiagram();
    DefaultEditDomain defaultEditDomain = new DefaultEditDomain(this);
    setEditDomain(defaultEditDomain);
  }
View Full Code Here

  private IPropertyChangeListener propertyChangeListener = new GraphEditorPropertyChangeListener();

  private volatile boolean isUpdating = false;

  public GraphEditor() {
    setEditDomain(new DefaultEditDomain(this));
  }
View Full Code Here

  private KeyHandler sharedKeyHandler;

  public static final String EDITOR_ID = "org.springframework.ide.eclipse.webflow.ui.graph.WebflowEditor";

  public WebflowEditor() {
    DefaultEditDomain defaultEditDomain = new DefaultEditDomain(this);
    defaultEditDomain.setActiveTool(new ConnectionCreationTool());
    setEditDomain(defaultEditDomain);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.DefaultEditDomain

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.