Project

General

Profile

Actions

Bug #1050

closed

Запретить удалять корневое требование

Added by Alexey Khoroshilov over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Start date:
04/08/2011
Due date:
% Done:

100%

Estimated time:
Detected in build:
0.10.62
Platform:
Published in build:
0.11.68

Description

На приложенном проекте при попытке вызвать контекстное меню на html документе возникает следующий exception:

null
Error
Fri Apr 08 09:24:39 MSD 2011
Unhandled event loop exception

java.lang.NullPointerException
at com.unitesk.requality.eclipse.editors.browser.AddSelectionToRequirement.getNextId(AddSelectionToRequirement.java:117)
at com.unitesk.requality.eclipse.editors.browser.ReqMarker$6.menuAboutToShow(ReqMarker.java:417)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:338)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:469)
at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:465)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:491)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:241)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:199)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:3581)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3158)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)


Files

Test.zip (39 KB) Test.zip Alexey Khoroshilov, 04/08/2011 09:35 AM
Actions #1

Updated by Alexey Demakov over 13 years ago

А куда делся Test/root/Requirements.json файл?
Похоже, это всё из-за его отсутствия.

Actions #2

Updated by Alexey Demakov over 13 years ago

Установлено, что корневое требование "Requirements" было предварительно удалено. Надо запретить его удаление.

Атакже запретить изменение его id - это равносильно удалению, requality его ищет по id.

Actions #3

Updated by Alexey Khoroshilov over 13 years ago

  • Subject changed from Unhandled event loop exception при открытии контекстного меню в html документе to Запретить удалять корневое требование
Actions #4

Updated by Alexey Khoroshilov over 13 years ago

  • Target version changed from 0.10 to 0.11
Actions #5

Updated by Андрей Третьяков over 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Код, удаляющий требование, проверяет, не корневое ли оно; если корневое, то деактивированы соответствующие пункт меню и команда.

Actions #6

Updated by Alexey Demakov over 13 years ago

  • Published in build set to 0.11.68
Actions #7

Updated by Viktoria Kopach over 13 years ago

  • Status changed from Resolved to Verified

В требования внесла поправку о невозможности удаления узла Requirements и невозможности менять его Id.

Actions #8

Updated by Viktoria Kopach over 13 years ago

  • Assignee set to Alexey Khoroshilov
Actions #9

Updated by Alexey Khoroshilov over 13 years ago

  • Status changed from Verified to Closed
Actions

Also available in: Atom PDF