Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/templates/ContributionTemplateStore.java')
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/templates/ContributionTemplateStore.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/templates/ContributionTemplateStore.java b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/templates/ContributionTemplateStore.java
index 811f1af9892..c80f22363ae 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/templates/ContributionTemplateStore.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/templates/ContributionTemplateStore.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
@@ -37,12 +37,13 @@ import org.eclipse.jface.text.templates.persistence.TemplateStore;
import org.eclipse.ui.internal.editors.text.EditorsPlugin;
+
/**
* Manages templates. Handles reading default templates contributed via XML and
- * user-defined (or overridden) templates stored in the preferences. Clients may
- * instantiate this class.
- *
- * <p>This class will become final.</p>
+ * user-defined (or overridden) templates stored in the preferences.
+ * <p>
+ * Clients may instantiate but not subclass this class.
+ * </p>
*
* @since 3.0
*/
@@ -197,8 +198,7 @@ public class ContributionTemplateStore extends TemplateStore {
private void createTemplate(Collection map, IConfigurationElement element) {
String contextTypeId= element.getAttributeAsIs(CONTEXT_TYPE_ID);
- // no need to log failures since id and name are guaranteed by the exsd
- // specification
+ // log failures since extension point id and name are mandatory
if (contextExists(contextTypeId)) {
String id= element.getAttributeAsIs(ID);
if (isValidTemplateId(id)) {

Back to the top