Community
Participate
Working Groups
Build Identifier: M20110720-0800 In the current API for preference pages (class org.eclipse.jface.preference.FieldEditorPreferencePage) there are field editors (subclasses of org.eclipse.jface.preference.FieldEditor) for string, file, directory, list of directories, etc, but there is no field editor for list of files. It would be useful with a field editor class for list of files that could be used for preference pages (eg. preference pages for eclipse itself or third party plugins). Will attach a patch for an implementation of a file list field editor. The code is inspired (copy and paste) from the existing org.eclipse.jface.preference.PathEditor which is a field editor for list of paths (directories). The proposed field editor does the same as PathEditor but for list of files rather than list of paths. Reproducible: Always Steps to Reproduce: N/A
Created attachment 200312 [details] Implementation for a File list field editor
It would be interesting to see if existing preference pages (for instance, the workspace list on the General -> Startus and Shutdown -> Workspaces) can be updated to use this.
I guess the preference page General -> Startup and Shutdown -> Workspaces would use the existing org.eclipse.jface.preference.PathEditor since it is a list of diretories rather than files, but I am sure it would be useful somewhere. I have used it in a plugin in specific for the company I work for.
(In reply to comment #1) > Created attachment 200312 [details] > Implementation for a File list field editor Do you think this is still useful for Kepler? PW
(In reply to comment #4) Yes, I still think it is useful. I use it in a plugin used at the company I work for. I think it would be useful for other plugin developers and maybe also for eclipse itself.
One of our general rules is, that we do not add things which we don't use ourselves. So, unless there is at least one place where we can also use the file list editor, we should wait to put it in.
Are you interested in trying to replace some of our uses in the eclipse preference pages, like General -> Startup and Shutdown -> Workspaces ? PW