|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.model.xtend.transformation.AbstractTransformation
de.cau.cs.kieler.ksbase.core.KSBasETransformation
public class KSBasETransformation
The connection between the transformations and the KSBasE plug-In. Stores additional information
about how the transformation can be executed by the user/workbench. This class is instantiated by
the EditorTransformationSettings
class to configure the transformations for one editor.
This class may be serialized.
Constructor Summary | |
---|---|
KSBasETransformation(KSBasETransformation t)
Copy constructor. |
|
KSBasETransformation(String tName,
String tTransName)
Creates a new Transformation. |
Method Summary | |
---|---|
void |
addParameters(List<String> params)
Sets the parameters for this transformation. |
KSBasETransformation |
clone()
Clone operation. |
boolean |
equals(Object obj)
Two transformations are equal, when they have the same transformation name and the same number of parameters. |
String |
getCommandId()
|
String |
getIcon()
Returns the icon with relative path. |
String |
getKeyboardShortcut()
Returns the keyboard shortcut. |
String |
getName()
Gets the name of the transformation. |
int |
getNumSelections()
Returns the number of selections this transformation is defined for. |
List<List<String>> |
getParameterList()
Gets the list of parameters. |
String |
getToolTip()
Returns the toolTip message. |
String |
getTransformation()
Returns the transformation name. |
Object |
getTransformationClass()
|
String |
getTransformationId()
Returns the Id for this transformation. |
String |
getValidation()
Gets the transformation that is used to validate a selection. |
int |
hashCode()
Simple hashCode calculations, uses the hash code of the transformation name and adds the number of selections. |
Boolean |
isVisible()
Checks if the transformation should be displayed in the menu. |
void |
serialize(ObjectOutputStream writer)
Serializes this object to the given ObjectOutputStream. |
void |
setCommandId(String id)
|
void |
setIcon(String iconUri)
Sets the iconURI used by the menu contributions. |
void |
setKeyboardShortcut(String shortcut)
Sets the keyboard shortcut for this transformation. |
void |
setName(String value)
Sets the name of the transformation used in the menus. |
void |
setParameters(List<List<String>> params)
Sets parameters list. |
void |
setToolTip(String message)
Sets the toolTip message. |
void |
setTransformation(String value)
Sets the name of the transformation to be executed. |
void |
setTransformationClass(Object transformationClass)
|
void |
setTransformationId(String id)
Sets the Id for this transformation. |
void |
setValidation(String transformationName)
Sets the transformation that is used for validation. |
void |
setVisible(Boolean isVisible)
Sets the transformation visibility. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KSBasETransformation(String tName, String tTransName)
tName
- The name of this transformation which is displayed in the menu.tTransName
- The name of the transformation to execute.public KSBasETransformation(KSBasETransformation t)
t
- Transformation which should be copiedMethod Detail |
---|
public final KSBasETransformation clone()
clone
in class Object
public final void setName(String value)
value
- The name for this transformationpublic void setTransformation(String value)
setTransformation
in class AbstractTransformation
value
- The name of the transformation to executepublic final void setIcon(String iconUri)
iconUri
- The URI to the icon to use for this transformation.public final String getName()
public final String getTransformation()
getTransformation
in class AbstractTransformation
public final int getNumSelections()
public final String getIcon()
public String getToolTip()
public void setToolTip(String message)
message
- the messagepublic final List<List<String>> getParameterList()
getParameterList
in class AbstractTransformation
public void setParameters(List<List<String>> params)
setParameters
in class AbstractTransformation
params
- the list of list of parameterspublic final void addParameters(List<String> params)
addParameters
in class AbstractTransformation
params
- a List of parameterspublic final String getTransformationId()
public final void setTransformationId(String id)
id
- The new Id for this transformationpublic final String getKeyboardShortcut()
public final void setKeyboardShortcut(String shortcut)
shortcut
- The new shortcut assigned to this transformationpublic String getValidation()
public Object getTransformationClass()
public void setTransformationClass(Object transformationClass)
public String getCommandId()
public void setCommandId(String id)
public void setValidation(String transformationName)
transformationName
- A transformation namepublic Boolean isVisible()
public void setVisible(Boolean isVisible)
isVisible
- New visibility statuspublic void serialize(ObjectOutputStream writer)
writer
- A valid an opened ObjectOutputStreampublic final int hashCode()
hashCode
in class Object
public final boolean equals(Object obj)
equals
in class Object
obj
- The object to compare with
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |