Bug 532851 - Target Editor can't select Content
Summary: Target Editor can't select Content
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2018-03-23 17:29 EDT by Dominic Hilsbos CLA
Modified: 2022-11-17 14:29 EST (History)
3 users (show)

See Also:


Attachments
Log File (54.80 KB, text/plain)
2018-03-23 17:32 EDT, Dominic Hilsbos CLA
no flags Details
Oxygen.3 target file. (6.12 KB, text/plain)
2018-03-23 17:34 EDT, Dominic Hilsbos CLA
no flags Details
Photon M6 Target file (1.32 KB, text/plain)
2018-03-23 17:35 EDT, Dominic Hilsbos CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Hilsbos CLA 2018-03-23 17:29:43 EDT
I'm testing Photon M6, and the Target Editor seems to have a significant bug.
After defining the target, I move to the Content tab, and select plugins, the boxes are checked, but the summary line continues to say 0 / X.
In addition, the Source tab is not updated with the plugin list.

I'm using the RCP package.

Issue seems to be around the "Select All" button, as manual selection works.

Check box for displaying Source bundles also appears not to work.

The filter box appears not to work either, changing it's content generates an NPE.

Attempting to save the file after manual selection clears all selections.

The following appears in the .log:
!ENTRY org.eclipse.ui 4 0 2018-03-23 12:45:33.307
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
	at org.eclipse.pde.internal.ui.shared.target.TargetContentsGroup$TreeContentProvider.getElements(TargetContentsGroup.java:1176)
	at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:994)
	at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:701)
	at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1393)
	at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:341)
	at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:900)
	at org.eclipse.pde.internal.ui.shared.CachedCheckboxTreeViewer.setAllChecked(CachedCheckboxTreeViewer.java:184)
	at org.eclipse.pde.internal.ui.shared.target.TargetContentsGroup.lambda$7(TargetContentsGroup.java:479)
	at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:81)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4433)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1086)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4243)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3822)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:681)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:595)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	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:656)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
Comment 1 Dominic Hilsbos CLA 2018-03-23 17:32:19 EDT
Created attachment 273284 [details]
Log File

This is a log file, from a new workspace.
I then imported projects, then opened, edited and tried to save the target.
Comment 2 Dominic Hilsbos CLA 2018-03-23 17:34:51 EDT
Created attachment 273285 [details]
Oxygen.3 target file.

This is the target file prior to import and edit by Photon M6.
Comment 3 Dominic Hilsbos CLA 2018-03-23 17:35:39 EDT
Created attachment 273286 [details]
Photon M6 Target file

This is the same file after import and edit by Photon M6.
Comment 4 Lars Vogel CLA 2018-12-03 09:33:46 EST
Do you still see this problem in the latest build of 2018-12 from http://download.eclipse.org/eclipse/downloads/
Comment 5 Eclipse Genie CLA 2020-11-25 14:05:48 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2022-11-17 14:29:41 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.