Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jface.text/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.text/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.text/pom.xml2
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/templates/TemplateContext.java13
4 files changed, 15 insertions, 4 deletions
diff --git a/org.eclipse.jface.text/META-INF/MANIFEST.MF b/org.eclipse.jface.text/META-INF/MANIFEST.MF
index 2a8c18e6b..8255a562a 100644
--- a/org.eclipse.jface.text/META-INF/MANIFEST.MF
+++ b/org.eclipse.jface.text/META-INF/MANIFEST.MF
@@ -34,7 +34,7 @@ Export-Package:
org.eclipse.jface.text.templates.persistence
Require-Bundle:
org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)",
- org.eclipse.text;bundle-version="[3.5.0,4.0.0)";visibility:=reexport,
+ org.eclipse.text;bundle-version="[3.7.100,4.0.0)";visibility:=reexport,
org.eclipse.swt;bundle-version="[3.107.0,4.0.0)",
org.eclipse.jface;bundle-version="[3.5.0,4.0.0)"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
diff --git a/org.eclipse.text/META-INF/MANIFEST.MF b/org.eclipse.text/META-INF/MANIFEST.MF
index b10ea24cc..92161117d 100644
--- a/org.eclipse.text/META-INF/MANIFEST.MF
+++ b/org.eclipse.text/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.text
-Bundle-Version: 3.7.0.qualifier
+Bundle-Version: 3.7.100.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package:
diff --git a/org.eclipse.text/pom.xml b/org.eclipse.text/pom.xml
index 0f9e7e0c1..db464a6c2 100644
--- a/org.eclipse.text/pom.xml
+++ b/org.eclipse.text/pom.xml
@@ -18,6 +18,6 @@
</parent>
<groupId>org.eclipse.text</groupId>
<artifactId>org.eclipse.text</artifactId>
- <version>3.7.0-SNAPSHOT</version>
+ <version>3.7.100-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/templates/TemplateContext.java b/org.eclipse.text/src/org/eclipse/jface/text/templates/TemplateContext.java
index 321ed5eaa..ab7d959ef 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/templates/TemplateContext.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/templates/TemplateContext.java
@@ -16,6 +16,8 @@ package org.eclipse.jface.text.templates;
import java.util.HashMap;
import java.util.Map;
+import org.eclipse.core.runtime.IAdaptable;
+
import org.eclipse.jface.text.BadLocationException;
/**
@@ -27,7 +29,7 @@ import org.eclipse.jface.text.BadLocationException;
*
* @since 3.0
*/
-public abstract class TemplateContext {
+public abstract class TemplateContext implements IAdaptable {
/** The context type of this context */
private final TemplateContextType fContextType;
@@ -117,5 +119,14 @@ public abstract class TemplateContext {
* in this context, <code>false</code> otherwise
*/
public abstract boolean canEvaluate(Template template);
+
+ /**
+ * Default implementation does nothing, clients can override to provide adapters.
+ * {@inheritDoc}
+ */
+ @Override
+ public <T> T getAdapter(Class<T> adapter) {
+ return null;
+ }
}

Back to the top