Package com.google.devtools.depan.eclipse.plugins

Examples of com.google.devtools.depan.eclipse.plugins.SourcePlugin


   * Simply output the id for the plugin.
   */
  @Override
  public void marshal(Object source, HierarchicalStreamWriter writer,
      MarshallingContext context) {
    SourcePlugin analyzer = (SourcePlugin) source;
    context.convertAnother(registry.getPluginId(analyzer));
  }
View Full Code Here


  @Override
  public void marshal(Object source, HierarchicalStreamWriter writer,
      MarshallingContext context) {
    RelationshipSet relSet = (RelationshipSet) source;
    SourcePlugin plugin = findBuiltIn(relSet);
    if (null != plugin) {
      String entryId = SourcePluginRegistry.getInstance().getPluginId(plugin);
      writer.addAttribute(PLUGIN_ID, entryId);
      writer.addAttribute(REL_SET, relSet.getName());
    }
View Full Code Here

      UnmarshallingContext context) {
    try {
      String pluginId = reader.getAttribute(PLUGIN_ID);
      String relSetName = reader.getAttribute(REL_SET);
      if ((null != pluginId) && (null != relSetName)) {
        SourcePlugin plugin = SourcePluginRegistry.getSourcePlugin(pluginId);
        if (null == plugin) {
          return null;
        }
        for (RelationshipSet builtIn : plugin.getBuiltinRelationshipSets()) {
          if (relSetName.equals(builtIn.getName())) {
            return builtIn;
          }
        }
      }
View Full Code Here

    // is constructed.
    String layoutName = layoutChoices.getLayoutName();
    result.setSelectedLayout(layoutName);
    result.setLayoutFinder(layoutChoices.getRelationSet());

    SourcePlugin toolkit = graph.getDefaultAnalysis();
    result.setDisplayRelationSet(toolkit.getDefaultRelationshipSet());
    for (Relation relation : toolkit.getRelations()) {
      EdgeDisplayProperty edgeProp = new EdgeDisplayProperty();
      result.setRelationProperty(relation, edgeProp);
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.depan.eclipse.plugins.SourcePlugin

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.