You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2016/02/26 15:45:19 UTC

svn commit: r1732495 - in /sling/trunk/tooling/ide/eclipse-ui: build.properties plugin.xml templates/ templates/jsp-templates.properties templates/jsp-templates.xml

Author: rombert
Date: Fri Feb 26 14:45:19 2016
New Revision: 1732495

URL: http://svn.apache.org/viewvc?rev=1732495&view=rev
Log:
SLING-5563 - Add a new Sling JSP file template

Added:
    sling/trunk/tooling/ide/eclipse-ui/templates/
    sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.properties
    sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.xml
Modified:
    sling/trunk/tooling/ide/eclipse-ui/build.properties
    sling/trunk/tooling/ide/eclipse-ui/plugin.xml

Modified: sling/trunk/tooling/ide/eclipse-ui/build.properties
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/build.properties?rev=1732495&r1=1732494&r2=1732495&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/build.properties (original)
+++ sling/trunk/tooling/ide/eclipse-ui/build.properties Fri Feb 26 14:45:19 2016
@@ -4,5 +4,6 @@ bin.includes = plugin.xml,\
                icons/,\
                OSGI-INF/,\
                lib/decentxml-1.4.jar,\
-               .options
+               .options,\
+               templates/
 source.. = src/

Modified: sling/trunk/tooling/ide/eclipse-ui/plugin.xml
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/plugin.xml?rev=1732495&r1=1732494&r2=1732495&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/plugin.xml (original)
+++ sling/trunk/tooling/ide/eclipse-ui/plugin.xml Fri Feb 26 14:45:19 2016
@@ -723,4 +723,11 @@
           </propertySection>
        </propertySections>
     </extension>
+    
+	<!-- JSP templates -->
+    <extension point="org.eclipse.ui.editors.templates">
+        <include
+            file="templates/jsp-templates.xml"
+            translations="templates/jsp-templates.properties"/>
+    </extension>    
 </plugin>    

Added: sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.properties
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.properties?rev=1732495&view=auto
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.properties (added)
+++ sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.properties Fri Feb 26 14:45:19 2016
@@ -0,0 +1 @@
+Templates.new_jsp.content=<%@page session="false" import="org.apache.sling.api.resource.*, javax.jcr.*"%>\n<%@taglib prefix="sling" uri="http://sling.apache.org/taglibs/sling/1.0"%>\n<sling:defineObjects/>\n${cursor}
\ No newline at end of file

Added: sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.xml
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.xml?rev=1732495&view=auto
==============================================================================
--- sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.xml (added)
+++ sling/trunk/tooling/ide/eclipse-ui/templates/jsp-templates.xml Fri Feb 26 14:45:19 2016
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or
+    more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information regarding
+    copyright ownership. The ASF licenses this file to you under the
+    Apache License, Version 2.0 (the "License"); you may not use
+    this file except in compliance with the License. You may obtain
+    a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0 Unless required by
+    applicable law or agreed to in writing, software distributed
+    under the License is distributed on an "AS IS" BASIS, WITHOUT
+    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions
+    and limitations under the License.
+-->
+<templates>
+<template name="New Sling JSP File" description="Sling JSP File" 
+    id="org.apache.sling.eclipse.ui.new_jsp" context="jsp_new" enabled="true">%Templates.new_jsp.content</template>
+</templates>
\ No newline at end of file