public void setCheckedProfiles(List<ProfileDTO> selected) {
// now lets find the selected ProfileNodes
List<ProfileNode> selectedProfiles = new ArrayList<ProfileNode>();
Object input = profilesViewer.getInput();
if (input instanceof VersionNode) {
VersionNode node = (VersionNode) input;
for (ProfileDTO profile : selected) {
ProfileNode profileNode = node.getProfileNode(profile);
if (profileNode != null) {
selectedProfiles.add(profileNode);
}
}
}