org.eclipse.gmt.umlx.tx.editor.regimes
Class TxRegimeUtils

java.lang.Object
  extended by org.eclipse.gmt.umlx.tx.editor.regimes.TxRegimeUtils
All Implemented Interfaces:
IRegimeLoader

public class TxRegimeUtils
extends java.lang.Object
implements IRegimeLoader


Constructor Summary
TxRegimeUtils()
           
 
Method Summary
static GSheetNode getGSheetNode(java.lang.Object object)
          Return a GSheetNode at or containing object.
static TxContextSheet getTxContextSheet(java.lang.Object object)
          Return a TxContextSheet at or containing object.
static TxRuleSheet getTxSheet(java.lang.Object object)
          Return a TxSheet 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

TxRegimeUtils

public TxRegimeUtils()
Method Detail

getGSheetNode

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

Parameters:
object -
Returns:
the GSheetNode or null

getTxContextSheet

public static TxContextSheet getTxContextSheet(java.lang.Object object)
Return a TxContextSheet at or containing object.

Parameters:
object -
Returns:
the TxContextSheet or null

getTxSheet

public static TxRuleSheet getTxSheet(java.lang.Object object)
Return a TxSheet at or containing object.

Parameters:
object -
Returns:
the TxSheet 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