Michael Wenz Messages: 1818 Registered: July 2009 Location: Walldorf, Germany
in your features or your feature provider you have methods
getBusinessObjectForPictogramElement that would return the domain object the
diagram element represents. It is the domain object you linked to the shape
when you cretaed it, e.g. in your add feature.
That should enable you to identify which shape you are working on. Depending
on that you might either disable delete (canDelete method in the delete
feature) the delete for specific elements or you may completely hide it
(return null in getDeleteFeature in the feature provider or false on
isAvailable in the delete feature).