Bug 302064

Summary: [EditPolicy] LayoutEditPolicies should check whether the content pane's layout manager is compatible.
Product: [Tools] GEF Reporter: Alexander Nyßen <any>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 302062    
Bug Blocks:    

Description Alexander Nyßen CLA 2010-02-07 11:39:39 EST
Build Identifier: 

Up to now, layout edit policies do not assert that the layout manager of their layout container (the host's content pane) is a compatible one. This is a likely pitfall that could easily be prevented by adding a respective assertion within setHost().

Just a comment: bug #302062 would allow to also perform such a check within ConstrainedLayoutEditPolicy be means of something like: Assert.isLegal(getLayoutContainer().getLayoutManager() instanceof ConstrainedLayoutManager);

Reproducible: Always