Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332798

Summary: Header file fails to open when right click the header file and choose "open" in Outline view
Product: [Tools] PTP Reporter: Victor Liu <victor1006>
Component: Remote ToolsAssignee: Vivian Kong <vivkong>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cecco, ptp-inbox, recoskie, vivkong
Version: 4.0.5   
Target Milestone: 4.0.6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Test data
none
proposed patch for ptp_4_0 and HEAD none

Description Victor Liu CLA 2010-12-16 17:10:38 EST
Created attachment 185376 [details]
Test data

Expect to open a header in editor, but fail to open it when right click the header file and choose "open" in Outline view

1. Download the dcr_ex_f.rar file, unzip and save it under your home directory on the remote machine (AIX). Create a remote project named "dcr" on top of the the folder.

2. In the Outline view, right click on "dcr3915f.h" and choose "Open". The dcr3915f.h header file should open up in the editor.
Comment 1 Victor Liu CLA 2010-12-16 17:27:28 EST
Error Message in Error log
null
Error
Thu Dec 16 16:34:37 EST 2010
Unhandled event loop exception

java.lang.NullPointerException
at org.eclipse.ptp.internal.rdt.ui.editor.OpenIncludeAction.run(OpenIncludeAction.java:109)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 2 Vivian Kong CLA 2010-12-23 11:43:16 EST
Created attachment 185778 [details]
proposed patch for ptp_4_0 and HEAD

OpenIncludeAction in rdt.ui now handles remote tools URIs (URIs that have information on authority but no host information.)
Comment 3 Vivian Kong CLA 2010-12-23 11:43:30 EST
Fixed in ptp_4_0 and HEAD