Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353370

Summary: Introduce a field editor for preference pages for list of models
Product: [Modeling] EMF Reporter: Johan Westling <Johan.Westling.Public>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch none

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.