[455868] Customizing label text for DestructionOccurrenceSpecification.
diff --git a/plugins/org.eclipse.uml2.uml.edit-feature/feature.xml b/plugins/org.eclipse.uml2.uml.edit-feature/feature.xml
index 79f279e..78b5df7 100644
--- a/plugins/org.eclipse.uml2.uml.edit-feature/feature.xml
+++ b/plugins/org.eclipse.uml2.uml.edit-feature/feature.xml
@@ -2,7 +2,7 @@
<feature
id="org.eclipse.uml2.uml.edit"
label="%feature.label"
- version="5.0.0.qualifier"
+ version="5.0.2.qualifier"
provider-name="%feature.provider-name"
image="eclipse_update_120.jpg"
license-feature="org.eclipse.uml2.license"
@@ -13,7 +13,7 @@
</description>
<copyright url="http://www.eclipse.org/legal/epl-v10.html">
- Copyright (c) 2003, 2013 IBM Corporation, Embarcadero Technologies, CEA, and others.
+ Copyright (c) 2003, 2014 IBM Corporation, Embarcadero Technologies, CEA, and others.
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
diff --git a/plugins/org.eclipse.uml2.uml.edit/META-INF/MANIFEST.MF b/plugins/org.eclipse.uml2.uml.edit/META-INF/MANIFEST.MF
index 8627056..2bc329c 100644
--- a/plugins/org.eclipse.uml2.uml.edit/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.uml2.uml.edit/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.uml2.uml.edit; singleton:=true
-Bundle-Version: 5.0.0.qualifier
+Bundle-Version: 5.0.2.qualifier
Bundle-ClassPath: .
Bundle-Activator: org.eclipse.uml2.uml.edit.UMLEditPlugin$Implementation
Bundle-Vendor: %providerName
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/DestructionOccurrenceSpecificationItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/DestructionOccurrenceSpecificationItemProvider.java
index 8af6881..1bf487c 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/DestructionOccurrenceSpecificationItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/DestructionOccurrenceSpecificationItemProvider.java
@@ -7,7 +7,7 @@
*
* Contributors:
* Kenn Hussey (CEA) - initial API and implementation
- * Kenn Hussey (CEA) - 414970
+ * Kenn Hussey (CEA) - 414970, 455868
*
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -90,14 +90,13 @@
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
+ * @generated NOT
*/
@Override
public String getText(Object object) {
- String label = ((DestructionOccurrenceSpecification) object).getName();
- return label == null || label.length() == 0
- ? getString("_UI_DestructionOccurrenceSpecification_type") : //$NON-NLS-1$
- getString("_UI_DestructionOccurrenceSpecification_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ return appendLabel(
+ appendType(appendKeywords(new StringBuffer(), object),
+ "_UI_DestructionOccurrenceSpecification_type"), object).toString(); //$NON-NLS-1$
}
/**