Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326688 - Cannot close renegade 'Problems' view via the context menu after resetting the perspective
Summary: Cannot close renegade 'Problems' view via the context menu after resetting th...
Status: CLOSED DUPLICATE of bug 326087
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-30 11:31 EDT by Remy Suen CLA
Modified: 2010-09-30 11:47 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 Remy Suen CLA 2010-09-30 11:31:48 EDT
1. Window > Reset Perspective... > OK
2. Right-click on the 'Declaration' view > Close Al
3. The 'Problems' view is still there.

1. Window > Reset Perspective... > OK
2. Right-click on the 'Problems' view > Close
3. An NPE is thrown.

java.lang.NullPointerException
	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:617)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	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.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:693)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:602)
Comment 1 Remy Suen CLA 2010-09-30 11:44:55 EDT
When the 'Declaration' view is hidden, the 'Problems' view gets selected again and is recreated.

Thread [main] (Suspended (breakpoint at line 692 in PartImpl))	
	PartImpl.setCurSharedRef(MPlaceholder) line: 692	
	StackRenderer.createTab(MElementContainer<MUIElement>, MUIElement) line: 306	
	StackRenderer.showTab(MUIElement) line: 519	
	LazyStackRenderer$1.handleEvent(Event) line: 74	
	UIEventHandler.handleEvent(Event) line: 41	
	EventHandlerWrapper.handleEvent(Event, Permission) line: 188	
	EventHandlerTracker.dispatchEvent(Object, Object, int, Object) line: 198	
	EventManager.dispatchEvent(Set<Entry<K,V>>, EventDispatcher<K,V,E>, int, E) line: 230	
	ListenerQueue<K,V,E>.dispatchEventSynchronous(int, E) line: 148	
	EventAdminImpl.dispatchEvent(Event, boolean) line: 139	
	EventAdminImpl.sendEvent(Event) line: 78	
	EventComponent.sendEvent(Event) line: 39	
	EventBroker.send(String, Object) line: 73	
	UIEventPublisher.notifyChanged(Notification) line: 58	
	PartStackImpl(BasicNotifierImpl).eNotify(Notification) line: 380	
	PartStackImpl(ElementContainerImpl<T>).setSelectedElement(T) line: 159	
	StackRenderer.hideChild(MElementContainer<MUIElement>, MUIElement) line: 418	
	PartRenderingEngine.removeGui(MUIElement) line: 526	
	PartRenderingEngine.removeGui(MUIElement) line: 537	
	PartRenderingEngine.removeGui(MUIElement) line: 537	
	PartRenderingEngine.removeGui(MUIElement) line: 537	
	PartRenderingEngine$1.handleEvent(Event) line: 128	
	UIEventHandler.handleEvent(Event) line: 41	
	EventHandlerWrapper.handleEvent(Event, Permission) line: 188	
	EventHandlerTracker.dispatchEvent(Object, Object, int, Object) line: 198	
	EventManager.dispatchEvent(Set<Entry<K,V>>, EventDispatcher<K,V,E>, int, E) line: 230	
	ListenerQueue<K,V,E>.dispatchEventSynchronous(int, E) line: 148	
	EventAdminImpl.dispatchEvent(Event, boolean) line: 139	
	EventAdminImpl.sendEvent(Event) line: 78	
	EventComponent.sendEvent(Event) line: 39	
	EventBroker.send(String, Object) line: 73	
	UIEventPublisher.notifyChanged(Notification) line: 58	
	PartSashContainerImpl(BasicNotifierImpl).eNotify(Notification) line: 380	
	PartSashContainerImpl(UIElementImpl).setToBeRendered(boolean) line: 288	
	WorkbenchPage.resetPerspective() line: 2336
Comment 2 Remy Suen CLA 2010-09-30 11:47:48 EDT

*** This bug has been marked as a duplicate of bug 326087 ***