Community
Participate
Working Groups
Eclipse version >= Build id: I20070828-0800 Steps To Reproduce: (1) Open "org.eclipse.pde.doc.user" manifest file (2) Go to "Extensions" page (3) Select "org.eclipse.help.toc" (4) Click the "Open extension point schema" hyperlink (5) Go to the "Definition" page (6) Try deleting extensions, elements or attributes -> BUG: Tree viewer object selection changes as if the object was deleted -> EXPECTED: Selection does not change and the 'default' sound is heard (beep) -> After a number of attribute deletion attempts the following exception occurs java.lang.ArrayIndexOutOfBoundsException: -2 at org.eclipse.pde.internal.ui.editor.schema.ElementSection.handleAttributeDelete(ElementSection.java:466) at org.eclipse.pde.internal.ui.editor.schema.ElementSection.handleDelete(ElementSection.java:406) at org.eclipse.pde.internal.ui.editor.schema.ElementSection.handleDelete(ElementSection.java:377) at org.eclipse.pde.internal.ui.editor.schema.ElementSection.doGlobalAction(ElementSection.java:255) at org.eclipse.pde.internal.ui.editor.PDEFormPage.performGlobalAction(PDEFormPage.java:215) at org.eclipse.pde.internal.ui.editor.PDEFormEditor.performGlobalAction(PDEFormEditor.java:822)
Marking this as bugday. We should be able to prevent the selection change by exiting/returning immediately when the editor is non-editable.
Created attachment 79603 [details] Patch to implement the suggested behaviour.
Remy is so smart.
thanks Remy!
Created attachment 79650 [details] mylyn/context/zip
Verified on I20071030-0800