Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Migrating Launch Configurations
Migrating Launch Configurations [message #329442] Tue, 24 June 2008 15:33 Go to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi,

I had to change the id of my launchConfigurationType extension to
something different but I still need to be able to migrate launch
configurations with the old id.

I've found that this is doable using
ILaunchConfigurationMigrationDelegate. What I've done is I've added
another launchConfigurationType that has the old id and set its
migrationDelegate attribute to my class that implements the interface
above.

Now, in the migrate(ILaunchConfiguration candidate) method I need to
change the type of the configuration to the new one. I'm able to get a
reference to the new launch configuration type via

ILaunchConfigurationType type = manager.getLaunchConfigurationType(newType);

but I can't seem to find a way to set the new type to the candidate
configuration (e.g. something like candidate.setType(newType);). Any
hints would be greatly appreciated.

(I'm using Eclipse 3.1.1.1 on WinXP)

Cheers,
Dimitrios
Re: Migrating Launch Configurations [message #329487 is a reply to message #329442] Thu, 26 June 2008 01:11 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Dimitrios Kolovos wrote:
> Hi,
>
> I had to change the id of my launchConfigurationType extension to
> something different but I still need to be able to migrate launch
> configurations with the old id.
>
> I've found that this is doable using
> ILaunchConfigurationMigrationDelegate. What I've done is I've added
> another launchConfigurationType that has the old id and set its
> migrationDelegate attribute to my class that implements the interface
> above.
>
> Now, in the migrate(ILaunchConfiguration candidate) method I need to
> change the type of the configuration to the new one. I'm able to get a
> reference to the new launch configuration type via
>
> ILaunchConfigurationType type =
> manager.getLaunchConfigurationType(newType);
>
> but I can't seem to find a way to set the new type to the candidate
> configuration (e.g. something like candidate.setType(newType);). Any
> hints would be greatly appreciated.
>
> (I'm using Eclipse 3.1.1.1 on WinXP)
That should read 3.3.1.1
>
> Cheers,
> Dimitrios
Previous Topic:programmatically call Import->Existing projects into workspace
Next Topic:Java returned: 13
Goto Forum:
  


Current Time: Tue Jul 16 06:30:38 GMT 2024

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

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

Back to the top