Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 443802

Summary: We should be able to plugin external launchConfiguration registry
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: DeploymentAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys
Version: 6.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Malgorzata Janczarska CLA 2014-09-11 05:34:42 EDT
Each deploy plugin should be able to contribute external registry for launchConfigurations. The returned launchConfigurations should be merged with local configurations and configuration returned by other plugins.
Comment 1 Malgorzata Janczarska CLA 2014-09-11 05:42:16 EDT
Work in progress pushed to branch Bug443802. To return the list of launch configurations you should add this function to the deploy plugin:

getLaunchConfigurations: function(project){
			return [{conf1}, {conf2}];
		}

Returning the list of objects in the same format as local launchConfiguration.
Comment 2 Malgorzata Janczarska CLA 2014-09-11 11:47:11 EDT
Pushed another change:
1. getLaunchConfigurations should now return a list of object in identical format as the ToSave param
2. if deploy method saved the launch configuration in its local registry you should return Saved param instead ToSave (same format)
Comment 3 Malgorzata Janczarska CLA 2014-10-01 08:32:59 EDT
API request change:

getLaunchConfigurations: function(project, existingLaunchConfigurations){
			return [{conf1}, {conf2}];
		}

This method will also get a list of existing launchConfigurations and return merged list. Methods will be called chained.
Comment 4 Malgorzata Janczarska CLA 2014-10-01 11:58:32 EDT
>getLaunchConfigurations: function(project, existingLaunchConfigurations){
>			return [{conf1}, {conf2}];
>		}

This change is done.