Community
Participate
Working Groups
Severity and Description Path Resource Location Creation Time Id The constructor DefaultDamagerRepairer(ITokenScanner, TextAttribute) is deprecated org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/text MultilineDamagerRepairer.java line 23 1188227312687 133242
Created attachment 77189 [details] Patch to fix the bug Removed the call to deprecated constructor and changed it to the suggested one. Fabio (finished with the easy deprecation removal stuff :))
Mike, can you take a look at this and make sure nothing breaks ;)?
Comment on attachment 77189 [details] Patch to fix the bug Unfortunately, this change breaks the schema and plug-in manifest editors :( . Details to follow.
The following error occurs on editor open: "Error opening the editor" org.eclipse.core.runtime.AssertionFailedException: null argument: at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:84) at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:72) at org.eclipse.jface.text.rules.DefaultDamagerRepairer.<init>(DefaultDamagerRepairer.java:78) at org.eclipse.pde.internal.ui.editor.text.MultilineDamagerRepairer.<init>(MultilineDamagerRepairer.java:23) at org.eclipse.pde.internal.ui.editor.text.XMLConfiguration.getPresentationReconciler(XMLConfiguration.java:86) at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:355) ... The old constructor allowed a null scanner and relied on the XML comment attribute; whereas, the new constructor does not allow a null scanner.
Is this effectively a regression on the new constructor? What should we pass instead?
Not a regression because the non-deprecated constructor never allowed null. I'm guessing a scanner that returns the default text attribute that was discarded should be passed in as a parameter (needs further investigation)
Returning to the inbox/bugday box.
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.
This bug has been marked as stalebug a while ago without any further interaction. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.
This bug was marked as stalebug a while ago. Marking as worksforme. If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard tag.