Permalink
Cannot retrieve contributors at this time
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?
Violet/VioletPlugin/VioletPlugin.ActivityDiagram/src/main/java/com/horstmann/violet/product/diagram/activity/ActivityDiagramPlugin.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
92 lines (78 sloc)
2.08 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.horstmann.violet.product.diagram.activity; | |
import java.util.Locale; | |
import java.util.ResourceBundle; | |
import com.horstmann.violet.framework.plugin.IDiagramPlugin; | |
import com.horstmann.violet.product.diagram.abstracts.IGraph; | |
/** | |
* Describes activity diagram graph type | |
* | |
* @author Alexandre de Pellegrin | |
* | |
*/ | |
public class ActivityDiagramPlugin implements IDiagramPlugin | |
{ | |
/* | |
* (non-Javadoc) | |
* | |
* @see com.horstmann.violet.framework.plugin.AbstractPlugin#getDescription() | |
*/ | |
public String getDescription() | |
{ | |
return "Activity 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.activity_diagram.text"); | |
} | |
/* | |
* (non-Javadoc) | |
* | |
* @see com.horstmann.violet.product.diagram.abstracts.GraphType#getFileExtension() | |
*/ | |
public String getFileExtension() | |
{ | |
return this.rs.getString("files.activity.extension"); | |
} | |
/* | |
* (non-Javadoc) | |
* | |
* @see com.horstmann.violet.product.diagram.abstracts.GraphType#getFileExtensionName() | |
*/ | |
public String getFileExtensionName() | |
{ | |
return this.rs.getString("files.activity.name"); | |
} | |
/* | |
* (non-Javadoc) | |
* | |
* @see com.horstmann.violet.product.diagram.abstracts.GraphType#getGraphClass() | |
*/ | |
public Class<? extends IGraph> getGraphClass() | |
{ | |
return ActivityDiagramGraph.class; | |
} | |
private ResourceBundle rs = ResourceBundle.getBundle(ActivityDiagramConstant.ACTIVITY_DIAGRAM_STRINGS, Locale.getDefault()); | |
} |