Crop history list in Eclipse internal web browser
I use the internal web browser quite a bit when I design - if nothing else, this is a convenient place to test GET requests for the RESTful Web Service. I also use Eclipse to write HTML, and again the internal browser is a useful first test: "Does it look right? Yet?". This means that I am creating a fairly long history list, and the last entries - the ones that I will most likely be looking for - require scrolling to search and reuse. I still have not found the setting inside Eclipse (I am using 3.3.2 at the time of writing this) to edit the history of the internal browser. I would be glad to be proved wrong.
At the same time, the workaround is to close Eclipse and then edit the file $WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.browser.prefs where $WORKSPACE is your root directory Eclipse workspace. This is a text file: my preferred text editor for Linux and Windows SciTE, but it really doesn't matter. This file has an internalWebBrowserHistory preference key, with the format:
internalWebBrowserHistory=url|*|url|*| ...
Removing obsolete entries is simple; changing or adding new entries does an excellent job, noting that the colon characters (:) are escaped by the previous backslash (\ :). Save changes, restart Eclipse, done. Hopefully there will be an internal preference editor to make it easier inside Eclipse in the future (or, someone will indicate that I was unobservable and that it is already there).
Posted by Ian on 4/25/2008 10:47:00 AM