Package net.sf.graphiti.ui.editors

Examples of net.sf.graphiti.ui.editors.GraphEditor


    // To improve user experience, the selection is the editor's input file.
    IStructuredSelection selection = this.selection;
    Object obj = selection.getFirstElement();
    if (obj instanceof GraphEditor) {
      GraphEditor editor = (GraphEditor) obj;
      IEditorInput input = editor.getEditorInput();
      if (input instanceof IFileEditorInput) {
        IFile file = ((IFileEditorInput) input).getFile();
        selection = new StructuredSelection(file);
      }
    }
View Full Code Here


    setTitle("Convert types");

    Object obj = selection.getFirstElement();
    if (obj instanceof GraphEditor) {
      GraphEditor editor = (GraphEditor) obj;
      originalGraph = editor.getContents();

      // fills the original graph, vertex and edge types
      Configuration configuration = originalGraph.getConfiguration();
      originalEdgeTypes = configuration.getEdgeTypes();
      originalVertexTypes = configuration.getVertexTypes();
View Full Code Here

TOP

Related Classes of net.sf.graphiti.ui.editors.GraphEditor

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.