Bug 194902 - Allow change of an editpart's figure at runtime
Summary: Allow change of an editpart's figure at runtime
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 enhancement
Target Milestone: ---   Edit
Assignee: Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-29 07:33 EDT by gilles cannenterre CLA
Modified: 2007-07-02 10:39 EDT (History)
0 users

See Also:


Attachments
here are the necessary adjustments in "org.eclipse.gmf.runtime.diagram.ui" to support the enhancement (25.80 KB, patch)
2007-07-02 10:39 EDT, gilles cannenterre CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gilles cannenterre CLA 2007-06-29 07:33:37 EDT
This enhancement aims at allowing the user to switch between several provided figure at runtime for a selected model element.
The change could be triggered by an action (actionSets, PopupMenus, ) or an event.
The current figure (apparence) of a model element could be recorded in the "notation" model using a style.
Comment 1 gilles cannenterre CLA 2007-07-02 10:39:56 EDT
Created attachment 72876 [details]
here are the necessary adjustments in "org.eclipse.gmf.runtime.diagram.ui" to support the enhancement 

The patch mainly defines:
 - 1 interface ISwitchableEditPart and 2 abstract implementations (one based on ShapeNodeEditPart and the other on AbstractBorderedShapeEditpart
 - 1 special editpolicy and the associated request to manage change of figure
 - 1 view factory defining node views which owns the name of the current figure (in a NamedStyle element)
Comment 2 Eclipse Webmaster CLA 2010-07-19 12:30:27 EDT
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug