13.03.02 23:50 Dirk Moebius <dmoebius@...> wrote
> On Wednesday, 13. March 2002 07:45, HaJo.Wuellner@... wrote:
> > > > I am running jedit4.0pre7 and the BufferList plugin.
> > > > The version for jedit 3.2.2 has a menu item "Bring BufferList to
> > > > front".
> > > > This action also gives the focus to the plugin so you can navigate
> > > > with the cursor keys through the list. This action is missing now.
> > > > How can I do it with a macro ?
> > > Like this:
> > > // Bring_BufferList_To_Front.bsh
> > > mgr = view.getDockableWindowManager();
> > > mgr.addDockableWindow("bufferlist");
> > > mgr.getDockable("bufferlist").requestFocusOpenFiles();
> > Sorry but this does not work for me. I tried BufferList as name too.
> The name must be in lowercase.
> Strange. It works on my system (Linux, KDE, 4.0pre6, BufferList 0.7.1).
> Any exceptions in the activity log?
> Is your BufferList docked?
Yes my BufferList is docked. When I change it to floating BufferList
gets the focus.
> > > > Is there a general way to give focus to a plugin ?
> > > No, because every dockable panel has a different first component to
> > > set focus on.
> > Doesn't it sound like a good idea to make this a function that a plugin
> > has to implement ?
> Maybe. I haven't look into the new focus API yet; it could be that
> straightforward solution for this.