From: Shlomy R. <sre...@gm...> - 2009-02-10 20:29:05
|
Do you happen to use MyDoggyPlugin? I recall now that ErrorList (as well as some other plugins) register low-level AWT listeners for changes in the GUI hierarchy, and add/remove themselves from the edit bus accordingly. So, it might just as well be that the ErrorList dockable does not listen to the edit bus when you add the error. I fixed this in SVN, but I think my fix has not yet been released. And with the classic docking framework (DockableWindowManager), it should work fine without my fix as well. Shlomy On Tue, Feb 10, 2009 at 10:19 PM, Robert Schwenn <Ro...@sc...> wrote: > > There's no problem with the error list's dockable. It is docked before > the macro is invoked and the list of errors is created as expected. > There are no exceptions shown in the status bar. And the only errors in > activity.log are these: > > 21:03:56 [AWT-EventQueue-0] [error] KeyEventTranslator: Invalid key > stroke: C+e C+BACK_QUOTE > > But they don't occur every time the macro runs. > > Notice: When i run the macro twice, then the file related to the first > error is loaded and the related line is selected and underscored. But in > the error list no item is selected. So, it seems, that the macro's > actions are not executed synchronous: First the 'go to next error' > action is invoked and *later* the error list is created... > > Robert > > > > Shlomy Reinstein wrote: >> Well, I don't know what the problem is. Is the ErrorList dockable open >> and visible before you start running this script? Note that the macro >> I gave you calls 'showDockableWindow' before trying to retrieve it >> from the window manager. >> Is there an exception from this script? >> Shlomy >> >> On Mon, Feb 9, 2009 at 10:15 PM, Robert Schwenn <Ro...@sc...> wrote: >> >>> Thanks, I haven't been aware for the 'go to next error' action. This >>> does the trick when invoking it separately after the error list was >>> ready. But in the same macro it does nothing. The error list seems not >>> to be ready for this action. What could be done? >>> >>> Here's my macro. >>> >>> // Fill error list >>> import errorlist.*; >>> DefaultErrorSource errsrc = new DefaultErrorSource("DummySource"); >>> ErrorSource.registerErrorSource(errsrc); >>> >>> DefaultErrorSource.DefaultError err = new >>> DefaultErrorSource.DefaultError(errsrc, ErrorSource.ERROR, >>> "X:\\Quellen\\Excel\\GeoTools\\test_A.csv", 4, 0, 0, "Error message here"); >>> errsrc.addError(err); >>> >>> // try to select the first error => seems to do nothing! >>> VFSManager.waitForRequests(); >>> wm.getDockableWindow("error-list").nextError(); >>> >>> Robert >>> >>> >>> Shlomy Reinstein wrote: >>> >>>> I'm not sure if I correctly understand, but the ErrorList plugin >>>> provides a 'go to next error' action. I tried to see how to invoke it >>>> by assigning a toolbar button to this action, then recording a macro >>>> (using the Macros menu) of pressing this toolbar button, here's what I >>>> got (comments left out): >>>> >>>> wm.addDockableWindow("error-list"); >>>> wm.getDockableWindow("error-list").nextError(); >>>> textArea.requestFocus(); >>>> >>>> Shlomy >>>> >>>> On Sun, Feb 8, 2009 at 5:06 PM, Robert Schwenn <Ro...@sc...> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I've got some programs which in case of errors write a temporary >>>>> beanshell >>>>> script and invoke it via jedit's command line to fill the error list. >>>>> This >>>>> works perfectly. >>>>> >>>>> Now I'd like the beanshell script to activate the first error or warning >>>>> automatically (just like clicking it with the mouse), so that the related >>>>> file is opened without user interaction. How could this be done? >>>>> >>>>> Robert >>>>> >>>>> >>>>> > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > -- > ----------------------------------------------- > jEdit Developers' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-devel > |