This is an interesting conundrum. For reference, see the code at https://github.com/NetLogo/NetLogo/blob/modelruns/src/main/org/nlogo/editor/Actions.scala#L46-L51
This code works as you'd like, regardless of whether you're in the main editor window or some other editor such as the command center. The mechanism by which it does this by firing off an event saying "hey, jump to this arbitrary definition." The problem is that the editor and its associated menus are banned from using Events by the depend.ddf by virtue of the fact that the editor should remain in isolation of the rest of the UI at compile time. Because the command line is an editor, when you attempt to jump to definition without raising a global event, it attempts to jump to the definition within the command line itself. Because there is no definition within the line you just made, we run into a problem. This holds true for other editors for which we would want to include the ability to jump to the definition, and switch tabs to do it. So what to do? My inclination is to take ui events and make them a top level concept. That means any action anywhere in the UI could potentially raise any event and cause some kind of global action to be taken. That's my inclination because I can't really think of another way to have the command center force a tab switch while having it's editor and associated menu completely self contained at compile time. Frank -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.