|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.synccharts.diagram.custom.commands.Utils
public final class Utils
Utility class for cut, copy and paste. It holds the different clipboards where the copied objects are kept temporarily. It also provides methods to interact with the different clipboards. *
Method Summary | |
---|---|
static EObject |
analyze(Object object)
Pseudo-method, allows setting breakpoints for analysing objects. |
static EObject |
copy(Object object)
Copy the object. |
static void |
debug(Object object)
Debug output for xtend code. |
static void |
dump(String aString)
|
static Object |
ecoreCopy(Object object)
Clone an eObject with the method from EcoreUtil. |
static Object |
getObjectFromClipboard()
Get an object from the clipboard. |
static List<Region> |
getRegionsFromClipboard(Collection<Region> regionsClipBoard,
Collection<Region> copy)
Prepare a list of regions to be ready for insertion using xtend. |
static List<State> |
getStatesFromClipboard(Collection<State> statesClipBoard,
Collection<State> copy)
Prepare a list of states to be ready for insertion using xtend. |
static List<Transition> |
getTransitionsFromClipboard(Collection<Transition> transitionsClipBoard,
Collection<Transition> copy)
Prepare a list of transitions to be ready for insertion using xtend. |
static boolean |
isClipboardEmpty()
Check if there is any object inside the clipboard. |
static Object |
objectToClipboard(Object object)
Copy an object to clipboard. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object ecoreCopy(Object object)
object
- the eObject to clone
public static Object getObjectFromClipboard()
public static Object objectToClipboard(Object object)
object
- the object
public static boolean isClipboardEmpty()
public static List<State> getStatesFromClipboard(Collection<State> statesClipBoard, Collection<State> copy)
statesClipBoard
- the raw list of statescopy
- the copy of the list
public static List<Region> getRegionsFromClipboard(Collection<Region> regionsClipBoard, Collection<Region> copy)
regionsClipBoard
- the raw list of regionscopy
- the copy of the list
public static List<Transition> getTransitionsFromClipboard(Collection<Transition> transitionsClipBoard, Collection<Transition> copy)
transitionsClipBoard
- the raw list of transitionscopy
- the copy of the list
public static EObject copy(Object object)
object
- the object
public static void debug(Object object)
object
- the messagepublic static void dump(String aString)
aString
- the string to printpublic static EObject analyze(Object object)
object
- the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |