Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Migrating Launch Configurations
Migrating Launch Configurations [message #329442] Tue, 24 June 2008 11:33 Go to next message
Eclipse UserFriend
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] Wed, 25 June 2008 21:11 Go to previous message
Eclipse UserFriend
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: Wed May 07 18:32:17 EDT 2025

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

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

Back to the top