}</BUG>
}
}
setEnabled(canWork);
}
<BUG>@Override
protected PropertiesWizard getPropertiesWizard(
IRepositoryViewObject object, IPath path) {</BUG>
return new EditRouteResourcePropertiesWizard(object, path, getNeededVersion() == null);
}

}
public void init(TreeViewer viewer, IStructuredSelection selection) {
boolean canWork = selection.size() == 1;
if (canWork) {
Object o = ((IStructuredSelection) selection).getFirstElement();
if (o instanceof IRepositoryNode) {
final IRepositoryNode node = (IRepositoryNode) o;
canWork = node.getType() == ENodeType.REPOSITORY_ELEMENT
&& node.getObjectType() == CamelRepositoryNodeType.repositoryRouteResourceType
&& node.getObject().getRepositoryStatus() != ERepositoryStatus.DELETED
&& isLastVersion(node);
}
}
setEnabled(canWork);
