de.cau.cs.kieler.synccharts.diagram.custom
Class SyncchartsDiagramCustomPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by de.cau.cs.kieler.synccharts.diagram.custom.SyncchartsDiagramCustomPlugin
All Implemented Interfaces:
IPageListener, IPartListener, org.osgi.framework.BundleActivator

public class SyncchartsDiagramCustomPlugin
extends AbstractUIPlugin
implements IPageListener, IPartListener

The main plugin class.

Rating proposed yellow
(2010-06-14)

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
SyncchartsDiagramCustomPlugin()
           
 
Method Summary
 IEditorPart getActiveEditorPart()
          Getter for the active editor part.
 Display getDisplay()
          Getter for the display of the active workbench.
static SyncchartsDiagramCustomPlugin getInstance()
          Getter for the instance.
 List<SyncchartsDiagramEditor> getOpenSyncchartsEditors()
          Getter for the list of opened synccharts editors.
 void pageActivated(IWorkbenchPage page)
          
 void pageClosed(IWorkbenchPage page)
          
 void pageOpened(IWorkbenchPage page)
          
 void partActivated(IWorkbenchPart part)
          
 void partBroughtToTop(IWorkbenchPart part)
          
 void partClosed(IWorkbenchPart part)
          
 void partDeactivated(IWorkbenchPart part)
          
 void partOpened(IWorkbenchPart part)
          
 void start(org.osgi.framework.BundleContext context)
           
 
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, stop
 
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

SyncchartsDiagramCustomPlugin

public SyncchartsDiagramCustomPlugin()
Method Detail

getInstance

public static SyncchartsDiagramCustomPlugin getInstance()
Getter for the instance.

Returns:
the instance.

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class AbstractUIPlugin
Throws:
Exception

pageActivated

public void pageActivated(IWorkbenchPage page)

Specified by:
pageActivated in interface IPageListener

pageClosed

public void pageClosed(IWorkbenchPage page)

Specified by:
pageClosed in interface IPageListener

pageOpened

public void pageOpened(IWorkbenchPage page)

Specified by:
pageOpened in interface IPageListener

getActiveEditorPart

public IEditorPart getActiveEditorPart()
Getter for the active editor part.

Returns:
the editor part or null

getOpenSyncchartsEditors

public List<SyncchartsDiagramEditor> getOpenSyncchartsEditors()
Getter for the list of opened synccharts editors.

Returns:
the list of open synccharts editors.

getDisplay

public Display getDisplay()
Getter for the display of the active workbench.

Returns:
the display

partActivated

public void partActivated(IWorkbenchPart part)

Specified by:
partActivated in interface IPartListener

partBroughtToTop

public void partBroughtToTop(IWorkbenchPart part)

Specified by:
partBroughtToTop in interface IPartListener

partClosed

public void partClosed(IWorkbenchPart part)

Specified by:
partClosed in interface IPartListener

partDeactivated

public void partDeactivated(IWorkbenchPart part)

Specified by:
partDeactivated in interface IPartListener

partOpened

public void partOpened(IWorkbenchPart part)

Specified by:
partOpened in interface IPartListener