Project

General

Profile

Actions

Task #914

closed

User Story #891: Реализовать редактор требований как Properties view

При двойном клике на требование без locations открывается окно с ошибкой в Markup Editor

Added by Viktoria Kopach over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Yuriy Shekochihin
Category:
-
Target version:
Start date:
03/05/2011
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Published in build:
0.10.60

Description

При двойном клике на требование открывается окно с ошибкой в Markup Editor с сообщением
Could not open the editor: Editor initialization failed: com.unitesk.requality.editors.browser.ReqMarker. Site is incorrect.

org.eclipse.ui.PartInitException: Editor initialization failed: com.unitesk.requality.editors.browser.ReqMarker. Site is incorrect.
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:805)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
at com.unitesk.requality.eclipse.views.actions.OpenAction.runAction(OpenAction.java:92)
at com.unitesk.requality.eclipse.views.actions.OpenAction.run(OpenAction.java:59)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:843)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298)
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.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(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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

Actions #1

Updated by Alexey Demakov over 13 years ago

  • Subject changed from При двойном клике на требование открывается окно с ошибкой в Markup Editor to При двойном клике на требование без locations открывается окно с ошибкой в Markup Editor
Actions #2

Updated by Alexey Demakov over 13 years ago

  • Assignee set to Yuriy Shekochihin

Не просто на требовании, а на требовании без locations. В методе init при этом срабатывает проверка

if (req.getLocations().size() == 0) {
// can't open document if requirement has no locations
return;
}

и до
db = ...
...
setSite(site);
выполнение не доходит. Как следствие - exception про Incorrect Site и вызов dispose, в котором происходит NPE из-за db == null

Actions #3

Updated by Yuriy Shekochihin over 13 years ago

  • Status changed from New to Resolved

Теперь не открывается )

Actions #4

Updated by Viktoria Kopach over 13 years ago

  • Status changed from Resolved to Verified
  • Detected in build changed from 0.10.58 to svn

При клике на требования без location'ов в Markup Editor ничего не открывается.

Actions #5

Updated by Alexey Khoroshilov over 13 years ago

  • Parent task set to #891
Actions #6

Updated by Viktoria Kopach over 13 years ago

  • Published in build set to 0.10.60

0.10.60 - проверено

Actions #7

Updated by Alexey Khoroshilov over 13 years ago

  • Status changed from Verified to Closed
Actions

Also available in: Atom PDF