java.lang.Object
com.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
EditorHistory
public EditorHistory(org.eclipse.jface.preference.IPreferenceStore prefs)
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()