Skip to content
Permalink
1fb0ed0fd2
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
109 lines (95 sloc) 3.15 KB
package com.horstmann.violet.product.diagram.classes;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import com.horstmann.violet.framework.plugin.IDiagramPlugin;
import com.horstmann.violet.framework.plugin.extensionpoint.Violet016FileFilterExtensionPoint;
import com.horstmann.violet.product.diagram.abstracts.IGraph;
import com.horstmann.violet.product.diagram.classes.edges.ClassRelationshipEdge;
import com.horstmann.violet.product.diagram.classes.nodes.ClassNode;
import com.horstmann.violet.product.diagram.classes.nodes.InterfaceNode;
import com.horstmann.violet.product.diagram.classes.nodes.PackageNode;
/**
* Describes class diagram graph type
*
* @author Alexandre de Pellegrin
*
*/
public class ClassDiagramPlugin implements IDiagramPlugin, Violet016FileFilterExtensionPoint
{
/*
* (non-Javadoc)
*
* @see com.horstmann.violet.framework.plugin.AbstractPlugin#getDescription()
*/
public String getDescription()
{
return "Class UML diagram";
}
/*
* (non-Javadoc)
*
* @see com.horstmann.violet.framework.plugin.AbstractPlugin#getProvider()
*/
public String getProvider()
{
return "Alexandre de Pellegrin / Cays S. Horstmann";
}
/*
* (non-Javadoc)
*
* @see com.horstmann.violet.framework.plugin.AbstractPlugin#getVersion()
*/
public String getVersion()
{
return "1.0.0";
}
/*
* (non-Javadoc)
*
* @see com.horstmann.violet.product.diagram.abstracts.GraphType#getName()
*/
public String getName()
{
return this.rs.getString("menu.class_diagram.text");
}
/*
* (non-Javadoc)
*
* @see com.horstmann.violet.product.diagram.abstracts.GraphType#getFileExtension()
*/
public String getFileExtension()
{
return this.rs.getString("files.class.extension");
}
/*
* (non-Javadoc)
*
* @see com.horstmann.violet.product.diagram.abstracts.GraphType#getFileExtensionName()
*/
public String getFileExtensionName()
{
return this.rs.getString("files.class.name");
}
/*
* (non-Javadoc)
*
* @see com.horstmann.violet.product.diagram.abstracts.GraphType#getGraphClass()
*/
public Class<? extends IGraph> getGraphClass()
{
return ClassDiagramGraph.class;
}
public Map<String, String> getMappingToKeepViolet016Compatibility()
{
Map<String, String> replaceMap = new HashMap<String, String>();
replaceMap.put("com.horstmann.violet.ClassDiagramGraph", ClassDiagramGraph.class.getName());
replaceMap.put("com.horstmann.violet.ClassNode", ClassNode.class.getName());
replaceMap.put("com.horstmann.violet.ClassRelationshipEdge", ClassRelationshipEdge.class.getName());
replaceMap.put("com.horstmann.violet.InterfaceNode", InterfaceNode.class.getName());
replaceMap.put("com.horstmann.violet.PackageNode", PackageNode.class.getName());
return replaceMap;
}
private ResourceBundle rs = ResourceBundle.getBundle(ClassDiagramConstant.CLASS_DIAGRAM_STRINGS, Locale.getDefault());
}