Package com.google.devtools.depan.eclipse.editors

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


  public Object unmarshal(
      HierarchicalStreamReader reader, UnmarshallingContext context) {

    IFile graphFile = unmarshallGraphLocation(context);

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


  @Override
  public Object unmarshal(
      HierarchicalStreamReader reader, UnmarshallingContext context) {
    // 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());
View Full Code Here

    monitor.worked(1);

    for (IResource graphResource : mergeGraphs) {
      String graphName = graphResource.getName();
      monitor.setTaskName("Loading dependency graph " + graphName + "...");
      GraphDocument nextGraph =
          ResourceCache.importGraphDocument((IFile) graphResource);
      monitor.worked(1);

      monitor.setTaskName("Merging dependency graph " + graphName + "...");
      mergeGraph(resultModel, nextGraph.getGraph());
      analyzers.addAll(nextGraph.getAnalyzers());
      monitor.worked(1);
    }

    GraphDocument resultDoc = new GraphDocument(resultModel, analyzers);
    return resultDoc;
  }
View Full Code Here

    try {
      monitor.beginTask(
          "Creating " + getOutputFileName(), 2 + countAnalysisWork());

      GraphDocument graph = generateAnalysisDocument(monitor);

      saveAnalysisDocument(monitor, graph);
    } catch (CoreException e) {
      throw new InvocationTargetException(e);
    } catch (IOException errIo) {
View Full Code Here

   * Create a new {@link GraphDocument} with the list of analysis plugins.
   * The first listed plugin becomes the UI default for the document.
   */
  protected GraphDocument createGraphDocument(
      GraphModel graph, String... pluginIds) {
    return new GraphDocument(graph,
      SourcePluginRegistry.buildPluginList(pluginIds));
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.eclipse.editors.GraphDocument

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.