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:
EventListener, IPageListener, IPartListener, ISelectionListener, IWindowListener, org.osgi.framework.BundleActivator

public class SyncchartsDiagramCustomPlugin
extends AbstractUIPlugin
implements ISelectionListener, IPageListener, IWindowListener, IPartListener

Rating red

Field Summary
static SyncchartsDiagramCustomPlugin instance
          The current instance of the plugin.
 
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.
 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 register()
          Register the listener.
 void selectionChanged(IWorkbenchPart part, ISelection sel)
          
 void start(org.osgi.framework.BundleContext context)
           
 void windowActivated(IWorkbenchWindow window)
          
 void windowClosed(IWorkbenchWindow window)
          
 void windowDeactivated(IWorkbenchWindow window)
          
 void windowOpened(IWorkbenchWindow window)
          
 
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
 

Field Detail

instance

public static SyncchartsDiagramCustomPlugin instance
The current instance of the plugin.

Constructor Detail

SyncchartsDiagramCustomPlugin

public SyncchartsDiagramCustomPlugin()
Method Detail

register

public void register()
Register the listener.


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

selectionChanged

public void selectionChanged(IWorkbenchPart part,
                             ISelection sel)

Specified by:
selectionChanged in interface ISelectionListener

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

windowActivated

public void windowActivated(IWorkbenchWindow window)

Specified by:
windowActivated in interface IWindowListener

windowClosed

public void windowClosed(IWorkbenchWindow window)

Specified by:
windowClosed in interface IWindowListener

windowDeactivated

public void windowDeactivated(IWorkbenchWindow window)

Specified by:
windowDeactivated in interface IWindowListener

windowOpened

public void windowOpened(IWorkbenchWindow window)

Specified by:
windowOpened in interface IWindowListener

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