Waiting within startup script
Submitted by Sunday, 18 April, 2004 - 15:50
on
Hi,
I'm trying to write a simple startup script that displays the actionbar and returns focus to the current buffer. The following code does this:
jEdit.getActiveView().actionBar();
textArea.requestFocus();
However, I can't seem to get it to execute at the right moment. I've tried a variety of ways, waiting for the view to be initialised, waiting for the buffer to load, etc., but none of it seems to work correctly.
Much appreciated,
Mohammed.
I'm trying to write a simple startup script that displays the actionbar and returns focus to the current buffer. The following code does this:
jEdit.getActiveView().actionBar();
textArea.requestFocus();
However, I can't seem to get it to execute at the right moment. I've tried a variety of ways, waiting for the view to be initialised, waiting for the buffer to load, etc., but none of it seems to work correctly.
Much appreciated,
Mohammed.