Examples of GraphDocument


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

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

  @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

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

    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

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

    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

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

   * 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

Examples of com.sun.hotspot.igv.data.GraphDocument

                component.requestActive();

                RequestProcessor.getDefault().post(new Runnable() {

                    public void run() {
                        GraphDocument document = null;
                        try {
                            document = parser.parse(reader, is, parseMonitor);
                            parseMonitor.setState("Finishing");
                            component.getDocument().addGraphDocument(document);
                        } catch (SAXException ex) {
View Full Code Here

Examples of com.sun.hotspot.igv.data.GraphDocument

        initComponents();

        setName(NbBundle.getMessage(OutlineTopComponent.class, "CTL_OutlineTopComponent"));
        setToolTipText(NbBundle.getMessage(OutlineTopComponent.class, "HINT_OutlineTopComponent"));

        document = new GraphDocument();
        initListView();
        initToolbar();
        initReceivers();
    }
View Full Code Here

Examples of com.sun.hotspot.igv.data.GraphDocument

*/
public final class SaveAsAction extends NodeAction {

    protected void performAction(Node[] activatedNodes) {

        GraphDocument doc = new GraphDocument();
        for (Node n : activatedNodes) {
            Group group = n.getLookup().lookup(Group.class);
            doc.addGroup(group);
        }

        save(doc);
    }
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.