Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » LaunchConfigurationDelegate related question
LaunchConfigurationDelegate related question [message #333347] Thu, 04 December 2008 17:00 Go to next message
Eclipse UserFriend
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.
Re: LaunchConfigurationDelegate related question [message #333360 is a reply to message #333347] Fri, 05 December 2008 10:22 Go to previous message
Eclipse UserFriend
Originally posted by: j4r0d.hotmail.com

I have found a solution, in fact the cleanest way was to extend
org.eclipse.debug.core.model.LaunchConfigurationDelegate and then implement
the getBuildOrder() method rather than simply implementing the
ILaunchConfigurationDelegate...


"Jarod Mills" <j4r0d@hotmail.com> a
Previous Topic:keybindings again: works for one user but not another
Next Topic:Finding the list of classes in a package like Package Explorer
Goto Forum:
  


Current Time: Thu Apr 25 21:12:48 GMT 2024

Powered by FUDForum. Page generated in 0.02675 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top