org.eclipse.mylar.internal.resources.ui
Class EditorInteractionMonitor

java.lang.Object
  extended by org.eclipse.mylar.monitor.workbench.AbstractPartTracker
      extended by org.eclipse.mylar.monitor.workbench.AbstractEditorTracker
          extended by org.eclipse.mylar.internal.resources.ui.EditorInteractionMonitor
All Implemented Interfaces:
org.eclipse.ui.IPartListener

public class EditorInteractionMonitor
extends AbstractEditorTracker

Author:
Mik Kersten

Field Summary
static java.lang.String SOURCE_ID
           
 
Constructor Summary
EditorInteractionMonitor()
           
 
Method Summary
protected  void editorBroughtToTop(org.eclipse.ui.IEditorPart part)
           
 void editorClosed(org.eclipse.ui.IEditorPart editorPart)
           
 void editorOpened(org.eclipse.ui.IEditorPart editorPartOpened)
           
private  boolean isSameEditor(org.eclipse.ui.IEditorPart editorPart1, org.eclipse.ui.IEditorPart editorPart2)
           
private  boolean otherEditorsOpenForResource(org.eclipse.ui.IEditorPart editorPart)
           
 
Methods inherited from class org.eclipse.mylar.monitor.workbench.AbstractEditorTracker
partActivated, partBroughtToTop, partClosed, partDeactivated, partOpened
 
Methods inherited from class org.eclipse.mylar.monitor.workbench.AbstractPartTracker
dispose, install
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_ID

public static final java.lang.String SOURCE_ID
See Also:
Constant Field Values
Constructor Detail

EditorInteractionMonitor

public EditorInteractionMonitor()
Method Detail

editorBroughtToTop

protected void editorBroughtToTop(org.eclipse.ui.IEditorPart part)
Specified by:
editorBroughtToTop in class AbstractEditorTracker

editorOpened

public void editorOpened(org.eclipse.ui.IEditorPart editorPartOpened)
Specified by:
editorOpened in class AbstractEditorTracker

isSameEditor

private boolean isSameEditor(org.eclipse.ui.IEditorPart editorPart1,
                             org.eclipse.ui.IEditorPart editorPart2)

editorClosed

public void editorClosed(org.eclipse.ui.IEditorPart editorPart)
Specified by:
editorClosed in class AbstractEditorTracker

otherEditorsOpenForResource

private boolean otherEditorsOpenForResource(org.eclipse.ui.IEditorPart editorPart)