org.eclipse.gmt.umlx.editor
Interface IEditorEnvironment

All Superinterfaces:
IEnvironment
All Known Implementing Classes:
EditorEnvironment

public interface IEditorEnvironment
extends IEnvironment

IEditorEnvironment provides the interface to external facilities, allowing a test environment to provide alternate implementations.


Method Summary
 org.eclipse.emf.ecore.resource.Resource createGcoreResource(IActiveEditDomain editDomain, org.eclipse.emf.common.util.URI uri)
          Create the GCore resource from uri in the editDomain.
 IActiveEditDomain getActiveEditDomain()
          Return the ActiveEditDomain for the current editor.
 org.eclipse.ui.IEditorPart getActiveEditor()
           
 java.util.List<GImport> getActiveImports()
          Return the resources used by the current editor, which is the imports of the Gcore Resource of the Actived editor.
 org.eclipse.ui.IWorkbenchPage getActivePage()
           
 org.eclipse.ui.IWorkbenchPart getActivePart()
           
 IRegimeContext getActiveRegimeContext()
           
 org.eclipse.emf.ecore.resource.ResourceSet getActiveResourceSet()
          Return the ResourceSet in use by the ActiveEditDomain.
 org.eclipse.jface.viewers.ISelectionProvider getActiveSelectionProvider()
           
 ISheetEditor getActiveSheetEditor()
           
 SheetViewer getActiveSheetViewer()
           
 org.eclipse.jface.action.IStatusLineManager getActiveStatusLineManager()
           
 boolean requestUnlock(org.eclipse.emf.ecore.resource.Resource resource)
           
 
Methods inherited from interface org.eclipse.gmt.umlx.IEnvironment
getClipboardContents, logException, setClipboardContents
 

Method Detail

createGcoreResource

org.eclipse.emf.ecore.resource.Resource createGcoreResource(IActiveEditDomain editDomain,
                                                            org.eclipse.emf.common.util.URI uri)
Create the GCore resource from uri in the editDomain.

Parameters:
editDomain -
uri -
Returns:
the resource

getActiveEditDomain

IActiveEditDomain getActiveEditDomain()
Return the ActiveEditDomain for the current editor. (The ActiveEditDomain ids shared across the multiple sheets of this editor.)

Returns:
the ActiveEditDomain

getActiveEditor

org.eclipse.ui.IEditorPart getActiveEditor()

getActiveImports

java.util.List<GImport> getActiveImports()
Return the resources used by the current editor, which is the imports of the Gcore Resource of the Actived editor.

Returns:
the imports

getActivePage

org.eclipse.ui.IWorkbenchPage getActivePage()

getActivePart

org.eclipse.ui.IWorkbenchPart getActivePart()

getActiveRegimeContext

IRegimeContext getActiveRegimeContext()

getActiveResourceSet

org.eclipse.emf.ecore.resource.ResourceSet getActiveResourceSet()
Return the ResourceSet in use by the ActiveEditDomain.

Returns:
the ResourceSet

getActiveSelectionProvider

org.eclipse.jface.viewers.ISelectionProvider getActiveSelectionProvider()

getActiveSheetEditor

ISheetEditor getActiveSheetEditor()

getActiveSheetViewer

SheetViewer getActiveSheetViewer()

getActiveStatusLineManager

org.eclipse.jface.action.IStatusLineManager getActiveStatusLineManager()

requestUnlock

boolean requestUnlock(org.eclipse.emf.ecore.resource.Resource resource)