Bug 501035 - Alignment Action accross different parents
Summary: Alignment Action accross different parents
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.9.1   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-08 02:12 EDT by Flavio Donze CLA
Modified: 2016-09-08 02:12 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Flavio Donze CLA 2016-09-08 02:12:54 EDT
The current alignment action only works within the same parent.
In the eclipse BPMN-modeler project it would be a great improvement if it would work across different lanes.

The part responsible is in the getOperationSet():

EditPart parent = ((EditPart) editparts.get(0)).getParent();
for (int i = 1; i < editparts.size(); i++) {
	EditPart part = (EditPart) editparts.get(i);
	if (part.getParent() != parent)
		return Collections.EMPTY_LIST;
}

If it is too troublesome to implement, a solution might be to work with a flag, passed in the constructor e.g.:

public AlignmentAction(IWorkbenchPart part, int align, boolean allowDifferentParent)

The default constructor would pass 'false'.