Bug 302590 - One CreationTool for different Entities; OCL-Source-Constraints to Decide; Custom Node Figure
Summary: One CreationTool for different Entities; OCL-Source-Constraints to Decide; Cu...
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal
Target Milestone: ---   Edit
Assignee: Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 10:25 EST by Rainer Ganß CLA
Modified: 2010-07-19 12:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Ganß CLA 2010-02-11 10:25:22 EST
Build Identifier: 20090920-1017

I have a CreationTool named "Transition" for Connections between several Grafical Elements. In the MappingModel i implemented three Link Mappings, each with its one Containment Feature an Element. All three have Source Constraints like
(OCL: self.oclIsKindOf(NodeA) ... ) 
If i generate the diagram and start a Transition from the different Nodes an target to free Area, the Editor shows kontextmenu "Create NodeATransition to ..." 
Thats corret and fine!

BUT: If i MouseOver NodeB and then over NodeA an start a Transition from NodeA the Editor provides both Transitions! 
Create NodeATransition To -> (New SubMenu)
Create NodeBTransition To -> (New SubMenu)


Reproducible: Always

Steps to Reproduce:
1.One CreationTool with 3 Link Mappings (each with its one Ecore Element)
2.Each Mapping has a Source Constraint like (OCL: self.oclIsKindOf(NodeA))
3.Create the Editor an different Elements (NodeA NodeB NodeC ...; each has its one Connection but the same CreationTool)
4. Mouse Over NodeA (no click) and then over NodeB and start a Connection from NodeB, target to free Area and the Editor provides both, NodeAConnection AND NodeBConnection! Thats wrong! It only should provide a NodeBConnection.

I noticed the bug cause i use a CustomNodeFigure (http://gmfsamples.tuxfamily.org/wiki/doku.php?id=gmf_tutorial6) with FixedAnchors and so i got NullPointerExceptions; I can work arround but the basic Problem is that i dont want the user to have to decide wich Connection to use!

(btw: Pls invest more time in better Exception in GMF; for now they are pretty useless to find the basic Problem)
Comment 1 Eclipse Webmaster CLA 2010-07-19 12:26:15 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug