Bug 143666 - Runtime error if compartment is added into the content pane with layout
Summary: Runtime error if compartment is added into the content pane with layout
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-05-25 03:14 EDT by Michael Golubev CLA
Modified: 2010-07-19 22:18 EDT (History)
1 user (show)

See Also:


Attachments
Changes RT tests to support compartments (37.43 KB, patch)
2006-05-25 03:18 EDT, Michael Golubev CLA
no flags Details | Diff
Actually fixes the subj (7.50 KB, patch)
2006-05-25 03:18 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-05-25 03:14:15 EDT
Steps to reproduce: In the MindMap example add BorderLayout into RoundedTopicFigure and regerenerate both gmfgen model and diagram code. 

Attempt to create Topic at this diagram fails with class cast exception because Thread compartment assumes that figure has ConstraintedToolbarLayout while generator sets BorderLayout for RoundedTopicFigure.

After fixing of the #139148 the same may be reproduced if BorderLayout is set to Compartments figure.
Comment 1 Michael Golubev CLA 2006-05-25 03:18:11 EDT
Created attachment 42545 [details]
Changes RT tests to support compartments

CompartmentsSessionSetup introduced (basically from CodegenReconcileTest but with some additional fixes)
DiagramNodeTest is modified to use compartment setup.

NOTE: this patch forces DiagramNodeTest to fail with ClassCastException described in this issue.
Comment 2 Michael Golubev CLA 2006-05-25 03:18:46 EDT
Created attachment 42546 [details]
Actually fixes the subj
Comment 3 Artem Tikhomirov CLA 2006-05-25 12:34:00 EDT
reviewed and committed
Comment 4 Eclipse Webmaster CLA 2010-07-19 22:18:31 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug