de.cau.cs.kieler.synccharts.diagram.custom.commands
Class Utils

java.lang.Object
  extended by de.cau.cs.kieler.synccharts.diagram.custom.commands.Utils

public final class Utils
extends Object

Utility class for synccharts ksbase.

Rating proposed yellow
(2010-03-12)

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 cutObject(Object object)
          Copy an object to clipboard and remove it from the model.
static void debug(Object object)
          Debug output for xtend code.
static void dump(String aString)
           
static Region getRegionFromClipboard()
          Get a region from the clipboard.
static List<Region> getRegionsFromClipboard()
          Get a list of regions from the clipboard.
static State getStateFromClipboard()
          Get a state from the clipboard.
static List<State> getStatesFromClipboard()
          Get a list of states from the clipboard.
static Transition getTransitionFromClipboard()
          Get a transition from the clipboard.
static List<Transition> getTransitionsFromClipboard()
          Get a transition from the clipboard.
static void 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

cutObject

public static void cutObject(Object object)
Copy an object to clipboard and remove it from the model.

Parameters:
object - the object to cut

objectToClipboard

public static void objectToClipboard(Object object)
Copy an object to clipboard.

Parameters:
object - the object

getStateFromClipboard

public static State getStateFromClipboard()
Get a state from the clipboard.

Returns:
the state

getStatesFromClipboard

public static List<State> getStatesFromClipboard()
Get a list of states from the clipboard.

Returns:
the states

getRegionFromClipboard

public static Region getRegionFromClipboard()
Get a region from the clipboard.

Returns:
the region

getRegionsFromClipboard

public static List<Region> getRegionsFromClipboard()
Get a list of regions from the clipboard.

Returns:
the regions

getTransitionFromClipboard

public static Transition getTransitionFromClipboard()
Get a transition from the clipboard.

Returns:
the transition

getTransitionsFromClipboard

public static List<Transition> getTransitionsFromClipboard()
Get a transition from the clipboard.

Returns:
the transition

copy

public static final EObject copy(Object object)
Copy the object.

Parameters:
object - the object
Returns:
the copy

debug

public static final void debug(Object object)
Debug output for xtend code.

Parameters:
object - the message

dump

public static final void dump(String aString)

analyze

public static final EObject analyze(Object object)
Pseudo-method, allows setting breakpoints for analysing objects.

Parameters:
object - the object
Returns:
the object passed as param, casted to EObject