[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jdt-ui-dev] Getting the RunLastAction Delegate
|
Hi,
I am trying to write a plugin where I need :
[1] to be able to run the last action (basically run the program with the
previously saved settings)
[2] to be notified when the run button is pressed (basically when the
program gets executed)
The problem is I am trying really hard to get a handle on the action
delegate, but am unable to do so.. I also need to know when the run button
gets pressed, for some extra processing.
I had an approach working in M1, but the architecture seems to have
changed since then.. I would get the toolbar and all the buttons, find the
ToolItem corresponding to "Run" - and add a listener - to find when the run
button got pressed. I could also get the RunAction associated with this
ToolItem, and fire it at will.
But as I mentioned, I am unable to do this in F3. Also, I think simpler
approaches should be possible, but I have probably missed something.
I would be grateful if someone can point me to the relevant classes that
I should examine - or suggest any alternative.
Thank you very much. And thanks for making this great product.
Regards,
Somik