Bug 22400 - [ExternalTools] Run Ant... action displayed for invalid resources (build I0813)
Summary: [ExternalTools] Run Ant... action displayed for invalid resources (build I0813)
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: Other other
: P3 trivial (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-08-13 13:37 EDT by Scott Rutledge CLA
Modified: 2002-10-15 15:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Rutledge CLA 2002-08-13 13:37:45 EDT
The Run Ant... action is displayed in the Navigator context menu for directories whos names end in 
'.xml' (in my case it was in the Package Explorer with a package in the form 'package.xml'). The 
following log entry is generated when the action is used:

!ENTRY org.eclipse.ui 4 4 Aug 13, 
2002 11:37:39.44
!MESSAGE Unhandled exception caught in event loop.
!ENTRY 
org.eclipse.ui 4 0 Aug 13, 2002 11:37:39.54
!MESSAGE 
java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at 
org.eclipse.ui.externaltools.internal.ui.AntAction.<init>(AntAction.java:40)
	at 
org.eclipse.ui.externaltools.internal.ui.AntRunActionDelegate.run(AntRunActionDelegate.java:32)
	at 
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:210)
	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:833)
	at 
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1623)
	at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1369)
	at 
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1256)
	at 
org.eclipse.ui.internal.Workbench.run(Workbench.java:1239)
	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)
Comment 1 Darin Swanson CLA 2002-10-15 14:32:44 EDT
The Run Ant action is not only availabe for an IFile.
Please verify changes to the external tools plugin.xml (Darin W).
Comment 2 Darin Wright CLA 2002-10-15 15:50:05 EDT
Verified.