Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-08-05 10:58:15 +0000
committerEike Stepper2012-08-05 10:58:15 +0000
commitffbff4aa93d7fcdb221ede37a2852464809f87b7 (patch)
treed2482bee0893f97d17834c3ad5663bc8f8ab714e /plugins/org.eclipse.emf.cdo
parente033588a79c7ca1eaa44b0297e8ebd1794b2fbe4 (diff)
downloadcdo-ffbff4aa93d7fcdb221ede37a2852464809f87b7.tar.gz
cdo-ffbff4aa93d7fcdb221ede37a2852464809f87b7.tar.xz
cdo-ffbff4aa93d7fcdb221ede37a2852464809f87b7.zip
Simplify AbstractCDOView.getResourcePath()
Diffstat (limited to 'plugins/org.eclipse.emf.cdo')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/view/AbstractCDOView.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/view/AbstractCDOView.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/view/AbstractCDOView.java
index ba36fe8284..a53f0e71ab 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/view/AbstractCDOView.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/view/AbstractCDOView.java
@@ -884,10 +884,8 @@ public abstract class AbstractCDOView extends Lifecycle implements InternalCDOVi
private String getResourcePath(InternalCDORevision revision)
{
- EAttribute nameFeature = EresourcePackage.eINSTANCE.getCDOResourceNode_Name();
-
CDOID folderID = (CDOID)revision.data().getContainerID();
- String name = (String)revision.data().get(nameFeature, 0);
+ String name = (String)revision.data().get(EresourcePackage.Literals.CDO_RESOURCE_NODE__NAME, 0);
if (CDOIDUtil.isNull(folderID))
{
if (name == null)

Back to the top