Community
Participate
Working Groups
It would be nice to have dropdown menus containing the navigation history attached to the forward/back toolbar buttons (similar to IE or Mozilla).
Should limit drop-down length to 10. Can use editor input's name as the text to show (editor input is available from NavigationLocation.input). This relies on the implementation details of NavigationLocation though, rather than just what's declared in INavigationLocation (the input is just an Object). It would be better if INavigationLocation had get/setText() to allow this text to be specified independently of the input, so that more detail could be shown. E.g. JDT could say "MyClass.someMethod()" or "MyClass.java - someMethod ()" instead of just "MyClass.java". NavigationLocation would set this to be the editor input's name by default, but subclasses or other callers could override (make get/setText public). Should also use this text in the tooltip for the buttons: "Back to MyClass.java". This would have to be updated on each navigation.
Navigation history entries may not have all fields initialized. The entry is only fully restored when an attempt to go to that location occurs, so will have to change the mememento saving/restoring to include name of entry for display purposes.
Opened [Bug 26813] for necessary TextSelectionNavigationLocation changes.
Only the getText() API will be added to INavigationLocation. There is no need for setText(). Implementors of INavigationLocation can override getText().
As part of the fix for this feature, any "old" navigation history needs to be wiped out. This is because locations are not restored until the location actually becomes active, so we will not have labels to display in the history list.
In build > 20021120.