Class DecoratableEditorPartListener
- java.lang.Object
-
- org.modelversioning.emfprofile.application.registry.ui.observer.DecoratableEditorPartListener
-
- All Implemented Interfaces:
IPartListener
public final class DecoratableEditorPartListener extends Object implements IPartListener
-
-
Constructor Summary
Constructors Constructor Description DecoratableEditorPartListener(EMFProfileApplicationDecoratorHandler decoratorHandler, Map<IWorkbenchPart,String> editorPartToModelIdMap, IWorkbenchPart lastActiveEditorPart, TreeViewer viewer, ToolbarCommandEnabledState toolbarCommandEnabeldStateService, Map<IWorkbenchPart,ViewerState> editorPartToViewerStateMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUpForAllEditorParts()
IWorkbenchPart
getCleaningUpForEditorPart()
It is needed when the decorations need to be refreshed.IWorkbenchPart
getLastActiveEditPart()
boolean
isCleaningUpForClosedEditorPart()
void
partActivated(IWorkbenchPart part)
void
partBroughtToTop(IWorkbenchPart part)
void
partClosed(IWorkbenchPart part)
void
partDeactivated(IWorkbenchPart part)
void
partOpened(IWorkbenchPart part)
-
-
-
Constructor Detail
-
DecoratableEditorPartListener
public DecoratableEditorPartListener(EMFProfileApplicationDecoratorHandler decoratorHandler, Map<IWorkbenchPart,String> editorPartToModelIdMap, IWorkbenchPart lastActiveEditorPart, TreeViewer viewer, ToolbarCommandEnabledState toolbarCommandEnabeldStateService, Map<IWorkbenchPart,ViewerState> editorPartToViewerStateMap)
-
-
Method Detail
-
partOpened
public void partOpened(IWorkbenchPart part)
- Specified by:
partOpened
in interfaceIPartListener
-
partDeactivated
public void partDeactivated(IWorkbenchPart part)
- Specified by:
partDeactivated
in interfaceIPartListener
-
partClosed
public void partClosed(IWorkbenchPart part)
- Specified by:
partClosed
in interfaceIPartListener
-
partBroughtToTop
public void partBroughtToTop(IWorkbenchPart part)
- Specified by:
partBroughtToTop
in interfaceIPartListener
-
partActivated
public void partActivated(IWorkbenchPart part)
- Specified by:
partActivated
in interfaceIPartListener
-
getLastActiveEditPart
public IWorkbenchPart getLastActiveEditPart()
-
getCleaningUpForEditorPart
public IWorkbenchPart getCleaningUpForEditorPart()
It is needed when the decorations need to be refreshed. ThecleanUp(IWorkbenchPart)
sets the reference of editor part at the beginning of clean up and unsets it at the end.- Returns:
-
cleanUpForAllEditorParts
public void cleanUpForAllEditorParts()
-
isCleaningUpForClosedEditorPart
public boolean isCleaningUpForClosedEditorPart()
-
-