From 8df47373b8e9e828b9f9fc92e8c7d2e83d4aecb1 Mon Sep 17 00:00:00 2001 From: Arthur Daussy Date: Mon, 10 Mar 2014 16:50:29 +0100 Subject: [PATCH] Correct typo error on IMPL_CLASS_DESCRIPTOR_ATTR in DescriptorRegistryEventListener Change-Id: I20a5e5d53a0c89262cc842c8cd0986f28fc5d335 Signed-off-by: Arthur Daussy --- .../internal/extension/impl/DescriptorRegistryEventListener.java | 6 +++--- .../emf/compare/rcp/internal/extension/impl/ItemDescriptor.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/extension/impl/DescriptorRegistryEventListener.java b/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/extension/impl/DescriptorRegistryEventListener.java index 1a53b6958..a66edbbc1 100644 --- a/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/extension/impl/DescriptorRegistryEventListener.java +++ b/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/extension/impl/DescriptorRegistryEventListener.java @@ -34,7 +34,7 @@ public class DescriptorRegistryEventListener extends AbstractRegistryEventLis public static final String DESCRITPION_DESCRIPTOR_ATTR = "description"; //$NON-NLS-1$ /** Engine implementation class attribute of extension point. */ - public static final String IMPL_CLASS_DESCRIPTPOR_ATTR = "impl"; //$NON-NLS-1$ + public static final String IMPL_CLASS_DESCRIPTOR_ATTR = "impl"; //$NON-NLS-1$ /** Rank attribute of extension point. */ public static final String RANK_DESCRIPTOR_ATTR = "ranking"; //$NON-NLS-1$ @@ -79,8 +79,8 @@ public class DescriptorRegistryEventListener extends AbstractRegistryEventLis protected boolean validateExtensionElement(IConfigurationElement element) { final boolean ret; if (TAG_DESCRIPTOR.equals(element.getName())) { - if (element.getAttribute(IMPL_CLASS_DESCRIPTPOR_ATTR) == null) { - logMissingAttribute(element, IMPL_CLASS_DESCRIPTPOR_ATTR); + if (element.getAttribute(IMPL_CLASS_DESCRIPTOR_ATTR) == null) { + logMissingAttribute(element, IMPL_CLASS_DESCRIPTOR_ATTR); ret = false; } else if (element.getAttribute(DescriptorRegistryEventListener.LABEL_DESCRIPTOR_ATTR) == null) { logMissingAttribute(element, DescriptorRegistryEventListener.LABEL_DESCRIPTOR_ATTR); diff --git a/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/extension/impl/ItemDescriptor.java b/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/extension/impl/ItemDescriptor.java index 3a6e4da7f..82c98ad4f 100644 --- a/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/extension/impl/ItemDescriptor.java +++ b/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/extension/impl/ItemDescriptor.java @@ -65,7 +65,7 @@ public class ItemDescriptor extends AbstractItemDescriptor { T result = null; try { result = (T)config - .createExecutableExtension(DescriptorRegistryEventListener.IMPL_CLASS_DESCRIPTPOR_ATTR); + .createExecutableExtension(DescriptorRegistryEventListener.IMPL_CLASS_DESCRIPTOR_ATTR); } catch (CoreException e) { Throwables.propagate(e); } -- 2.11.4.GIT