public RunnerModelLaunchConfigurationListenerAdapter(IRunnerModel runnerModel) {
this.runnerModel = runnerModel;
}
public void launchConfigurationAdded(ILaunchConfiguration newConfiguration) {
LaunchNode launchNode = null;
ILaunchConfiguration oldLaunchConfiguration = getLaunchManager().getMovedFrom(newConfiguration);
if (oldLaunchConfiguration != null) {
launchNode = (LaunchNode) findLaunchNodeBy(oldLaunchConfiguration);
if (launchNode != null) {
launchNode.setLaunchConfiguration(newConfiguration);
return;
}
}
launchNode = new LaunchNode();
launchNode.setLaunchConfiguration(newConfiguration);
runnerModel.getDefaultCategoryNode().add(launchNode);
}