|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.scenario.isac.egui.wizards.plugin.ManipulatorManager
public class ManipulatorManager
Singleton class which manages model in memory (Java code + XML). This class loads ISAC plugin files in memory, manages manipulation and saves them if user asked.
Method Summary | |
---|---|
void |
addAction(java.lang.String action,
java.lang.String name)
This method adds an action into model. |
void |
addGroup(java.lang.String action,
java.lang.String actionName,
java.lang.String parentPath,
java.lang.String groupName)
This method adds group element into model. |
void |
addParameter(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String pluginPath,
java.lang.String paramName)
This method adds parameter element into model. |
void |
addParameterElement(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String type,
java.lang.String elementName)
This method adds parameter element into model. |
java.lang.Object |
clone()
|
void |
deleteAction(java.lang.String action,
java.lang.String name)
This method delete an action into model. |
void |
deleteElement(java.lang.String action,
java.lang.String actionName,
java.lang.String guiParentPath,
java.lang.String pluginParentPath,
java.lang.String guiElementPath,
java.lang.String pluginElementPath,
java.lang.String parameterName,
java.lang.String type)
This method delete group or parameter element into model. |
void |
deleteParameterElement(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String type,
java.lang.String elementName)
This method deletes parameter element into model. |
void |
destroy()
This method resets all references. |
java.util.ArrayList<java.lang.String> |
getActions(java.lang.String action)
Returns a ArrayList representing string actions. |
java.lang.String |
getClassName()
Returns class name. |
java.lang.String |
getDataProvider()
Returns data provider state ("yes" or "no"). |
java.lang.String |
getGuiFileName()
Returns gui file name. |
java.lang.String |
getHelp(java.lang.String action,
java.lang.String name)
Returns a String representing action help. |
static ManipulatorManager |
getInstance()
Returns a ManipulatorManager singleton instance. |
java.lang.String |
getPackageName()
Returns package name. |
java.lang.String |
getParameterElementDefault(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String type,
java.lang.String elementName)
Returns default parameter element value from model. |
java.util.ArrayList<java.lang.String> |
getParameterElements(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String type)
Returns parameter element list in gui XML file. |
java.lang.String |
getParameterFieldSize(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath)
This method returns parameter field size from model. |
java.lang.String |
getParameterFieldText(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath)
This method returns parameter field text from model. |
java.lang.String |
getParameterLabel(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath)
This method returns parameter label from model. |
java.lang.String |
getParameterType(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath)
This method returns parameter represention from gui file. |
org.jdom.Element |
getParams(java.lang.String action,
java.lang.String name)
Returns a Element representing action params element. |
java.lang.String |
getPluginFileName()
Returns plugin file name. |
java.lang.String |
getPluginName()
Returns plugin name. |
java.lang.String |
getSource()
Returns source path. |
void |
init(org.eclipse.core.resources.IProject arg0,
org.eclipse.swt.widgets.Shell s)
This method loads ISAC plugin files in memory. |
boolean |
isParameterExist(java.lang.String action,
java.lang.String name,
java.lang.String elementPath)
Returns true if element exists |
void |
moveDownAction(java.lang.String action,
java.lang.String name)
This method move down action element into model. |
void |
moveDownParameter(java.lang.String action,
java.lang.String actionName,
java.lang.String guiParentPath,
java.lang.String guiElementPath)
This method moves down parameter in XML file. |
void |
moveDownParameterElement(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String type,
java.lang.String elementName)
This method moves down parameter element in gui XML file. |
void |
moveUpAction(java.lang.String action,
java.lang.String name)
This method move up action into model. |
void |
moveUpParameter(java.lang.String action,
java.lang.String actionName,
java.lang.String guiParentPath,
java.lang.String guiElementPath)
This method moves up parameter in XML file. |
void |
moveUpParameterElement(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String type,
java.lang.String elementName)
This method moves up parameter element into model. |
void |
save()
this method saves all modifications on model into xml and Java files. |
void |
setClassName(java.lang.String name)
Sets new class name. |
void |
setDataProvider(java.lang.String provider)
Sets new data provider state ("yes" or "no"). |
void |
setGuiFileName(java.lang.String name)
Sets new gui file name. |
void |
setHelp(java.lang.String action,
java.lang.String name,
java.lang.String help)
Set action help into model |
void |
setPackageName(java.lang.String name)
Sets new package name. |
void |
setParameterElementDefault(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String type,
java.lang.String elementName,
java.lang.String value)
This method sets default parameter element value to true or false into model. |
void |
setParameterFieldSize(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath,
java.lang.String size)
This method updates parameter field size into model. |
void |
setParameterFieldText(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath,
java.lang.String text)
This method updates parameter field text into model. |
void |
setParameterLabel(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath,
java.lang.String label)
This method updates parameter label into model. |
void |
setParameterType(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath,
java.lang.String type)
This method updates parameter represention in gui file. |
void |
setPluginFileName(java.lang.String name)
Sets new plugin file name. |
void |
setPluginName(java.lang.String name)
Sets new plugin name. |
void |
setSource(java.lang.String path)
Sets new source path. |
void |
updateAction(java.lang.String action,
java.lang.String oldName,
java.lang.String newName)
This method updates an action into model. |
void |
updateElementName(java.lang.String action,
java.lang.String actionName,
java.lang.String guiElementPath,
java.lang.String pluginElementPath,
java.lang.String oldName,
java.lang.String newName,
java.lang.String type)
This method updates group or parameter element name into model. |
void |
updateParameterElement(java.lang.String action,
java.lang.String actionName,
java.lang.String guiPath,
java.lang.String type,
java.lang.String oldElementName,
java.lang.String newElementName)
This method updates parameter element into model. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ManipulatorManager getInstance()
public void init(org.eclipse.core.resources.IProject arg0, org.eclipse.swt.widgets.Shell s) throws java.lang.Exception
arg0
- IProject representing the ISAC plugin project.s
- Shell representing the current shell
java.lang.Exception
public void addAction(java.lang.String action, java.lang.String name) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)name
- String representing action name
java.lang.Exception
- if there is an errorpublic void deleteAction(java.lang.String action, java.lang.String name) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)name
- String representing action name
java.lang.Exception
- if there is an errorpublic void updateAction(java.lang.String action, java.lang.String oldName, java.lang.String newName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)oldName
- String representing old action namenewName
- String representing new action name
java.lang.Exception
- if there is an errorpublic void moveUpAction(java.lang.String action, java.lang.String name) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)name
- String representing action name
java.lang.Exception
- if there is an errorpublic void moveDownAction(java.lang.String action, java.lang.String name) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)name
- String representing action name
java.lang.Exception
- if there is an errorpublic java.util.ArrayList<java.lang.String> getActions(java.lang.String action) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)
java.lang.Exception
- if there is an errorpublic void addGroup(java.lang.String action, java.lang.String actionName, java.lang.String parentPath, java.lang.String groupName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameparentPath
- String representing XPath parent expressiongroupName
- String representing group name
java.lang.Exception
- if there is an errorpublic void addParameter(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String pluginPath, java.lang.String paramName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filepluginPath
- String representing XPath parent expression in plugin fileparamName
- String representing parameter name
java.lang.Exception
- if there is an errorpublic void deleteElement(java.lang.String action, java.lang.String actionName, java.lang.String guiParentPath, java.lang.String pluginParentPath, java.lang.String guiElementPath, java.lang.String pluginElementPath, java.lang.String parameterName, java.lang.String type) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiParentPath
- String representing XPath parent expression in gui filepluginParentPath
- String representing XPath parent expression in plugin fileguiElementPath
- String representing XPath element expression in gui filepluginElementPath
- String representing XPath element expression in plugin fileparameterName
- String representing parameter nametype
- String representing element type (group or param)
java.lang.Exception
- if there is an errorpublic void updateElementName(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath, java.lang.String pluginElementPath, java.lang.String oldName, java.lang.String newName, java.lang.String type) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui filepluginElementPath
- String representing XPath element expression in plugin fileoldName
- String representing the old element namenewName
- String representing the new element nametype
- String representing element type (group or param)
java.lang.Exception
- if there is an errorpublic void moveUpParameter(java.lang.String action, java.lang.String actionName, java.lang.String guiParentPath, java.lang.String guiElementPath) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiParentPath
- String representing XPath parent element expression in gui fileguiElementPath
- String representing XPath element expression in gui file
java.lang.Exception
- if there is an errorpublic void moveDownParameter(java.lang.String action, java.lang.String actionName, java.lang.String guiParentPath, java.lang.String guiElementPath) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiParentPath
- String representing XPath parent element expression in gui fileguiElementPath
- String representing XPath element expression in gui file
java.lang.Exception
- if there is an errorpublic void setParameterLabel(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath, java.lang.String label) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui filelabel
- String representing the new parameter label
java.lang.Exception
- if there is an errorpublic java.lang.String getParameterLabel(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui file
java.lang.Exception
- if there is an errorpublic void setParameterType(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath, java.lang.String type) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui filetype
- String representing the new parameter representation
java.lang.Exception
- if there is an errorpublic java.lang.String getParameterType(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui file
java.lang.Exception
- if there is an errorpublic void setParameterFieldText(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath, java.lang.String text) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui filetext
- String representing the new parameter field text
java.lang.Exception
- if there is an errorpublic java.lang.String getParameterFieldText(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui file
java.lang.Exception
- if there is an errorpublic void setParameterFieldSize(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath, java.lang.String size) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui file
java.lang.Exception
- if there is an errorpublic java.lang.String getParameterFieldSize(java.lang.String action, java.lang.String actionName, java.lang.String guiElementPath) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiElementPath
- String representing XPath element expression in gui file
java.lang.Exception
- if there is an errorpublic void addParameterElement(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String type, java.lang.String elementName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filetype
- String representing representation of elementelementName
- String representing parameter element name
java.lang.Exception
- if there is an errorpublic void deleteParameterElement(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String type, java.lang.String elementName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filetype
- String representing representation of elementelementName
- String representing parameter element name
java.lang.Exception
- if there is an errorpublic void updateParameterElement(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String type, java.lang.String oldElementName, java.lang.String newElementName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filetype
- String representing representation of elementoldElementName
- String representing old parameter element namenewElementName
- String representing new parameter element name
java.lang.Exception
- if there is an errorpublic void moveUpParameterElement(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String type, java.lang.String elementName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filetype
- String representing representation of elementelementName
- String representing parameter element name
java.lang.Exception
- if there is an errorpublic void moveDownParameterElement(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String type, java.lang.String elementName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filetype
- String representing representation of elementelementName
- String representing parameter element name
java.lang.Exception
- if there is an errorpublic java.util.ArrayList<java.lang.String> getParameterElements(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String type) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filetype
- String representing representation of element
java.lang.Exception
- if there is an errorpublic void setParameterElementDefault(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String type, java.lang.String elementName, java.lang.String value) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filetype
- String representing representation of elementelementName
- String representing parameter element namevalue
- String representing the value to set
java.lang.Exception
- if there is an errorpublic java.lang.String getParameterElementDefault(java.lang.String action, java.lang.String actionName, java.lang.String guiPath, java.lang.String type, java.lang.String elementName) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)actionName
- String representing action nameguiPath
- String representing XPath parent expression in gui filetype
- String representing representation of elementelementName
- String representing parameter element name
java.lang.Exception
- if there is an errorpublic org.jdom.Element getParams(java.lang.String action, java.lang.String name) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)name
- String representing action name
java.lang.Exception
- if there is an errorpublic java.lang.String getHelp(java.lang.String action, java.lang.String name) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test,
control)name
- String representing action name
java.lang.Exception
- if there is an errorpublic void setHelp(java.lang.String action, java.lang.String name, java.lang.String help) throws java.lang.Exception
action
- String representing the action to add (sample, timer, test, control)name
- String representing action namehelp
- String representing action help
java.lang.Exception
- if there is an errorpublic boolean isParameterExist(java.lang.String action, java.lang.String name, java.lang.String elementPath) throws java.lang.Exception
action
- String representing the action (sample, timer, test, control)name
- String representing action nameelementPath
- String representing XPath expression of element
java.lang.Exception
- if there is an error.public void setPluginName(java.lang.String name)
name
- String representing plugin name.public java.lang.String getPluginName()
public void setSource(java.lang.String path)
path
- String representing source path.public java.lang.String getSource()
public void setPackageName(java.lang.String name)
name
- String representing package name.public java.lang.String getPackageName()
public void setClassName(java.lang.String name)
name
- String representing class name.public java.lang.String getClassName()
public void setGuiFileName(java.lang.String name)
name
- String representing gui file name.public java.lang.String getGuiFileName()
public void setPluginFileName(java.lang.String name)
name
- String representing plugin file name.public java.lang.String getPluginFileName()
public void setDataProvider(java.lang.String provider)
provider
- String representing data provider state.public java.lang.String getDataProvider()
public void save() throws java.lang.Exception
java.lang.Exception
- if there is an error.public void destroy()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |