Ecore

org.topcased.modeler.ecore
Class EcorePlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.topcased.modeler.ecore.EcorePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class EcorePlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

The main plugin class to be used in the desktop.

** Generated **

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
EcorePlugin()
          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.swt.widgets.Shell getActiveWorkbenchShell()
          Returns the active workbench shell
static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
          Returns the active workbench window
static EcorePlugin 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

EcorePlugin

public EcorePlugin()
The constructor.

** Generated **
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)
** Generated **

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)
** Generated **

getDefault

public static EcorePlugin getDefault()
Returns the shared instance.

Returns:
the singleton
** Generated **

getId

public static java.lang.String getId()

Returns:
the Plugin Id
** Generated **

log

public static void log(java.lang.String message,
                       int level)
Log a message with given level into the Eclipse log file

Parameters:
message - the message to log
level - the message priority
** Generated **

log

public static void log(java.lang.Throwable e)
Log an exception into the Eclipse log file

Parameters:
e - the exception to log
** Generated **

log

public static void log(org.eclipse.core.runtime.IStatus status)
Log an IStatus

Parameters:
status - the status to log
** Generated **

getActiveWorkbenchShell

public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
Returns the active workbench shell

Returns:
the active workbench shell

getActiveWorkbenchWindow

public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
Returns the active workbench window

Returns:
the active workbench window

displayDialog

public static void displayDialog(java.lang.String title,
                                 java.lang.String message,
                                 int level)
Display a dialog box with the specified level

Parameters:
title - title dialog box
message - message displayed
level - message level

Ecore

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.