.getString(PreferenceConstants.RETRIEVE_PATTERN));
}
setup.setRetrieveSetup(retrieveSetup);
RetrieveSetupManager manager = IvyPlugin.getDefault().getRetrieveSetupManager();
IProject project = conf.getJavaProject().getProject();
List retrieveSetups;
try {
retrieveSetups = manager.getSetup(project);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return;
}
retrieveSetups.add(setup);
try {
manager.save(project, retrieveSetups);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}