return composite;
}
private void viewer_selectionChanged(ISelection selection) {
if (selection instanceof StructuredSelection && !selection.isEmpty()) {
BorderType type = (BorderType) ((StructuredSelection) selection).getFirstElement();
if (borders.containsKey(type)) {
border = borders.get(type);
} else {
border = type.createBorder();
borders.put(type, border);
}
propertyPage.setPropertySourceProvider(null);
if (border != null) {
propertyPage.selectionChanged(null, createSelection(border));
propertyPage.setPropertySourceProvider(type.getPropertySourceProvider(border));
}
}
}