I spent quite a lot of time getting "null" in the Log
console (and a popup popping up and immediately
disappearing) when I selected a target and clicked on
"run". It appears that I needed to double-click to
mark the target with a checked icon before using "Run".
It'd be nice:
a) If the Run option was greyed out if there are no
targets "selected"
b) If a is not possible, at least some way of catching
the NullPointer exception and displaying a dialog that
stays up longer would help. Here's the NPE trace:
!ENTRY org.eclipse.ui 4 0 Aug 17, 2002 18:50:21.219
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:386)
at
com.r2tech.eclipse.antview.core.TreeObject.setProperty(TreeObject.java:133)
at
com.r2tech.eclipse.antview.views.AntViewContentProvider.initialize(AntViewContentProvider.java:163)
at
com.r2tech.eclipse.antview.views.AntViewContentProvider.getElements(AntViewContentProvider.java:67)
at
org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:397)
at
org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:570)
at
org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:346)
at
org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:447)
at
org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:1189)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:839)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:817)
at
org.eclipse.jface.viewers.StructuredViewer$4.run(StructuredViewer.java:748)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:688)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:746)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:708)
at
com.r2tech.eclipse.antview.views.AntView.refresh(AntView.java:221)
at
com.r2tech.eclipse.antview.actions.RefreshAction.run(RefreshAction.java:40)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361)
at
org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352)
at
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1177)
at
org.eclipse.ui.internal.Workbench.run(Workbench.java:1160)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:775)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:248)
at org.eclipse.core.launcher.Main.run(Main.java:698)
at org.eclipse.core.launcher.Main.main(Main.java:534)
Logged In: YES
user_id=398209
Good Idea. I'll add it to my list.
Thanks, Roscoe
Logged In: YES
user_id=398209
New feature in release 2.2.8 - prints message to log console
when run action selected with no targets selected.