Hello
In our application, I want to drag from a tree view to a FigureCanvas.
To get this working, I'm using a TreeItemLocator and afterwards using:
ui.dragTo(new LRLocator(1, new NamedFigureLocator("A")));
NamedFigureLocator returns two objects, so thats why I'm using the LRLocator.
The above code causes a null pointer exception, but I'm not sure whether it's my code or not.
java.lang.NullPointerException
at com.windowtester.event.swt.UIProxy.getBounds(UIProxy.java:75)
at com.windowtester.runtime.swt.internal.dnd.DragAndDropHelper.getBounds(DragAndDropHelper.java:344)
at com.windowtester.runtime.swt.internal.dnd.DragAndDropHelper.dragTo(DragAndDropHelper.java:167)
at com.windowtester.swt.UIContext.dragTo(UIContext.java:413)
at com.windowtester.runtime.swt.internal.UIContextSWT.doDragTo(UIContextSWT.java:437)
at com.windowtester.runtime.swt.internal.UIContextSWT.dragTo(UIContextSWT.java:426)
at testt.testtestt(testt.java:94)
I have tried calling getBounds on the returning IFigure, and its valid.
Another thing. Is there a way to pass a parent locator for NamedFigureLocator ??
Thanks in advance.