Bug 146531 - Install ResizableCompartmentEditPolicy for child compartments in all the generated LayoutEditPolicies for NodeEditParts
Summary: Install ResizableCompartmentEditPolicy for child compartments in all the gene...
Status: RESOLVED FIXED
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: ---   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-06-12 06:08 EDT by Alex Shatalin CLA
Modified: 2010-07-19 22:20 EDT (History)
0 users

See Also:


Attachments
Fixes the subj (21.43 KB, patch)
2006-06-12 10:07 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 Alex Shatalin CLA 2006-06-12 06:08:14 EDT
Currently ResizableCompartmentEditPolicy will be installed for child compartments in ConstrainedToolbarLayoutEditPolicy.createChildEditPolicy() method only. As a result, only compartments located in a node with ConstrainedToolbarLayoutEditPolicy installed (i.e. with ConstrainedToolbarLayout) will get this EditPolicy installed. 

ResizableCompartmentEditPolicy is an EditPolicy responsible for drawing little triangle in the left-top corner of the compartment and collapsing/expanding compartment on mouse-click on this triangle. So, currently only those compartments which are located in a node with ConstrainedToolbarLayout will get this collapse/expand control. All the compartments located in nodes with different layouts should get ResizableCompartmentEditPolicy installed. 

For the conditions of ResizableCompartmentEditPolicy installation see ConstrainedToolbarLayoutEditPolicy.createChildEditPolicy()

Processing of node layouts was changed on closing https://bugs.eclipse.org/bugs/show_bug.cgi?id=140186
Comment 1 Michael Golubev CLA 2006-06-12 10:07:06 EDT
Created attachment 44138 [details]
Fixes the subj

Policy is installed when gmfgraph compartment has canCollapse property = true.
Thus, non-collapsible compartments still intentionally do not have collapse handle.
Comment 2 Alex Shatalin CLA 2006-06-12 11:29:57 EDT
commited
Comment 3 Eclipse Webmaster CLA 2010-07-19 22:20:35 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug