Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.jdt.history
Class EditorHistory  view EditorHistory download EditorHistory.java

java.lang.Object
  extended bycom.port80.eclipse.jdt.history.EditorHistory
All Implemented Interfaces:
com.port80.eclipse.util.IHistoryListener

public class EditorHistory
extends java.lang.Object
implements com.port80.eclipse.util.IHistoryListener

EditorHistory maintain the history of files visited by the editor and provide a forward/backward/goto actions to navigate through the list.


Field Summary
private static boolean DEBUG
           
private  org.eclipse.jface.action.Action fActionBackward
           
private  org.eclipse.jface.action.Action fActionForward
           
private  GotoVisitedAction fActionGoto
           
private  com.port80.eclipse.util.NavigateHistory fHistory
           
private  org.eclipse.jface.action.ActionContributionItem fItemBackward
           
private  org.eclipse.jface.action.ActionContributionItem fItemForward
           
private  org.eclipse.jface.action.ActionContributionItem fItemGoto
           
private  org.eclipse.ui.IPartListener fPartListener
           
private  org.eclipse.jface.preference.IPreferenceStore fPreferences
           
private static java.lang.String ID
           
private static java.lang.String NAME
           
 
Constructor Summary
EditorHistory(org.eclipse.jface.preference.IPreferenceStore prefs)
           
 
Method Summary
protected  void createActions()
           
(package private)  void editorActivation(org.eclipse.ui.IWorkbenchPart part)
          Select the IResources for the activated editor if it exists in the WorkingSetModel.
 com.port80.eclipse.util.NavigateHistory getHistory()
           
 void gotoObject(java.lang.Object a)
           
protected  void hookHistoryActions()
          Added history navigation actions to Workbench ToolBar and hookup listeners.
protected  void hookPartListener()
          Listen to any part activation and update the method view if an editor part is activated.
 void initActions()
           
 void initPrefs()
           
 boolean restoreState(org.eclipse.ui.IMemento memento)
           
 void saveState(org.eclipse.ui.IMemento memento)
           
 void shutdown()
           
 void startup()
           
protected  void unhookHistoryActions()
          Added history navigation actions to Workbench ToolBar and hookup listeners.
protected  void unhookPartListener()
           
 void updateHistoryStatus(boolean backwardok, boolean forwardok, java.lang.Object prev, java.lang.Object next)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

ID

private static final java.lang.String ID
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

fPreferences

private org.eclipse.jface.preference.IPreferenceStore fPreferences

fHistory

private com.port80.eclipse.util.NavigateHistory fHistory

fPartListener

private org.eclipse.ui.IPartListener fPartListener

fActionForward

private org.eclipse.jface.action.Action fActionForward

fActionBackward

private org.eclipse.jface.action.Action fActionBackward

fActionGoto

private GotoVisitedAction fActionGoto

fItemForward

private org.eclipse.jface.action.ActionContributionItem fItemForward

fItemBackward

private org.eclipse.jface.action.ActionContributionItem fItemBackward

fItemGoto

private org.eclipse.jface.action.ActionContributionItem fItemGoto
Constructor Detail

EditorHistory

public EditorHistory(org.eclipse.jface.preference.IPreferenceStore prefs)
Method Detail

initPrefs

public void initPrefs()

initActions

public void initActions()

startup

public void startup()

shutdown

public void shutdown()

restoreState

public boolean restoreState(org.eclipse.ui.IMemento memento)

saveState

public void saveState(org.eclipse.ui.IMemento memento)

createActions

protected void createActions()

hookHistoryActions

protected void hookHistoryActions()
Added history navigation actions to Workbench ToolBar and hookup listeners.


unhookHistoryActions

protected void unhookHistoryActions()
Added history navigation actions to Workbench ToolBar and hookup listeners.


hookPartListener

protected void hookPartListener()
Listen to any part activation and update the method view if an editor part is activated.


unhookPartListener

protected void unhookPartListener()

editorActivation

void editorActivation(org.eclipse.ui.IWorkbenchPart part)
Select the IResources for the activated editor if it exists in the WorkingSetModel. Otherwise, do nothing. //FIXME: For now, this only works for IJavaElement.


gotoObject

public void gotoObject(java.lang.Object a)
Specified by:
gotoObject in interface com.port80.eclipse.util.IHistoryListener

updateHistoryStatus

public void updateHistoryStatus(boolean backwardok,
                                boolean forwardok,
                                java.lang.Object prev,
                                java.lang.Object next)
Specified by:
updateHistoryStatus in interface com.port80.eclipse.util.IHistoryListener

getHistory

public com.port80.eclipse.util.NavigateHistory getHistory()