/******************************************************************************* * Copyright (c) 2008-2011 Chair for Applied Software Engineering, * Technische Universitaet Muenchen. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: ******************************************************************************/ package org.eclipse.emf.emfstore.internal.server.model.versioning.operations.provider; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EStructuralFeature; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ViewerNotification; import org.eclipse.emf.emfstore.internal.common.model.ModelPackage; import org.eclipse.emf.emfstore.internal.common.model.util.ModelUtil; import org.eclipse.emf.emfstore.internal.server.model.ModelFactory; import org.eclipse.emf.emfstore.internal.server.model.accesscontrol.AccesscontrolFactory; import org.eclipse.emf.emfstore.internal.server.model.accesscontrol.roles.RolesFactory; import org.eclipse.emf.emfstore.internal.server.model.url.UrlFactory; import org.eclipse.emf.emfstore.internal.server.model.versioning.VersioningFactory; import org.eclipse.emf.emfstore.internal.server.model.versioning.events.EventsFactory; import org.eclipse.emf.emfstore.internal.server.model.versioning.events.server.ServerFactory; import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.ContainmentType; import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.CreateDeleteOperation; import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationGroup; import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationsFactory; import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.OperationsPackage; import org.eclipse.emf.emfstore.internal.server.model.versioning.operations.ReferenceOperation; /** * This is the item provider adapter for a * {@link org.eclipse.emf.emfstore.internal.server.model.versioning.operations.CreateDeleteOperation} object. * <!-- begin-user-doc * --> <!-- end-user-doc --> * * @generated */ public class CreateDeleteOperationItemProvider extends AbstractOperationItemProvider { /** * This constructs an instance from a factory and a notifier. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ public CreateDeleteOperationItemProvider(AdapterFactory adapterFactory) { super(adapterFactory); } /** * This returns the property descriptors for the adapted class. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addDeletePropertyDescriptor(object); } return itemPropertyDescriptors; } /** * This adds a property descriptor for the Delete feature. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ protected void addDeletePropertyDescriptor(Object object) { itemPropertyDescriptors .add(createItemPropertyDescriptor( ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CreateDeleteOperation_delete_feature"), //$NON-NLS-1$ getString( "_UI_PropertyDescriptor_description", "_UI_CreateDeleteOperation_delete_feature", "_UI_CreateDeleteOperation_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ OperationsPackage.Literals.CREATE_DELETE_OPERATION__DELETE, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); } /** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT); childrenFeatures.add(OperationsPackage.Literals.CREATE_DELETE_OPERATION__SUB_OPERATIONS); childrenFeatures.add(OperationsPackage.Literals.CREATE_DELETE_OPERATION__EOBJECT_TO_ID_MAP); } return childrenFeatures; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Override protected EStructuralFeature getChildFeature(Object object, Object child) { // Check the type of the specified child object and return the proper feature to use for // adding (see {@link AddCommand}) it as a child. return super.getChildFeature(object, child); } /** * @see org.eclipse.emf.emfstore.internal.server.model.versioning.operations.provider.AbstractOperationItemProvider#getChildren(java.lang.Object) */ @Override public Collection<?> getChildren(Object object) { if (object instanceof CreateDeleteOperation) { final CreateDeleteOperation operation = (CreateDeleteOperation) object; final ArrayList<Object> ret = new ArrayList<Object>(); ret.add(operation.getModelElementId()); final List<ReferenceOperation> subOps = operation.getSubOperations(); if (subOps.size() > 0) { final OperationGroup operationGroup = OperationsFactory.eINSTANCE.createOperationGroup(); if (operation.isDelete()) { operationGroup.setName(Messages.CreateDeleteOperationItemProvider_DeletedCrossReferences); } else { operationGroup.setName(Messages.CreateDeleteOperationItemProvider_CreatedCrossReferences); } operationGroup.getOperations().addAll(subOps); ret.add(operationGroup); } return ret; } return super.getChildren(object); } /** * This returns CreateDeleteOperation.gif. <!-- begin-user-doc --> <!-- * end-user-doc --> * * @generated NOT * * @param object * the object for which to provide the label image * @return the image used to label the object */ @Override public Object getImage(Object object) { final CreateDeleteOperation op = (CreateDeleteOperation) object; Object image = null; if (op.isDelete()) { image = getResourceLocator().getImage("full/obj16/DeleteOperation.png"); //$NON-NLS-1$ } else { image = getResourceLocator().getImage("full/obj16/CreateOperation.png"); //$NON-NLS-1$ } return overlayImage(object, image); } /** * This returns the label text for the adapted class. <!-- begin-user-doc * --> <!-- end-user-doc --> * * @generated NOT * @param object * the object to be described * @return the description of the given object */ @Override public String getText(Object object) { if (object instanceof CreateDeleteOperation) { final CreateDeleteOperation op = (CreateDeleteOperation) object; final EObject modelElement = op.getModelElement(); final int childrenCount = ModelUtil.getAllContainedModelElements(modelElement, false).size(); String description; final StringBuilder stringBuilder = new StringBuilder(); // stringBuilder.append(modelElement.eClass().getName()); stringBuilder.append(getModelElementName(op.getModelElementId())); final String elementClassAndName = stringBuilder.toString(); if (op.isDelete()) { description = Messages.CreateDeleteOperationItemProvider_Text_Deleted + elementClassAndName; } else { description = Messages.CreateDeleteOperationItemProvider_Text_Created + elementClassAndName; } if (childrenCount > 0) { description += Messages.CreateDeleteOperationItemProvider_Text_Including + childrenCount + Messages.CreateDeleteOperationItemProvider_Text_Siblings; } final EList<ReferenceOperation> subOperations = op.getSubOperations(); final int subOperationCount = subOperations.size(); if (op.isDelete() && subOperationCount > 0) { final ReferenceOperation referenceOperation = subOperations.get(subOperationCount - 1); if (referenceOperation.getContainmentType().equals(ContainmentType.CONTAINMENT)) { description += Messages.CreateDeleteOperationItemProvider_Text_From + getModelElementClassAndName(referenceOperation.getModelElementId()); } } return description; } return super.getText(object); } /** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> <!-- * end-user-doc --> * * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(CreateDeleteOperation.class)) { case OperationsPackage.CREATE_DELETE_OPERATION__DELETE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; case OperationsPackage.CREATE_DELETE_OPERATION__MODEL_ELEMENT: case OperationsPackage.CREATE_DELETE_OPERATION__SUB_OPERATIONS: case OperationsPackage.CREATE_DELETE_OPERATION__EOBJECT_TO_ID_MAP: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); } /** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s * describing the children that can be created under this object. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createCompositeOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createCreateDeleteOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createAttributeOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createMultiAttributeOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createMultiAttributeSetOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createMultiAttributeMoveOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createSingleReferenceOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createMultiReferenceSetOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createMultiReferenceOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createMultiReferenceMoveOperation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createOperationId())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createOperationGroup())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.createModelElementGroup())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, OperationsFactory.eINSTANCE.create(OperationsPackage.Literals.EOBJECT_TO_MODEL_ELEMENT_ID_MAP))); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createProjectHistory())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createProjectInfo())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createSessionId())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createServerSpace())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createProjectId())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createVersionInfo())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createClientVersionInfo())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createFileIdentifier())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ModelFactory.eINSTANCE.createAuthenticationInformation())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createTagVersionSpec())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createDateVersionSpec())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createPrimaryVersionSpec())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createLogMessage())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createChangePackage())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createHistoryInfo())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createRangeQuery())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createPathQuery())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createModelElementQuery())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createVersion())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createHeadVersionSpec())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createVersionProperty())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createBranchVersionSpec())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createBranchInfo())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createAncestorVersionSpec())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createPagedUpdateVersionSpec())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createFileBasedChangePackage())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createOperationProxy())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createChangePackageEnvelope())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, VersioningFactory.eINSTANCE.createChangePackageProxy())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, EventsFactory.eINSTANCE.createEvent())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, ServerFactory.eINSTANCE.createProjectUpdatedEvent())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, AccesscontrolFactory.eINSTANCE.createACOrgUnit())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, AccesscontrolFactory.eINSTANCE.createACUser())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, AccesscontrolFactory.eINSTANCE.createACGroup())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, AccesscontrolFactory.eINSTANCE.createACOrgUnitId())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, AccesscontrolFactory.eINSTANCE.createOrgUnitProperty())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, RolesFactory.eINSTANCE.createReaderRole())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, RolesFactory.eINSTANCE.createWriterRole())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, RolesFactory.eINSTANCE.createProjectAdminRole())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, RolesFactory.eINSTANCE.createServerAdmin())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, UrlFactory.eINSTANCE.createServerUrl())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, UrlFactory.eINSTANCE.createProjectUrlFragment())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, UrlFactory.eINSTANCE.createModelElementUrlFragment())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, UrlFactory.eINSTANCE.createModelElementUrl())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, org.eclipse.emf.emfstore.internal.common.model.ModelFactory.eINSTANCE.createProject())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, org.eclipse.emf.emfstore.internal.common.model.ModelFactory.eINSTANCE.createModelElementId())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, org.eclipse.emf.emfstore.internal.common.model.ModelFactory.eINSTANCE.createModelVersion())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, org.eclipse.emf.emfstore.internal.common.model.ModelFactory.eINSTANCE.createEMFStoreProperty())); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, org.eclipse.emf.emfstore.internal.common.model.ModelFactory.eINSTANCE .create(ModelPackage.Literals.PROPERTY_MAP_ENTRY))); newChildDescriptors.add(createChildParameter(OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT, org.eclipse.emf.emfstore.internal.common.model.ModelFactory.eINSTANCE.createPropertyStringValue())); newChildDescriptors.add(createChildParameter( OperationsPackage.Literals.CREATE_DELETE_OPERATION__SUB_OPERATIONS, OperationsFactory.eINSTANCE.createSingleReferenceOperation())); newChildDescriptors.add(createChildParameter( OperationsPackage.Literals.CREATE_DELETE_OPERATION__SUB_OPERATIONS, OperationsFactory.eINSTANCE.createMultiReferenceSetOperation())); newChildDescriptors.add(createChildParameter( OperationsPackage.Literals.CREATE_DELETE_OPERATION__SUB_OPERATIONS, OperationsFactory.eINSTANCE.createMultiReferenceOperation())); newChildDescriptors.add(createChildParameter( OperationsPackage.Literals.CREATE_DELETE_OPERATION__EOBJECT_TO_ID_MAP, OperationsFactory.eINSTANCE.create(OperationsPackage.Literals.EOBJECT_TO_MODEL_ELEMENT_ID_MAP))); } /** * This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ @Override public String getCreateChildText(Object owner, Object feature, Object child, Collection<?> selection) { final Object childFeature = feature; final Object childObject = child; final boolean qualify = childFeature == OperationsPackage.Literals.CREATE_DELETE_OPERATION__MODEL_ELEMENT || childFeature == OperationsPackage.Literals.CREATE_DELETE_OPERATION__SUB_OPERATIONS || childFeature == OperationsPackage.Literals.CREATE_DELETE_OPERATION__EOBJECT_TO_ID_MAP; if (qualify) { return getString("_UI_CreateChild_text2", //$NON-NLS-1$ new Object[] { getTypeText(childObject), getFeatureText(childFeature), getTypeText(owner) }); } return super.getCreateChildText(owner, feature, child, selection); } }