Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361610

Summary: Delete error popup while trying to remove 2nd and 3rd level widgets in Outlin view
Product: z_Archived Reporter: Thomas Wu <wxwu>
Component: EDTAssignee: Huo Zhen Zhong <huozz>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chenzhh, huozz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
handler file
none
delete error none

Description Thomas Wu CLA 2011-10-21 03:00:34 EDT
Build Identifier: 20111020

RBD works fine in such scenario.
User could not delete 2nd and 3rd level widgets in Outlin view and a delete error will raise in error log.

Reproducible: Always

Steps to Reproduce:
1.Open egl handler in attatchment.
2.In the outline view, select and right click the 2nd level Dojo AccordionContainer, then click Delete in menu itmes.

Actual results: There is no response at first time, and a delete error will popup in error log view if user clicks delete again.
Comment 1 Thomas Wu CLA 2011-10-21 03:12:40 EDT
Created attachment 205688 [details]
handler file
Comment 2 Thomas Wu CLA 2011-10-21 03:14:10 EDT
Created attachment 205689 [details]
delete error
Comment 3 Thomas Wu CLA 2011-10-21 03:14:55 EDT
The detail messages in error log is as following:
java.lang.IndexOutOfBoundsException: Index: 0
	at java.util.Collections$EmptyList.get(Unknown Source)
	at org.eclipse.edt.ide.rui.document.utils.EGLContainerDeleteStrategy$ChildrenArrayVisitor$1.visit(EGLContainerDeleteStrategy.java:64)
	at org.eclipse.edt.compiler.core.ast.ArrayLiteral.accept(ArrayLiteral.java:38)
	at org.eclipse.edt.ide.rui.document.utils.EGLContainerDeleteStrategy$ChildrenArrayVisitor.visit(EGLContainerDeleteStrategy.java:61)
	at org.eclipse.edt.compiler.core.ast.Assignment.accept(Assignment.java:111)
	at org.eclipse.edt.ide.rui.document.utils.EGLContainerDeleteStrategy$1.visit(EGLContainerDeleteStrategy.java:172)
	at org.eclipse.edt.compiler.core.ast.NewExpression.accept(NewExpression.java:89)
	at org.eclipse.edt.ide.rui.document.utils.EGLContainerDeleteStrategy.deleteFromContainer(EGLContainerDeleteStrategy.java:162)
	at org.eclipse.edt.ide.rui.document.utils.DeleteWidgetReferenceOperation$1.visit(DeleteWidgetReferenceOperation.java:73)
	at org.eclipse.edt.compiler.core.ast.NewExpression.accept(NewExpression.java:89)
	at org.eclipse.edt.ide.rui.document.utils.DeleteWidgetReferenceOperation.deleteWidgetReference(DeleteWidgetReferenceOperation.java:57)
	at org.eclipse.edt.ide.rui.server.EvEditorProvider.delete(EvEditorProvider.java:279)
	at org.eclipse.edt.ide.rui.visualeditor.internal.editor.EvEditor.doSourceOperationWidgetDelete(EvEditor.java:618)
	at org.eclipse.edt.ide.rui.visualeditor.internal.editor.EvDesignPage.doOperationWidgetDelete(EvDesignPage.java:815)
	at org.eclipse.edt.ide.rui.visualeditor.internal.editor.EvDesignOverlay.doOperationWidgetDelete(EvDesignOverlay.java:339)
	at org.eclipse.edt.ide.rui.visualeditor.internal.editor.EvDesignOverlay.deleteSelected(EvDesignOverlay.java:269)
	at org.eclipse.edt.ide.rui.visualeditor.internal.actions.EvActionWidgetDelete.run(EvActionWidgetDelete.java:36)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	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:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Comment 4 Huo Zhen Zhong CLA 2011-10-25 22:43:32 EDT
It is related to 361607, and it works well in the latest build because 361607 has been fixed.
Comment 5 Thomas Wu CLA 2011-10-28 03:26:25 EDT
Verified in build of 20111027