EObject eObject = (EObject) obj;
editingDomain = AdapterFactoryEditingDomain.getEditingDomainFor(eObject);
if (editingDomain != null) {
deleteEntryCommand = DeleteCommand.create(editingDomain, Collections.singletonList(eObject));
if (eObject instanceof DestinationDataStoreEntryImpl) {
DestinationData destinationData = ((DestinationDataStoreEntryImpl)eObject).getValue();
removeValueCommand = RemoveCommand.create(editingDomain, destinationData.eContainer(), RfcPackage.Literals.DESTINATION_DATA_STORE__DESTINATION_DATA, Collections.singletonList(destinationData));
} else if (eObject instanceof ServerDataStoreEntryImpl) {
ServerData serverData = ((ServerDataStoreEntryImpl)eObject).getValue();
removeValueCommand = RemoveCommand.create(editingDomain, serverData.eContainer(), RfcPackage.Literals.SERVER_DATA_STORE__SERVER_DATA, Collections.singletonList(serverData));
}
if (canDelete(selection)) {