Bug 176935 - Provide GenPackage option to disable generation of editor
Summary: Provide GenPackage option to disable generation of editor
Status: NEW
Alias: None
Product: EMF
Classification: Modeling
Component: Tools (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-11 04:14 EDT by Matthias Braeuer CLA
Modified: 2018-01-22 12:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Braeuer CLA 2007-03-11 04:14:41 EDT
For core models with several packages, it is sometimes desirable to have an editor generated for only one of the packages (e.g. if that one contains the root element of the model and the other packages only contribute dependent elements). As Item Providers and corresponding adapter factories are created for all packages anyways, one editor is usually sufficient to create a model with elements from all packages.

Currently, a workaround is to only generate the editor code for the desired package by selecting it in the GenModel editor and then running "Generate Editor". However, when sharing models with other people this policy cannot be easily enforced and there is the danger that someone runs "Generate All" from the GenModel root.

An option similar to the GenPackage option "Generate Model Wizard" would be useful to deactivate generation of editor classes and corresponding extension declarations for a number of packages.