super.setInput(part, selection);
// remove property listener on old model
AbstractObject oldModel = getModel();
if (oldModel != null) {
oldModel.removePropertyChangeListener(this);
}
if (selection instanceof IStructuredSelection) {
Object object = ((IStructuredSelection) selection)
.getFirstElement();