| Summary: | [Class Diagram] Drag tracker exception when selecting and dragging Package compartment | ||
|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Yann Tanguy <yann.tanguy> |
| Component: | Core | Assignee: | Patrick Tessier <Patrick.Tessier> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 348505, 348506 | ||
|
Description
Yann Tanguy
Occurs on 0.8.0 RC3. Related to this, I'm not sure that org.eclipse.papyrus.diagram.clazz.custom.policies.AbstractPackageableElementCompartmentEditPart is really useful. Especially, I don't understand the need to override the getDragTracker from parent here :
public DragTracker getDragTracker(Request req) {
if (!supportsDragSelection())
return super.getDragTracker(req);
return new DragEditPartsTracker(this);
}
The drag tracker has been changed. when the compartment is moved it call the drag tracker of the package. I was done to allow double click on compartment. Done in the branch version 5151 merge has been done in the version 5153 I don't agree with your fix, the compartment is no more selectable (not really a problem but differs from default behavior), and the marquee tool does not work correctly -> a move of the figure is done instead. This may be a problem, the marquee tool is useful to graphically select elements inside a PackageableElement compartment. It could be better to extend the RubberBandDragTracker to add DoubleClick support (assuming nothing similar already exists in GEF or GMF). the method "handleDoubleClick" of "RubberbandDragTracker" in order to manage the double click and to not interfere the functionality marquee tool. Done in the revision 5156 |