Package com.iizigo.editor
Class PartExtensionIZ
java.lang.Object
com.iizigo.editor.PartExtensionIZ
- All Implemented Interfaces:
- IPartExtensionIZ,- org.eclipse.ui.IPartListener,- org.eclipse.ui.IWindowListener
public class PartExtensionIZ extends Object implements IPartExtensionIZ, org.eclipse.ui.IPartListener, org.eclipse.ui.IWindowListener
Extensions framework for part in IZ.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescriptionThe constructor.- PartExtensionIZ- (org.eclipse.ui.IViewPart part, IWorkbenchPartIZ izPart) The constructor.
- Method SummaryModifier and TypeMethodDescription- void- addPartListener- (org.eclipse.ui.IPartListener listener) Adds a part listener.- void- createActivationListener- (org.eclipse.swt.widgets.Composite mainComposite, IActivationListener activationListener, MultiSelectionProvider multiSelectionProvider) Creates the part and window activation listeners.- void- dispose()Disposes of all part listeners.- org.eclipse.ui.IActionBarsGets the action bars (different for View and Editor).- org.eclipse.ui.IPartListener[]Gets the part listeners.Gets the workbench part.- booleanChecks if the part is disposed of.- voidCalled when the UI has been initialized fully to verify if the part is active, and if so triggers an extra activation in Async SWT.- void- partActivated- (org.eclipse.ui.IWorkbenchPart p) - void- partBroughtToTop- (org.eclipse.ui.IWorkbenchPart p) - void- partClosed- (org.eclipse.ui.IWorkbenchPart p) - void- partDeactivated- (org.eclipse.ui.IWorkbenchPart p) - void- partOpened- (org.eclipse.ui.IWorkbenchPart p) - static void- queueUpdateActionBars- (org.eclipse.ui.IActionBars actionBars) Adds an action bar for updates later.- void- removePartListener- (org.eclipse.ui.IPartListener listener) Removes a part listener.- booleanRestores the last focus.- static void- updateActionBars- (org.eclipse.ui.IActionBars actionBars) Updates an action bar now, removing it from the queue of action bars to update.- void- windowActivated- (org.eclipse.ui.IWorkbenchWindow window) - void- windowClosed- (org.eclipse.ui.IWorkbenchWindow window) - void- windowDeactivated- (org.eclipse.ui.IWorkbenchWindow window) - void- windowOpened- (org.eclipse.ui.IWorkbenchWindow window) 
- Constructor Details- PartExtensionIZThe constructor.- Parameters:
- part- An editor part who's part is implementing IWorkenchPartIZ.
 
- PartExtensionIZThe constructor.- Parameters:
- part- A view part who's part is implementing IWorkenchPartIZ.
- izPart- The view part (same as "part") who's part is implementing IWorkenchPartIZ.
 
 
- Method Details- queueUpdateActionBarspublic static void queueUpdateActionBars- (org.eclipse.ui.IActionBars actionBars) Adds an action bar for updates later.
- updateActionBarspublic static void updateActionBars- (org.eclipse.ui.IActionBars actionBars) Updates an action bar now, removing it from the queue of action bars to update.
- getWorkbenchPartGets the workbench part.- Specified by:
- getWorkbenchPartin interface- IPartExtensionIZ
 
- getActionBarspublic org.eclipse.ui.IActionBars getActionBars()Gets the action bars (different for View and Editor).- Specified by:
- getActionBarsin interface- IPartExtensionIZ
 
- isDisposedpublic boolean isDisposed()Checks if the part is disposed of.- Specified by:
- isDisposedin interface- IPartExtensionIZ
 
- disposepublic void dispose()Disposes of all part listeners.
- addPartListenerpublic void addPartListener- (org.eclipse.ui.IPartListener listener) Adds a part listener. Part that added as listeners in this method are called with the dispose method if they are instances of:- RetargetAction
 - Specified by:
- addPartListenerin interface- IPartExtensionIZ
 
- getPartListenerspublic org.eclipse.ui.IPartListener[] getPartListeners()Gets the part listeners. The return value is cached and very efficient in terms of memory allocation.- Specified by:
- getPartListenersin interface- IPartExtensionIZ
 
- removePartListenerpublic void removePartListener- (org.eclipse.ui.IPartListener listener) Removes a part listener.- Specified by:
- removePartListenerin interface- IPartExtensionIZ
 
- onInitializedUIpublic void onInitializedUI()Called when the UI has been initialized fully to verify if the part is active, and if so triggers an extra activation in Async SWT.
- createActivationListenerpublic void createActivationListener- (org.eclipse.swt.widgets.Composite mainComposite, IActivationListener activationListener, MultiSelectionProvider multiSelectionProvider) Creates the part and window activation listeners. This method can be called twice, one without the mainComposte (i.e. null) and a second time when the composite is defined.- Parameters:
- mainComposite- The parts main composite.
- activationListener- The part listener.
- multiSelectionProvider- The multi-selection listener, can be null.
 
- partActivatedpublic void partActivated- (org.eclipse.ui.IWorkbenchPart p) - Specified by:
- partActivatedin interface- org.eclipse.ui.IPartListener
 
- partBroughtToToppublic void partBroughtToTop- (org.eclipse.ui.IWorkbenchPart p) - Specified by:
- partBroughtToTopin interface- org.eclipse.ui.IPartListener
 
- partClosedpublic void partClosed- (org.eclipse.ui.IWorkbenchPart p) - Specified by:
- partClosedin interface- org.eclipse.ui.IPartListener
 
- partDeactivatedpublic void partDeactivated- (org.eclipse.ui.IWorkbenchPart p) - Specified by:
- partDeactivatedin interface- org.eclipse.ui.IPartListener
 
- partOpenedpublic void partOpened- (org.eclipse.ui.IWorkbenchPart p) - Specified by:
- partOpenedin interface- org.eclipse.ui.IPartListener
 
- windowActivatedpublic void windowActivated- (org.eclipse.ui.IWorkbenchWindow window) - Specified by:
- windowActivatedin interface- org.eclipse.ui.IWindowListener
 
- windowDeactivatedpublic void windowDeactivated- (org.eclipse.ui.IWorkbenchWindow window) - Specified by:
- windowDeactivatedin interface- org.eclipse.ui.IWindowListener
 
- windowClosedpublic void windowClosed- (org.eclipse.ui.IWorkbenchWindow window) - Specified by:
- windowClosedin interface- org.eclipse.ui.IWindowListener
 
- windowOpenedpublic void windowOpened- (org.eclipse.ui.IWorkbenchWindow window) - Specified by:
- windowOpenedin interface- org.eclipse.ui.IWindowListener
 
- restoreLastFocuspublic boolean restoreLastFocus()Restores the last focus.- Returns:
- false if it failed, control is "no longer" or none is ever focused, true for success.