Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353370 - Introduce a field editor for preference pages for list of models
Summary: Introduce a field editor for preference pages for list of models
Status: NEW
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-28 17:12 EDT by Johan Westling CLA
Modified: 2011-07-28 17:14 EDT (History)
0 users

See Also:


Attachments
patch (3.12 KB, patch)
2011-07-28 17:14 EDT, Johan Westling CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Westling CLA 2011-07-28 17:12:01 EDT
Build Identifier: M20110728-1200

In the eclipse 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.
It would be useful with a field editor class for list of models that could be used for preference pages (eg. preference pages for eclipse/emf itself or third party plugins). 
I propose a new package org.eclipse.emf.common.ui.preferences where classes for preference pages can be placed (in the same way as existing packages org.eclipse.emf.common.ui.dialogs for dialogs etc.)
I also propose a new field editor class for list of models in the new package.
I will attach a patch for an implementation of a model 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 roughly the same as PathEditor but for list of models rather list of paths and uses the org.eclipse.emf.common.ui.dialogs.ResourceDialog dialog to select model.


Reproducible: Always

Steps to Reproduce:
N/A
Comment 1 Johan Westling CLA 2011-07-28 17:14:43 EDT
Created attachment 200559 [details]
patch

Patch for an implamentation for a model list field editor for preference pages.