Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332798 - Header file fails to open when right click the header file and choose "open" in Outline view
Summary: Header file fails to open when right click the header file and choose "open" ...
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Remote Tools (show other bugs)
Version: 4.0.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.0.6   Edit
Assignee: Vivian Kong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 17:10 EST by Victor Liu CLA
Modified: 2010-12-23 11:43 EST (History)
4 users (show)

See Also:


Attachments
Test data (2.88 KB, application/rar)
2010-12-16 17:10 EST, Victor Liu CLA
no flags Details
proposed patch for ptp_4_0 and HEAD (1.30 KB, patch)
2010-12-23 11:43 EST, Vivian Kong CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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