Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 256807 - Revert function not working while deleting variables in datapool
Summary: Revert function not working while deleting variables in datapool
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 252959
  Show dependency tree
 
Reported: 2008-11-27 11:33 EST by Ben Chen CLA
Modified: 2016-05-05 11:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Chen CLA 2008-11-27 11:33:50 EST
Using 4.5.2-1126 driver

1: Open up a datapool with two or more variables in it's editor
2: Remove one or more variables (either overview or inside the equivalence class)
3: Go File--> Revert, notice that the editor does NOT change to clean, the system seems to have process running (the "Busy" mouse icon shows up) and the records under these variables are erased (if they are not null/empty)
Comment 1 Paul Slauenwhite CLA 2008-11-27 17:01:35 EST
Using the 11/25 TPTP 4.5.2 I2 TP candidate driver, the operation terminates with the following exception:

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 3
at org.eclipse.hyades.test.ui.datapool.internal.control.DatapoolTable.refreshRows(DatapoolTable.java:3398)
at org.eclipse.hyades.test.ui.datapool.internal.control.DatapoolTable.refresh(DatapoolTable.java:3181)
at org.eclipse.hyades.test.ui.datapool.internal.control.DatapoolTable.refresh(DatapoolTable.java:3273)
at org.eclipse.hyades.test.ui.internal.editor.form.DataTableForm.load(DataTableForm.java:118)
at org.eclipse.hyades.test.ui.internal.editor.form.DataTableForm.load(DataTableForm.java:125)
at org.eclipse.hyades.test.ui.internal.editor.extension.DatapoolEditorExtension.refreshContent(DatapoolEditorExtension.java:578)
at org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension.reload(BaseEditorExtension.java:557)
at org.eclipse.hyades.ui.internal.editor.action.RevertAction.run(RevertAction.java:48)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:619)
at org.eclipse.ui.menus.CommandContributionItem.access$10(CommandContributionItem.java:605)
at org.eclipse.ui.menus.CommandContributionItem$4.handleEvent(CommandContributionItem.java:595)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
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:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Comment 2 Paul Slauenwhite CLA 2008-11-27 17:01:46 EST
This defect requires a new test case for the revert action (/org.eclipse.hyades.ui/src/org/eclipse/hyades/ui/internal/editor/action/RevertAction.java).  See org.eclipse.hyades.test.ui.datapool.internal.control.DatapoolActionHandlerListener.updateActions(). 
Comment 3 Paul Slauenwhite CLA 2009-02-03 12:22:00 EST
Decreasing severity since:

-The symptom is only seen when reverting a deleted variable.
-The UI is responsive.
-The deleted variable it reverted correctly.
Comment 4 Ben Chen CLA 2009-04-23 15:29:38 EDT
This problem cannot be seen using the 46I2TP1 driver, marking as works for me for now and will be monitored during the future test passes
Comment 5 Paul Slauenwhite CLA 2009-04-27 08:35:14 EDT
(In reply to comment #4)
> This problem cannot be seen using the 46I2TP1 driver, marking as works for me
> for now and will be monitored during the future test passes
> 

Closing.