When using FigureCanvasXYLocator in a dragTo, I get an exception saying that widget was not found. But in our RCP application, I have an editor open and visible. The editor doesn't have focus, because I'm dragging from a tree in a view.
So my question is, what is the criteria for FigureCanvasXYLocator ?? What is it looking for ? Maybe it's a flaw in our application and I can fix it.
I also tried to apply the name of the editor, but with same result.
Then I tried just a simple
- Code: Select all
ui.dragTo(new XYLocator(x,y));
but that caused a null pointer exception:
java.lang.NullPointerException
at com.windowtester.runtime.swt.internal.UIContextSWT.findAll(UIContextSWT.java:630)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:565)
at com.windowtester.runtime.swt.internal.UIContextSWT.findWidget(UIContextSWT.java:685)
at com.windowtester.runtime.swt.internal.UIContextSWT.doDragTo(UIContextSWT.java:451)
at com.windowtester.runtime.swt.internal.UIContextSWT.dragTo(UIContextSWT.java:433)