OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000337OMNeT++IDE / NED editorpublic2011-06-02 12:252012-01-04 12:04
Reporterzbojthe 
Assigned Torhornig 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.2b2 
Target VersionFixed in Version4.2.1 
Summary0000337: Project Explorer doesn't allow opening multiple NED files in succession (on linux)
DescriptionTo reproduce:
- open a NED file by double-clicking it in Project Explorer
- then try double-clicking any other file in Project Expl -- it won't open!
- click into the NED editor, then try again opening files in Project Expl -- it will work now

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000471)
zbojthe (developer)
2011-06-02 13:35

Looks like the NED editor clears the workbench selection on startup. (first Alt+Enter says No propeties for ""; second Alt+Enter works)

Debug log:
- we tried eliminating the editorlauncher: did not help
- tried stripping down NedEditor completely: it did not help. (no text or graphical editor at all, empty init() and createPages())
- in plugin.xml, changed the class to TextEditor --> this helped!
- created a NothingEditor by subclassing from EditorPart with empty methods --> produced the same error
(0000472)
zbojthe (developer)
2011-06-02 13:38

Looks like the problem is not that NedEditor does something it's not supposed to, but rather it should do something which it doesn't.
(0000473)
zbojthe (developer)
2011-06-02 13:56

The interesting parts in the exception stack trace:

java.lang.RuntimeException: WARNING: Prevented recursive attempt to activate part org.eclipse.ui.navigator.ProjectExplorer while still in the middle of activating part org.omnetpp.ned.editor
    at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3487)
    at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3077)
...
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)
    at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1533)
    at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:2645)
...
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8168)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1238)
    at org.eclipse.swt.internal.gtk.OS._gtk_enumerate_printers(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_enumerate_printers(OS.java:9070)
    at org.eclipse.swt.printing.Printer.getPrinterList(Printer.java:91)
    at org.eclipse.gef.ui.actions.PrintAction.calculateEnabled(PrintAction.java:45)
    at org.eclipse.gef.ui.actions.WorkbenchPartAction.isEnabled(WorkbenchPartAction.java:123)
    at org.eclipse.ui.internal.handlers.HandlerAuthority.updateCommand(HandlerAuthority.java:459)
...
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
    at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99)
...
    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.Display.runDeferredEvents(Display.java:3540)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
...
(0000474)
zbojthe (developer)
2011-06-02 14:24

See eclipse bug: Bug 330165 – WARNING: Prevented recursive attempt to activate part...

Same stack trace, with Printer.getPrinterList() in the middle. GEF's PrintAction is blamed there.
(0000654)
rhornig (administrator)
2012-01-04 12:04

Implemented a workaround. Printer action is always enabled and getPrinterList() is never called.

- Issue History
Date Modified Username Field Change
2011-06-02 12:25 zbojthe New Issue
2011-06-02 13:35 zbojthe Note Added: 0000471
2011-06-02 13:38 zbojthe Note Added: 0000472
2011-06-02 13:56 zbojthe Note Added: 0000473
2011-06-02 14:24 zbojthe Note Added: 0000474
2012-01-04 12:04 rhornig Note Added: 0000654
2012-01-04 12:04 rhornig Status new => resolved
2012-01-04 12:04 rhornig Fixed in Version => 4.2.1
2012-01-04 12:04 rhornig Resolution open => fixed
2012-01-04 12:04 rhornig Assigned To => rhornig


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker