|
||||||||||
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(File location,
Example parseElement,
List<String> creatableCategories,
String absOverviewPic)
NOTE: parseElement could only be a type of Example or a example category in String representation. |
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. |
String |
makeRelativePath(String projectPath,
String absolutePath)
Makes a absolute path, relative to export project of workspace. |
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(File location, Example parseElement, List<String> creatableCategories, String absOverviewPic) throws KielerException
location
- , File
parseElement
- , Example
creatableCategories
- , List
of String
sabsOverviewPic
- , String
KielerException
- , if duplicatechecks fails or can be thrown by getPluginNode(...).public void copyResources(File destFile, List<ExportResource> resources, List<IPath> finishedResources) throws KielerException
finishedResources
- , List
of IPath
resources
- , List
of ExportResource
destFile
- , File
KielerException
- , if copyResource(...) throws it.public void deleteExampleResources(List<IPath> resources)
resources
- , List
of IPath
.public String copyOverviewPic(String destPath, String sourcePath, List<IPath> finishedResources) throws KielerException
destPath
- String
sourcePath
- , String
finishedResources
- , List
of IPath
String
KielerException
- , if an IOHandler.writeResource throws an exception.public String makeRelativePath(String projectPath, String absolutePath)
projectPath
- String
absolutePath
- String
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |