org.eclipse.gmt.umlx.editor.regimes
Class RegimeUtils

java.lang.Object
  extended by org.eclipse.gmt.umlx.editor.regimes.RegimeUtils
All Implemented Interfaces:
IRegimeLoader
Direct Known Subclasses:
MmRegimeUtils

public class RegimeUtils
extends java.lang.Object
implements IRegimeLoader


Constructor Summary
RegimeUtils()
           
 
Method Summary
static GSheet getGSheet(java.lang.Object object)
          Return a GSheet at or containing object.
static GSheetNode getGSheetNode(java.lang.Object object)
          Return a GSheetNode at or containing object.
 void loadRegimes()
          This replaces the org.eclipse.gmt.umlx.editor.diagramContent extension point and avoids the need for Eclipse to run for testing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegimeUtils

public RegimeUtils()
Method Detail

getGSheet

public static GSheet getGSheet(java.lang.Object object)
Return a GSheet at or containing object.

Parameters:
object -
Returns:
the sheet (or null)

getGSheetNode

public static GSheetNode getGSheetNode(java.lang.Object object)
Return a GSheetNode at or containing object.

Parameters:
object -
Returns:
the sheet node (or null)

loadRegimes

public void loadRegimes()
                 throws org.eclipse.core.runtime.CoreException
This replaces the org.eclipse.gmt.umlx.editor.diagramContent extension point and avoids the need for Eclipse to run for testing. Only the RegimeLoader is worth making extensible and this can be defined in the org.eclipse.gmt.umlx.editor.editorSheet extension.

Specified by:
loadRegimes in interface IRegimeLoader
Throws:
org.eclipse.core.runtime.CoreException