*/
public boolean provides(IOperation operation) {
if (!(operation instanceof CreateDecoratorsOperation)) {
return false;
}
IDecoratorTarget decoratorTarget = ((CreateDecoratorsOperation) operation)
.getDecoratorTarget();
View view = (View) decoratorTarget.getAdapter(View.class);
return view != null
&& OntoUML.diagram.edit.parts.ContainerEditPart.MODEL_ID
.equals(OntoUML.diagram.part.OntoUMLVisualIDRegistry
.getModelID(view));
}