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
Assigned Torhornig 
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
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
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.
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(
    at org.eclipse.ui.internal.WorkbenchPage.requestActivation(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Shell.setActiveControl(
    at org.eclipse.swt.widgets.Control.gtk_button_press_event(
    at org.eclipse.swt.widgets.Display.windowProc(
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(
    at org.eclipse.swt.widgets.Display.eventProc(
    at org.eclipse.swt.internal.gtk.OS._gtk_enumerate_printers(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_enumerate_printers(
    at org.eclipse.swt.printing.Printer.getPrinterList(
    at org.eclipse.gef.ui.actions.PrintAction.calculateEnabled(
    at org.eclipse.gef.ui.actions.WorkbenchPartAction.isEnabled(
    at org.eclipse.ui.internal.handlers.HandlerAuthority.updateCommand(
    at org.eclipse.ui.ide.IDE.openEditor(
    at org.eclipse.ui.actions.OpenFileAction.openFile(
    at org.eclipse.swt.widgets.EventTable.sendEvent(
    at org.eclipse.swt.widgets.Widget.sendEvent(
    at org.eclipse.swt.widgets.Display.runDeferredEvents(
    at org.eclipse.swt.widgets.Display.readAndDispatch(
    at org.eclipse.ui.internal.Workbench.runEventLoop(
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.
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 - 2022 MantisBT Team
Powered by Mantis Bugtracker