Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2010-11-02 16:43:58 -0400
committerpelder2010-11-02 16:43:58 -0400
commit4c6c9ff3bb1d821f73ed3c3703c545a99d6c07fc (patch)
tree7b53d650e546f121613c0e080ea89f3789f177b2 /transforms/org.eclipse.jet.transforms.tagfactory
parent15ccba1e74a55349bdce44c7e99858795f7925b1 (diff)
downloadorg.eclipse.jet-4c6c9ff3bb1d821f73ed3c3703c545a99d6c07fc.tar.gz
org.eclipse.jet-4c6c9ff3bb1d821f73ed3c3703c545a99d6c07fc.tar.xz
org.eclipse.jet-4c6c9ff3bb1d821f73ed3c3703c545a99d6c07fc.zip
This commit was manufactured by cvs2svn to create tag 'v201011021646'.v201011021646
Diffstat (limited to 'transforms/org.eclipse.jet.transforms.tagfactory')
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/.classpath7
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/.project29
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/.settings/org.eclipse.core.resources.prefs4
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/META-INF/MANIFEST.MF9
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/build.properties9
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/plugin.xml20
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/sample.xml3
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/templates/dump.jet2
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/templates/main.jet45
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet56
10 files changed, 0 insertions, 184 deletions
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/.classpath b/transforms/org.eclipse.jet.transforms.tagfactory/.classpath
deleted file mode 100644
index d4a97a3..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="jet2java"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/.project b/transforms/org.eclipse.jet.transforms.tagfactory/.project
deleted file mode 100644
index 0c2ade2..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/.project
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jet.transforms.tagfactory</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jet.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.jet.jet2Nature</nature>
- </natures>
-</projectDescription>
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/.settings/org.eclipse.core.resources.prefs b/transforms/org.eclipse.jet.transforms.tagfactory/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 303a6b7..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-#Sat Apr 26 10:30:38 EDT 2008
-eclipse.preferences.version=1
-encoding//jet2java/org/eclipse/jet/compiled/_jet_tagFactoryjava.java=UTF-8
-encoding//templates/tagLibrary/tagFactory.java.jet=UTF-8
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/META-INF/MANIFEST.MF b/transforms/org.eclipse.jet.transforms.tagfactory/META-INF/MANIFEST.MF
deleted file mode 100644
index f14b82f..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,9 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: org.eclipse.jet.transforms.tagfactory
-Bundle-SymbolicName: org.eclipse.jet.transforms.tagfactory;singleton:=true
-Bundle-Version: 1.0.0
-Bundle-Localization: plugin
-Bundle-Vendor:
-Require-Bundle: org.eclipse.jet
-Bundle-ClassPath: .,bin/
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/build.properties b/transforms/org.eclipse.jet.transforms.tagfactory/build.properties
deleted file mode 100644
index cb23e8a..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/build.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-source.. = jet2java/
-output.. = bin/
-bin.includes = .,\
- plugin.xml,\
- META-INF/,\
- templates/
-src.includes = .project,\
- build.properties,\
- .classpath
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/plugin.xml b/transforms/org.eclipse.jet.transforms.tagfactory/plugin.xml
deleted file mode 100644
index f3f2a17..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/plugin.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
- <extension
- id=""
- name=""
- point="org.eclipse.jet.transform">
- <transform
- startTemplate="templates/main.jet"
- templateLoaderClass="org.eclipse.jet.compiled._jet_transformation" >
- <description></description>
- <tagLibraries>
- <importLibrary id="org.eclipse.jet.controlTags" usePrefix="c" autoImport="true"/>
- <importLibrary id="org.eclipse.jet.javaTags" usePrefix="java" autoImport="true"/>
- <importLibrary id="org.eclipse.jet.formatTags" usePrefix="f" autoImport="true"/>
- <importLibrary id="org.eclipse.jet.workspaceTags" usePrefix="ws" autoImport="false"/>
- </tagLibraries>
- </transform>
- </extension>
-</plugin> \ No newline at end of file
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/sample.xml b/transforms/org.eclipse.jet.transforms.tagfactory/sample.xml
deleted file mode 100644
index 84ff56b..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/sample.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<root>
-
-</root> \ No newline at end of file
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/templates/dump.jet b/transforms/org.eclipse.jet.transforms.tagfactory/templates/dump.jet
deleted file mode 100644
index 5ced365..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/templates/dump.jet
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<c:dump select="/*" format="true" entities="true"/>
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/templates/main.jet b/transforms/org.eclipse.jet.transforms.tagfactory/templates/main.jet
deleted file mode 100644
index 70a2c8c..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/templates/main.jet
+++ /dev/null
@@ -1,45 +0,0 @@
-<%@taglib prefix="ws" id="org.eclipse.jet.workspaceTags" %>
-<%-- Main entry point for org.eclipse.jet.transforms.tagfactory --%>
-
-<c:setVariable var="plugin" select="/plugin"/>
-<%--
-TODO: traverse input model, performing calculations and storing
-the results as model annotations via c:set tag
---%>
-<c:iterate select="$plugin/extension[@point='org.eclipse.jet.tagLibraries']" var="extension">
- <c:iterate select="$extension/tagLibrary[@tagFactory]" var="tagLibrary">
- <c:setVariable var="ordinal" select="1"/>
- <c:set select="$tagLibrary" name="numTags"><c:get select="count($tagLibrary/*['Tag' = substring(local-name(), string-length(local-name()) - 2, 3)])"/></c:set>
- <c:set select="$tagLibrary" name="pkgFactory"><c:get select="packageName($tagLibrary/@tagFactory)"/></c:set>
- <c:set select="$tagLibrary" name="clsFactory"><c:get select="className($tagLibrary/@tagFactory)"/></c:set>
- <c:iterate select="$tagLibrary/*['Tag' = substring(local-name(), string-length(local-name()) - 2, 3)]" var="tag">
- <c:set select="$tag" name="ordinal"><c:get select="$ordinal"/></c:set>
- <c:setVariable var="ordinal" select="$ordinal + 1"/>
- </c:iterate>
- </c:iterate>
-</c:iterate>
-
-
-<%--
-TODO: traverse annotated model, performing text generation actions
-such as ws:file, ws:folder and ws:project
---%>
-<c:iterate select="$plugin/extension[@point='org.eclipse.jet.tagLibraries']" var="extension">
- <c:iterate select="$extension/tagLibrary[@tagFactory]" var="tagLibrary">
- <java:class srcFolder="{$org.eclipse.jet.resource.project.name}/src"
- package="{$tagLibrary/@pkgFactory}"
- name="{$tagLibrary/@clsFactory}"
- template="templates/tagLibrary/tagFactory.java.jet"/>
- </c:iterate>
-</c:iterate>
-
-
-<%-- For debug purposes, dump the annotated input model in
- the root of the project containing the original input model.
-
- Note that model formatting may not be identical, and that in
- the case of non-XML input models, the dump may look quite different.
-
-<ws:file template="templates/dump.jet" path="{$org.eclipse.jet.resource.project.name}/dump.xml"/>
---%>
-
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet b/transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet
deleted file mode 100644
index f5e17fd..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- *
- * Copyright (c) <f:formatNow pattern="yyyy"/> IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- *
- */
-package <c:get select="$tagLibrary/@pkgFactory"/>;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.jet.taglib.CustomTag;
-import org.eclipse.jet.taglib.JET2TagException;
-import org.eclipse.jet.taglib.TagInstanceFactory;
-
-/**
- * Tag Factory for <c:get select="$tagLibrary/@id"/>
- */
-public class <c:get select="$tagLibrary/@clsFactory"/> implements TagInstanceFactory
-{
-
- private final Map tagOrdinalByName;
-
- /**
- *
- */
- public <c:get select="$tagLibrary/@clsFactory"/>()
- {
- tagOrdinalByName = new HashMap(<c:get select="$tagLibrary/@numTags"/>);
-
-<c:iterate select="$tagLibrary/*['Tag' = substring(local-name(), string-length(local-name()) - 2, 3)]" var="tag">
- tagOrdinalByName.put("<c:get select="$tag/@name"/>",new Integer(<c:get select="$tag/@ordinal"/>)); //$NON-NLS-1$
-</c:iterate>
- }
-
- public CustomTag createCustomTag(String name)
- {
- Integer ordinal = (Integer)tagOrdinalByName.get(name);
-
- switch(ordinal == null ? 0 : ordinal.intValue()) {
-<c:iterate select="$tagLibrary/*['Tag' = substring(local-name(), string-length(local-name()) - 2, 3)]" var="tag">
- case <c:get select="$tag/@ordinal"/>: // <c:get select="$tag/@name"/>
- return new <c:get select="$tag/@class"/>();
-</c:iterate>
- default:
- throw new JET2TagException("Unknown Tag: " + name); //$NON-NLS-1$
- }
- }
-
-}

Back to the top