Package net.sf.graphiti.io

Examples of net.sf.graphiti.io.GenericGraphParser


    super.setInput(input);

    IFile file = ((IFileEditorInput) input).getFile();
    setPartName(file.getName());
    try {
      GenericGraphParser parser = new GenericGraphParser(
          GraphitiModelPlugin.getDefault().getConfigurations());
      graph = parser.parse(file);

      // Updates the palette
      getEditDomain().setPaletteRoot(getPaletteRoot());

      // show properties
View Full Code Here


   *            {@link Vertex#TYPE_OUTPUT_PORT} or {@link Vertex#TYPE_PORT}.
   * @return A list of port names.
   */
  private List<String> getPorts(IFile sourceFile, String[] portTypes) {
    // refinement graph
    GenericGraphParser parser = new GenericGraphParser(GraphitiModelPlugin
        .getDefault().getConfigurations());
    Graph graph = null;
    try {
      graph = parser.parse(sourceFile);
    } catch (IncompatibleConfigurationFile e) {
      System.out.println(e.getMessage());
    }

    // get ports from graph
View Full Code Here

TOP

Related Classes of net.sf.graphiti.io.GenericGraphParser

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.