Bug 155698 - Generated BorderItem editpart fails in runtime with CCE if the node is non-resizable
Summary: Generated BorderItem editpart fails in runtime with CCE if the node is non-re...
Status: NEW
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-08-30 11:20 EDT by Michael Golubev CLA
Modified: 2010-07-19 22:21 EDT (History)
1 user (show)

See Also:


Attachments
Fixes the subj, no tests (25.46 KB, patch)
2006-08-30 11:26 EDT, Michael Golubev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Golubev CLA 2006-08-30 11:20:25 EDT
Consider the gmfgraph node with not-default values for both parentAffixedSide and resizeConstraint at the same time. 

Generated code will first install BorderItemSelectionEditPolicy into the editpart, and then will try to cast it to ResizableEditPolicy in the generated getPrimaryDragEditPolicy() method. The latter attempt fails with CCE.

Expected: no exceptions, attached test passes.
Comment 1 Michael Golubev CLA 2006-08-30 11:26:29 EDT
Created attachment 49068 [details]
Fixes the subj, no tests
Comment 2 Artem Tikhomirov CLA 2006-09-11 06:23:36 EDT
Version/Milestone updated
Comment 3 Artem Tikhomirov CLA 2007-06-18 09:30:32 EDT
Tests needed.
Comment 4 Artem Tikhomirov CLA 2008-06-05 08:46:56 EDT
Bulk update, target milestone 2.2
Comment 5 Eclipse Webmaster CLA 2010-07-19 22:21:52 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug