History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-24072
Type: Exception Exception
Status: Open Open
Priority: Major Major
Assignee: Dmitry Jemerov
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

GUI Designer: AssertionError from GridDropLocation.dropIntoGrid() on pasting several components before the first row / column

Created: 24 Dec 07 20:59   Updated: 24 Dec 07 21:02
Component/s: GUI Designer
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,619


 Description  « Hide
This maybe similar to IDEADEV-14856, but I'm not sure this is the same user case.

1. Create a form with Form or Grid layout. Put three components in a row.
2. Select at least two components near each other. Ctrl+Click on rightest component. Drag to copy.
3. Drop the group into area "before the 1st column". Get trace.
If to click on leftest component in step 2, bug does not occur.

The symmetric case happens with pasting before the 1st row.



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 24 Dec 07 20:59
(The case with FormLayout.)
Error during dispatching of sun.awt.dnd.SunDropTargetEvent[MOUSE_DROPPED,(390,140)] on frame0
java.lang.AssertionError
	at com.intellij.uiDesigner.designSurface.GridDropLocation.dropIntoGrid(GridDropLocation.java:189)
	at com.intellij.uiDesigner.designSurface.GridInsertLocation.processDrop(GridInsertLocation.java:332)
	at com.intellij.uiDesigner.designSurface.DesignDropTargetListener.processDrop(DesignDropTargetListener.java:270)
	at com.intellij.uiDesigner.designSurface.DesignDropTargetListener.access$000(DesignDropTargetListener.java:27)
	at com.intellij.uiDesigner.designSurface.DesignDropTargetListener$1.run(DesignDropTargetListener.java:188)
	at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:23)
	at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:10)
	at com.intellij.uiDesigner.designSurface.DesignDropTargetListener.drop(DesignDropTargetListener.java:185)
	at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
	at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
	at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
	at java.awt.Component.dispatchEventImpl(Component.java:4267)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4057)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3911)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:93)
	at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:187)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:74)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Alexander Chernikov - 24 Dec 07 21:02
BTW, undo history is corrupted after that. Immediate Undo returns the form to 1-2 steps before the drag. E.g. some editing of component's text is lost.