Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteicher2004-03-19 10:49:08 +0000
committerteicher2004-03-19 10:49:08 +0000
commitfa2f7a70c657eb42555ba5521c90ec930b9543de (patch)
tree3d58baee80cdaba94b1a074f7579b48bdfd886d7 /org.eclipse.ui.examples.javaeditor/doc-html/ui_templateeditor_ex.html
parentb85ebfebd841a945be7ffa33a718394da2f517b2 (diff)
downloadeclipse.platform.text-fa2f7a70c657eb42555ba5521c90ec930b9543de.tar.gz
eclipse.platform.text-fa2f7a70c657eb42555ba5521c90ec930b9543de.tar.xz
eclipse.platform.text-fa2f7a70c657eb42555ba5521c90ec930b9543de.zip
added template editor example to javaeditor example plug-in
Diffstat (limited to 'org.eclipse.ui.examples.javaeditor/doc-html/ui_templateeditor_ex.html')
-rw-r--r--org.eclipse.ui.examples.javaeditor/doc-html/ui_templateeditor_ex.html69
1 files changed, 69 insertions, 0 deletions
diff --git a/org.eclipse.ui.examples.javaeditor/doc-html/ui_templateeditor_ex.html b/org.eclipse.ui.examples.javaeditor/doc-html/ui_templateeditor_ex.html
new file mode 100644
index 000000000..68ed57db7
--- /dev/null
+++ b/org.eclipse.ui.examples.javaeditor/doc-html/ui_templateeditor_ex.html
@@ -0,0 +1,69 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta name="GENERATOR" content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]">
+ <title>Desktop - Template Editor Example</title>
+</head>
+<body>
+
+<h2>
+<b>Example - Template Editor</b></h2>
+
+<h3>
+Introduction</h3>
+The Template Editor example demonstrates how to add template support to an editor. The example is
+based on the PDE example editor project that can be created using the new project wizard. The editor
+is a simple XML editor; it is only for demonstration purposes.
+<h3>
+<b>Features demonstrated in the template editor</b></h3>
+
+<ul>
+<li>
+creating a template context for an editor</li>
+
+<li>
+setting up a content assist processor that will propose template completions</li>
+
+<li>
+contributing a context type and variable resolvers to an editor via plugin.xml</li>
+
+<li>
+contributing templates to a context type via plugin.xml</li>
+
+<li>
+adding a preference page for handling templates, both contributed and user-added</li>
+
+</ul>
+
+<h3>
+Features not demonstrated</h3>
+
+<ul>
+<li>
+template formatting</li>
+</ul>
+
+<h3>
+Code organization of the template editor example</h3>
+The example code is organized in three packages:
+<ul>
+<li>
+<tt>org.eclipse.ui.examples.templateeditor.editors</tt> contains all the editor specific
+classes. See <code>XMLConfiguration</code> to see how the <code>TemplateCompletionProcessor</code>
+is added in the <code>getContentAssistant</code> method.</li>
+
+<li>
+<tt>org.eclipse.ui.examples.templateeditor.preferences</tt> contains the contributed template
+preference page.</li>
+
+<li>
+<tt>org.eclipse.ui.examples.templateeditor.template</tt> contains the example context type, the
+completion processor and the variable resolver that is contributed via plugin.xml.</li>
+</ul>
+
+<br>&nbsp;
+<p><a href="hglegal2003.htm"><img src="ngibmcpy2003.gif" alt="Copyright IBM Corporation and others 2000, 2003" border="0" width="324" height="14"></a>
+</p>
+</body>
+</html>

Back to the top