Q7

ModelException if I delete a test case with opened control panel.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.1.5
  • Fix Version/s: 1.1.7
  • Component/s: UI
  • Labels:
    None

Description

Steps to reproduce:

1. Create a test case and start recording;
2. Stop recording and click to Q7 main window without closing control panel;
3. Delete the test case fro Q7 explorer.

The following exception will be thrown:

com.xored.q7.core.model.ModelException: Element: /tests/org.eclipse.tigerstripe.ui.tests/scenarios/visualeditor/sources/Association_Change_aEndVisibility.test doesn't exist
at com.xored.q7.internal.core.model.Q7Element.newNotPresentException(Q7Element.java:110)
at com.xored.q7.internal.core.model.Q7NamedElement.buildStructure(Q7NamedElement.java:74)
at com.xored.q7.internal.core.model.Openable.generateInfos(Openable.java:65)
at com.xored.q7.internal.core.model.Q7Element.openWhenClosed(Q7Element.java:65)
at com.xored.q7.internal.core.model.Q7Element.getElementInfo(Q7Element.java:38)
at com.xored.q7.internal.core.model.Q7Element.getElementInfo(Q7Element.java:29)
at com.xored.q7.internal.core.model.deltas.Q7ElementDeltaBuilder.findAdditions(Q7ElementDeltaBuilder.java:161)
at com.xored.q7.internal.core.model.deltas.Q7ElementDeltaBuilder.buildDeltas(Q7ElementDeltaBuilder.java:130)
at com.xored.q7.internal.core.model.ModelManager.discardPerWorkingCopyInfo(ModelManager.java:297)
at com.xored.q7.internal.core.model.DiscardWorkingCopyOperation.executeOperation(DiscardWorkingCopyOperation.java:18)
at com.xored.q7.internal.core.model.Q7Operation.run(Q7Operation.java:668)
at com.xored.q7.internal.core.model.Q7Operation.runOperation(Q7Operation.java:736)
at com.xored.q7.internal.core.model.Q7NamedElement.discardWorkingCopy(Q7NamedElement.java:186)
at com.xored.q7.ui.editors.NamedElementEditor.discardWorkingCopy(NamedElementEditor.java:263)
at com.xored.q7.ui.editors.NamedElementEditor.close(NamedElementEditor.java:202)
at com.xored.q7.ui.editors.NamedElementEditor$6.run(NamedElementEditor.java:432)
at com.xored.q7.ui.utils.WorkbenchUtils$1.run(WorkbenchUtils.java:54)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:331)
at org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:605)
at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.performFinish(UserInputWizardPage.java:153)
at org.eclipse.ltk.ui.refactoring.resource.DeleteResourcesWizard$DeleteResourcesRefactoringConfigurationPage.performFinish(DeleteResourcesWizard.java:151)
at org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:678)
at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:455)
at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
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.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:181)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:193)
at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:116)
at org.eclipse.ltk.internal.ui.refactoring.actions.DeleteResourcesHandler.execute(DeleteResourcesHandler.java:40)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
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.executeCommandInContext(HandlerService.java:270)
at org.eclipse.ui.internal.ide.actions.LTKLauncher.runCommand(LTKLauncher.java:95)
at org.eclipse.ui.internal.ide.actions.LTKLauncher.openDeleteWizard(LTKLauncher.java:47)
at org.eclipse.ui.actions.DeleteResourceAction.run(DeleteResourceAction.java:474)
at com.xored.q7.ui.actions.edit.DeleteAction.run(DeleteAction.java:63)
at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
at com.xored.q7.ui.actions.edit.TextActionHandler$DeleteActionHandler.runWithEvent(TextActionHandler.java:161)
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.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
at org.eclipse.ui.internal.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:76)
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.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1809)
at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
at org.eclipse.swt.widgets.Tree.WM_KEYDOWN(Tree.java:6069)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5937)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2530)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
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)

Activity

Hide
Andrey Sobolev added a comment - 08/Feb/12 2:30 PM

Fixed.

Show
Andrey Sobolev added a comment - 08/Feb/12 2:30 PM Fixed.
Hide
anastasia.ahramenko added a comment - 23/Mar/12 5:29 PM

Verified, test was recorded.

Show
anastasia.ahramenko added a comment - 23/Mar/12 5:29 PM Verified, test was recorded.

People

Vote (0)
Watch (0)

Dates

  • Created:
    25/Jan/12 2:47 PM
    Updated:
    23/Mar/12 5:29 PM
    Resolved:
    08/Feb/12 2:30 PM