de.cau.cs.kieler.ksbase.ui.handler
Class ExecuteTransformationRequest

java.lang.Object
  extended by org.eclipse.gef.Request
      extended by de.cau.cs.kieler.ksbase.ui.handler.ExecuteTransformationRequest

public class ExecuteTransformationRequest
extends Request

Request for the execution of a model transformation.

Rating proposed yellow
(2009-12-15)

Field Summary
static String REQ_EXEC_TRANS
          The request used to initiate a transformation.
 
Constructor Summary
ExecuteTransformationRequest(IEditorPart ePart, String cmd, String file, List<Object> sel, List<String> themodelPackages, ITransformationFramework fframework)
          Creates a transformation request.
 
Method Summary
 String getCommand()
          Gets the transformation command.
 IEditorPart getEditPart()
          Gets the edit part.
 String getFileName()
          Gets the filename.
 ITransformationFramework getFramework()
          Gets the assigned transformation framework.
 List<String> getModelPackages()
          Gets the model package.
 List<Object> getSelection()
          The current selection.
 void setCommand(String cmd)
          Sets the transformation command.
 void setEditPart(IEditorPart epart)
          Sets the edit part.
 void setFileName(String file)
          Sets the filename.
 void setFramework(ITransformationFramework fframework)
          Sets the transformation framework.
 void setSelection(List<Object> sel)
          Sets the current selection.
 
Methods inherited from class org.eclipse.gef.Request
getExtendedData, getType, setExtendedData, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQ_EXEC_TRANS

public static final String REQ_EXEC_TRANS
The request used to initiate a transformation.

See Also:
Constant Field Values
Constructor Detail

ExecuteTransformationRequest

public ExecuteTransformationRequest(IEditorPart ePart,
                                    String cmd,
                                    String file,
                                    List<Object> sel,
                                    List<String> themodelPackages,
                                    ITransformationFramework fframework)
Creates a transformation request.

Parameters:
ePart - The active EditPart
cmd - The transformation command
file - Name of the transformation file
sel - The active selection
themodelPackages - The model packages for the active editor
fframework - The ITransformationFramework to use for execution
Method Detail

getModelPackages

public final List<String> getModelPackages()
Gets the model package.

Returns:
modelPackage

setEditPart

public final void setEditPart(IEditorPart epart)
Sets the edit part.

Parameters:
epart - The target edit part.

getEditPart

public final IEditorPart getEditPart()
Gets the edit part.

Returns:
the editPart

setCommand

public final void setCommand(String cmd)
Sets the transformation command.

Parameters:
cmd - The transformation command.

getCommand

public final String getCommand()
Gets the transformation command.

Returns:
An method name

setFileName

public final void setFileName(String file)
Sets the filename.

Parameters:
file - Name of the file.

getFileName

public final String getFileName()
Gets the filename.

Returns:
A file name

setSelection

public final void setSelection(List<Object> sel)
Sets the current selection.

Parameters:
sel - The active selection object

getSelection

public final List<Object> getSelection()
The current selection.

Returns:
an ISelection object

getFramework

public ITransformationFramework getFramework()
Gets the assigned transformation framework.

Returns:
An implementation of ITransformationFramework

setFramework

public void setFramework(ITransformationFramework fframework)
Sets the transformation framework.

Parameters:
fframework - An implementation of ITransformationFramework