Permalink
Browse files

Added XML Template

  • Loading branch information...
1 parent c9e9ff5 commit 3252fc0488a01c21c0ff0253ce97099ad7439889 @rafabene rafabene committed Feb 22, 2013
Showing with 27 additions and 1 deletion.
  1. +10 −1 eclipse/README.md
  2. +17 −0 eclipse/jboss-xml-templates.xml
View
@@ -64,7 +64,7 @@ Will create proper JBoss copyright headers for new JavaScript files.
1. Download the jboss-js-templates.xml file in this directory.
2. In Eclipse preferences for to JavaScript -> Code Style -> Code Templates
3. Click Import
-4. Select the clean-up file you downloaded in step (1)
+4. Select the formatting file you downloaded in step (1)
General Text Editor Formatting
------------------------------
@@ -87,6 +87,15 @@ XML formatting
* Insert whitespace before closing empty eng-tags: YES
* Indent using spaces
* Indentation size: 4
+
+XML Templates
+-------------
+Will create proper JBoss copyright headers for new XML files.
+
+1. Download the jboss-xml-templates.xml file in this directory.
+2. In Eclipse preferences for to XML -> XML Files -> Editor -> Templates
+3. Click Import
+4. Select the formatting you downloaded in step (1)
HTML formatting
---------------
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="xml_new" deleted="false" description="xml declaration" enabled="true" id="org.eclipse.wst.xml.ui.internal.templates.xmldeclaration" name="xml declaration">&lt;?xml version="1.0" encoding="${encoding}"?&gt;
+&lt;!--
+ JBoss, Home of Professional Open Source
+ Copyright &lt;Year&gt;, Red Hat, Inc. and/or its affiliates, and individual
+ contributors by the @authors tag. See the copyright.txt in the
+ distribution for a full listing of individual contributors.
+
+ Licensed 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.
+--&gt;</template></templates>

0 comments on commit 3252fc0

Please sign in to comment.