Bug 2581 - Perspective layout modifications are too easy to perform by mistake (1GGNLJH)
Summary: Perspective layout modifications are too easy to perform by mistake (1GGNLJH)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Haaland CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2001-10-10 22:39 EDT by Philipe Mulet CLA
Modified: 2001-12-04 12:07 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2001-10-10 22:39:12 EDT
When manipulating the IDE, I often end up moving a view around by mistake, and have no undo functionality. Would it be envisageable
to have this functionality ? I end up having to reset the perspective alltogether, loosing all customizations at once (and therefore
discouraging to perform any).

NOTES:
	EJP (7/31/01 2:47:47 PM)
		We could fix CTabPartDragDrop>>#mouseDown to avoid dragging from the CTabFolder borders.
		Making it more dificulty to move views by mistake.

	EJP (7/31/01 2:50:21 PM)
		Here is a changed version of mouseDown:

public void mouseDown(MouseEvent e) {
	if (e.button != 1) return;

	// Verify that the tab under the mouse pointer
	// is the same as for this drag operation
	CTabFolder tabFolder = getCTabFolder();
	CTabItem tabUnderPointer = tabFolder.getItem(new Point(e.x, e.y));
	if (tabUnderPointer != tab)
		return;
	if(tabUnderPointer == null) {
		//Avoid drag from the borders.
		Rectangle clientArea = tabFolder.getClientArea();
		if((tabFolder.getStyle() & SWT.TOP) != 0) {
			if(e.y > clientArea.y)
				return;
		} else {
			if(e.y < clientArea.y + clientArea.height)
				return;
		}
	}

	super.mouseDown(e);
}
Comment 1 DJ Houghton CLA 2001-10-29 19:02:11 EST
PRODUCT VERSION:
SDK 125

Comment 2 Eduardo Pereira CLA 2001-12-04 12:07:06 EST
Proposed change is already released.