Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 148303

Summary: [EditPolicy] ResizableEditPolicy should not understand resize
Product: [Tools] GEF Reporter: Randy Hudson <hudsonr>
Component: GEF-Legacy GEF (MVC)Assignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 3.1Flags: nyssen: iplog+
Target Milestone: 3.7.1 (Indigo) M4   
Hardware: All   
OS: All   
Whiteboard:

Description Randy Hudson CLA 2006-06-22 17:37:10 EDT
ResizableEditPolicy can be configured to not support certain resizing:

patch:
	public boolean understandsRequest(Request request) {
		if (REQ_RESIZE.equals(request.getType())) {
			ChangeBoundsRequest cbr = (ChangeBoundsRequest) request;
			int type = cbr.getResizeDirection();
			return (type & getResizeDirections()) == type;
		}
Comment 1 Alexander Nyßen CLA 2010-11-03 17:54:15 EDT
Fixed implementation of understandsRequest to support the given scenario.

Changes committed to cvs HEAD (3.7)