Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2008-01-08 12:52:17 -0500
committerpelder2008-01-08 12:52:17 -0500
commite39141c5d47035d1f8c6d0b3ad22ec0875747497 (patch)
tree358da6a95f559a6fc4c90cd159d22c9f561199f2
parent21a16b3356053ce7ac6dfdf9f6d6774861149f21 (diff)
downloadorg.eclipse.jet-e39141c5d47035d1f8c6d0b3ad22ec0875747497.tar.gz
org.eclipse.jet-e39141c5d47035d1f8c6d0b3ad22ec0875747497.tar.xz
org.eclipse.jet-e39141c5d47035d1f8c6d0b3ad22ec0875747497.zip
[214639] Error log entries: Executable extension definition for "tagFactory" not found.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/ExtensionTagLibraryImpl.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/ExtensionTagLibraryImpl.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/ExtensionTagLibraryImpl.java
index 689bc78..6949963 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/ExtensionTagLibraryImpl.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/ExtensionTagLibraryImpl.java
@@ -39,6 +39,8 @@ import org.eclipse.jet.taglib.TagLibrary;
public class ExtensionTagLibraryImpl implements TagLibrary
{
+ private static final String TAG_FACTORY_ATTRIBUTE = "tagFactory"; //$NON-NLS-1$
+
private static final String DEPRECATED__ATTR = "deprecated"; //$NON-NLS-1$
private static final String STANDARD_PREFIX__ATTR = "standardPrefix"; //$NON-NLS-1$
@@ -88,14 +90,11 @@ public class ExtensionTagLibraryImpl implements TagLibrary
private static final String[] EMPTY_TAGNAME_ARRAY = new String [0];
- private final IConfigurationElement configElement;
-
private final TagInstanceFactory tagInstanceFactory;
public ExtensionTagLibraryImpl(String id, IConfigurationElement configElement)
{
this.id = id;
- this.configElement = configElement;
deprecated = Boolean.valueOf(configElement.getAttribute(DEPRECATED__ATTR)).booleanValue();
@@ -121,7 +120,9 @@ public class ExtensionTagLibraryImpl implements TagLibrary
TagInstanceFactory factory = null;
try
{
- factory = (TagInstanceFactory)configElement.createExecutableExtension("tagFactory"); //$NON-NLS-1$
+ if(configElement.getAttribute(TAG_FACTORY_ATTRIBUTE) != null) {
+ factory = (TagInstanceFactory)configElement.createExecutableExtension(TAG_FACTORY_ATTRIBUTE);
+ }
}
catch (CoreException e)
{

Back to the top