|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topcased.modeler.tools.Importer
public class Importer
This class imports existing model objects in the given editpart
Constructor Summary | |
---|---|
Importer(Modeler mod,
EObject obj)
Constructor |
|
Importer(Modeler mod,
java.util.List objs)
Constructor |
Method Summary | |
---|---|
protected org.eclipse.gef.requests.CreateRequest |
createTargetRequest()
Create the Request |
protected org.eclipse.gef.commands.Command |
getCommand()
Returns the current command from the target EditPart. |
protected org.eclipse.gef.commands.CommandStack |
getCommandStack()
The command stack used to execute the final commands |
org.eclipse.gef.requests.CreateRequest |
getCreateRequest()
A helper method that casts the target Request to a CreateRequest. |
protected org.eclipse.gef.commands.CommandStack |
getTemporaryCommandStack()
Get the temporary CommandStack |
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
Import the model objects graphically in the diagram |
void |
setCommandStack(org.eclipse.gef.commands.CommandStack cmdStack)
Define the command stack to use to execute the commands. |
void |
setLocation(org.eclipse.draw2d.geometry.Point location)
|
void |
setTargetEditPart(org.eclipse.gef.GraphicalEditPart ep)
Change the current target edit part |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Importer(Modeler mod, EObject obj)
public Importer(Modeler mod, java.util.List objs)
Method Detail |
---|
protected org.eclipse.gef.commands.CommandStack getTemporaryCommandStack()
protected org.eclipse.gef.commands.CommandStack getCommandStack()
public void setCommandStack(org.eclipse.gef.commands.CommandStack cmdStack)
cmdStack
- The commandStack to set.public void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws BoundsFormatException, java.lang.IllegalArgumentException, java.lang.InterruptedException
run
in interface org.eclipse.jface.operation.IRunnableWithProgress
BoundsFormatException
java.lang.IllegalArgumentException
java.lang.InterruptedException
IRunnableWithProgress.run(org.eclipse.core.runtime.IProgressMonitor)
protected org.eclipse.gef.commands.Command getCommand()
public org.eclipse.gef.requests.CreateRequest getCreateRequest()
protected org.eclipse.gef.requests.CreateRequest createTargetRequest()
public void setLocation(org.eclipse.draw2d.geometry.Point location)
public void setTargetEditPart(org.eclipse.gef.GraphicalEditPart ep)
ep
- the target edit part
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.