| Summary: | [EMF Runtime Extensions] Exception when trying to extend already deleted variables in Linked Folder creation wizard | ||
|---|---|---|---|
| Product: | [Automotive] Sphinx | Reporter: | Phong Le <phonglt> |
| Component: | Core | Assignee: | Project Inbox <sphinx-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dao.hoang.gate, idydieng, phonglt, quoclan, r.sezestre |
| Version: | 0.7.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Phong Le
Error message
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.eclipse.ui.ide.dialogs.PathVariableSelectionDialog.buttonPressed(PathVariableSelectionDialog.java:101)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
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.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
...
As I debugged deeply in PathVariableSelectionDialog. I see that the [Extend..] button is not updated every [Add] / [Edit] or [Remove] button is clicked (except variableTable selection changed). Currently, these buttons call PathVariablesGroup#updateWidgetState() after adding /editing or removing an variable to update their enable status. So that, I think we must modified PathVariablesGroup#updateWidgetState() to raise an event for PathVariableSelectionDialog can update the [Extend..] button as well as variableTable do with selection changed. |