Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326812 - [outline] AssertionFailedException in LinkWithEditorOutlineContribution
Summary: [outline] AssertionFailedException in LinkWithEditorOutlineContribution
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M3   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-01 15:16 EDT by Michael Clay CLA
Modified: 2017-09-19 17:22 EDT (History)
3 users (show)

See Also:
sven.efftinge: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Clay CLA 2010-10-01 15:16:14 EDT
steps to reproduce:

1. open two files of the same language with enabled OutlinePage
2. close them with CTRL+W or CTRL+SHIFT+W

the reason for this exception is the single OutlineWithEditorLinker instance (per language) within LinkWithEditorOutlineContribution.

org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jface.text.TextViewer.removePostSelectionChangedListener(TextViewer.java:2609)
	at org.eclipse.xtext.ui.editor.outline.actions.OutlineWithEditorLinker.deactivate(OutlineWithEditorLinker.java:86)
	at org.eclipse.xtext.ui.editor.outline.actions.LinkWithEditorOutlineContribution.deregister(LinkWithEditorOutlineContribution.java:56)
	at org.eclipse.xtext.ui.editor.outline.actions.IOutlineContribution$Composite.deregister(IOutlineContribution.java:75)
	at org.eclipse.xtext.ui.editor.outline.impl.OutlinePage.dispose(OutlinePage.java:107)
	at org.eclipse.ui.views.contentoutline.ContentOutline.doDestroyPage(ContentOutline.java:149)
	at org.eclipse.ui.part.PageBookView.removePage(PageBookView.java:858)
	at org.eclipse.ui.part.PageBookView.partClosed(PageBookView.java:785)
	at org.eclipse.ui.part.PageBookView$4.partClosed(PageBookView.java:1019)
	at org.eclipse.ui.internal.PartListenerList2$3.run(PartListenerList2.java:100)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.runtime.Platform.run(Platform.java:888)
Comment 1 Jan Koehnlein CLA 2010-10-04 10:34:58 EDT
Changed multiplicity of OutlineWithEditorLinker. 
Fix and test pushed to master: d39c67129993070eefb7c572f8db9ed881a58522
Comment 2 Karsten Thoms CLA 2017-09-19 17:11:02 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:22:41 EDT
Closing all bugs that were set to RESOLVED before Neon.0