|
SysML | |||||||||
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.topcased.modeler.sysml.SysMLPlugin
public class SysMLPlugin
The main plugin class to be used in the desktop.
Field Summary |
---|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
SysMLPlugin()
The constructor. |
Method Summary | |
---|---|
static void |
displayDialog(java.lang.String title,
java.lang.String message,
int level)
Display a dialog box with the specified level |
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
Returns the active workbench page or null if none. |
static org.eclipse.swt.widgets.Shell |
getActiveWorkbenchShell()
Returns the active workbench shell |
static org.eclipse.ui.IWorkbenchWindow |
getActiveWorkbenchWindow()
Returns the active workbench window |
static SysMLPlugin |
getDefault()
Returns the shared instance. |
static java.lang.String |
getId()
|
static void |
log(org.eclipse.core.runtime.IStatus status)
Log an IStatus |
static void |
log(java.lang.String message,
int level)
Log a message with given level into the Eclipse log file |
static void |
log(java.lang.Throwable e)
Log an exception into the Eclipse log file |
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 |
---|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SysMLPlugin()
Method Detail |
---|
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
BundleActivator.start(org.osgi.framework.BundleContext)
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
BundleActivator.stop(org.osgi.framework.BundleContext)
public static SysMLPlugin getDefault()
public static java.lang.String getId()
public static void log(java.lang.String message, int level)
message
- the message to loglevel
- the message prioritypublic static void log(java.lang.Throwable e)
e
- the exception to logpublic static void log(org.eclipse.core.runtime.IStatus status)
status
- the status to logpublic static void displayDialog(java.lang.String title, java.lang.String message, int level)
title
- title dialog boxmessage
- message displayedlevel
- message levelpublic static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
public static org.eclipse.ui.IWorkbenchPage getActivePage()
null
if none.
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
|
SysML | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.