|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.gmt.umlx.editor.EditorPlugin
public class EditorPlugin
The main plugin class to be used in the desktop.
Field Summary | |
---|---|
static java.lang.String |
EDITOR_SHEET_ID
|
static IEditorEnvironment |
environment
|
static java.lang.String |
PLUGIN_ID
|
static java.lang.String |
PROBLEM_MARKER_ID
|
static org.eclipse.core.runtime.QualifiedName |
SHARED_DOMAIN_PERSISTENT_PROPERTY
The unique SharedEditDomain identity that enables the start upo of a Gcore editor to rejoin a shared session that may have exisyted in an earlier Eclipse invocation. |
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
EditorPlugin()
The constructor. |
Method Summary | |
---|---|
static org.eclipse.emf.ecore.resource.Resource |
createGcoreResource(IActiveEditDomain editDomain,
org.eclipse.emf.common.util.URI uri)
|
static IActiveEditDomain |
getActiveEditDomain()
|
static org.eclipse.ui.IEditorPart |
getActiveEditor()
|
static java.util.List<GImport> |
getActiveImports()
|
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
|
static org.eclipse.ui.IWorkbenchPart |
getActivePart()
|
static IRegimeContext |
getActiveRegimeContext()
|
static org.eclipse.emf.ecore.resource.ResourceSet |
getActiveResourceSet()
|
static org.eclipse.jface.viewers.ISelectionProvider |
getActiveSelectionProvider()
|
static ISheetEditor |
getActiveSheetEditor()
|
static SheetViewer |
getActiveSheetViewer()
|
static org.eclipse.jface.action.IStatusLineManager |
getActiveStatusLineManager()
|
static EditorPlugin |
getDefault()
Returns the shared instance. |
static IEditorEnvironment |
getEnvironment()
Returns the shared environment. |
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path. |
static void |
logException(java.lang.Throwable e,
boolean showErrorDialog)
|
static boolean |
requestUnlock(org.eclipse.emf.ecore.resource.Resource resource)
|
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startup |
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
public static final java.lang.String PROBLEM_MARKER_ID
public static final java.lang.String EDITOR_SHEET_ID
public static final org.eclipse.core.runtime.QualifiedName SHARED_DOMAIN_PERSISTENT_PROPERTY
public static IEditorEnvironment environment
Constructor Detail |
---|
public EditorPlugin()
Method Detail |
---|
public static IActiveEditDomain getActiveEditDomain()
public static org.eclipse.ui.IEditorPart getActiveEditor()
public static java.util.List<GImport> getActiveImports()
public static org.eclipse.ui.IWorkbenchPage getActivePage()
public static org.eclipse.ui.IWorkbenchPart getActivePart()
public static IRegimeContext getActiveRegimeContext()
public static org.eclipse.emf.ecore.resource.ResourceSet getActiveResourceSet()
public static org.eclipse.jface.viewers.ISelectionProvider getActiveSelectionProvider()
public static ISheetEditor getActiveSheetEditor()
public static SheetViewer getActiveSheetViewer()
public static org.eclipse.jface.action.IStatusLineManager getActiveStatusLineManager()
public static EditorPlugin getDefault()
public static IEditorEnvironment getEnvironment()
public static org.eclipse.emf.ecore.resource.Resource createGcoreResource(IActiveEditDomain editDomain, org.eclipse.emf.common.util.URI uri)
public static void logException(java.lang.Throwable e, boolean showErrorDialog)
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
path
- the path
public static boolean requestUnlock(org.eclipse.emf.ecore.resource.Resource resource)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |