LaunchConfigurationDelegate related question [message #333347] |
Thu, 04 December 2008 17:00 |
Eclipse User |
|
|
|
Originally posted by: j4r0d.hotmail.com
Hello,
I have created a plugin based on emf/gef which is capable to edit then run
some java code on a specific embedded Java Machine.
I manage to get things to work, however I am having a problem when the state
of my editor is dirty and I try to run a launch configuration. The popup
"Save and launch" does not show up and the program is being executed without
checking the state of the editor. At the moment, I just have implemented the
launchConfigurationType extension, where I have implemented a delegate (type
ILaunchConfigurationDelegate).
In a first time I have tried to show my own popup message just like the
"Save and launch" does, and it seems to work, however when I'm triggering
the doSave() method on each dirty editors it seems that the projects are
built too late, once the current launch has finished... this is the problem.
What can I do in order to wait for the build operation to be complete and
then end up with the launch method?
I found out that the class SaveScopeResourcesHandler is responsible for
showing up the "real" popup. But here I'm not getting the part of how am I
supposed to register this IStatusHandler? Should I implement another
extension? Do I simply need to trigger an exception in the launch() method
which contains a specific code in its status?
Thanks in advance for your help,
--
J.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02527 seconds