Examples of GraphModelReference


Examples of com.google.devtools.depan.eclipse.editors.GraphModelReference

   * Simply output the workspace relative name for the referenced GraphModel.
   */
  @Override
  public void marshal(Object source, HierarchicalStreamWriter writer,
      MarshallingContext context) {
    GraphModelReference graphRef = (GraphModelReference) source;
    context.convertAnother(graphRef.getLocation().getFullPath().toString());
  }
View Full Code Here

Examples of com.google.devtools.depan.eclipse.editors.GraphModelReference

      HierarchicalStreamReader reader, UnmarshallingContext context) {

    IFile graphFile = unmarshallGraphLocation(context);

    GraphDocument graph = ResourceCache.fetchGraphDocument(graphFile);
    return new GraphModelReference(graphFile, graph);
    }
View Full Code Here

Examples of com.google.devtools.depan.eclipse.editors.GraphModelReference

    // There should not be two graphs in the same serialization,
    // but just in case ....
    GraphDocument prior = getGraphDocument(context);

    try {
      GraphModelReference viewInfo =
          (GraphModelReference) unmarshalObject(reader, context);
      putGraphDocument(context, viewInfo.getGraph());
      context.put(GraphModel.class, viewInfo.getGraph());

      Collection<GraphNode> viewNodes = loadGraphNodes(reader, context);

      // TODO: Converter for ViewPreferences
      ViewPreferences viewPrefs = (ViewPreferences) unmarshalObject(reader, context);
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.