|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kex.model.plugin.PluginExampleCreator
public class PluginExampleCreator
can be used for creating new extensions for KEX extension point.
So it allows to create new examples or example categories.
Constructor Summary | |
---|---|
PluginExampleCreator()
|
Method Summary | |
---|---|
void |
addExtension(Node extensionKEX,
File location,
Example parseElement,
List<Category> creatableCategories,
String absOverviewPic)
NOTE: parseElement could only be a type of Example or a example category in String representation. |
void |
checkDuplicate(Node extensionKEX,
String exampleId,
List<Category> creatableCategories)
Searches in a given file with node extensionKEX for duplicates. |
String |
copyOverviewPic(String destPath,
String sourcePath,
List<IPath> finishedResources)
Copies the preview picture of an example. |
void |
copyResources(File destFile,
List<ExportResource> resources,
List<IPath> finishedResources)
creates example files to given location. |
void |
deleteExampleResources(List<IPath> resources)
Deletes resources. |
Node |
filterExtensionKEX(Node pluginNode)
|
Node |
getPluginNode()
|
String |
makeRelativePath(String projectPath,
String absolutePath)
Makes a absolute path, relative to export project of workspace. |
void |
setPluginXML(File pluginXML)
setter for the pluginXML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginExampleCreator()
Method Detail |
---|
public void addExtension(Node extensionKEX, File location, Example parseElement, List<Category> creatableCategories, String absOverviewPic)
extensionKEX
- , plugin.xml KEX-extension root.location
- , File
parseElement
- , Example
creatableCategories
- , List
of String
sabsOverviewPic
- , String
public void checkDuplicate(Node extensionKEX, String exampleId, List<Category> creatableCategories)
extensionKEX
- , the KEX-extension node of a plugin.xml file.exampleId
- , the id of the exporting example.creatableCategories
- , a list of categories to createpublic Node getPluginNode()
public Node filterExtensionKEX(Node pluginNode)
public void copyResources(File destFile, List<ExportResource> resources, List<IPath> finishedResources)
finishedResources
- , List
of IPath
resources
- , List
of ExportResource
destFile
- , File
public void deleteExampleResources(List<IPath> resources)
resources
- , List
of IPath
.public String copyOverviewPic(String destPath, String sourcePath, List<IPath> finishedResources)
destPath
- String
sourcePath
- , String
finishedResources
- , List
of IPath
String
public String makeRelativePath(String projectPath, String absolutePath)
projectPath
- String
absolutePath
- String
String
public void setPluginXML(File pluginXML)
pluginXML
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |