@TemplateRegistration
authorJesse Glick <jglick@netbeans.org>
Tue, 28 Feb 2012 12:17:27 -0500
changeset 17789ee8c2a985c76
parent 17788 fbd167fd6e9f
child 17790 a8ca660b313c
@TemplateRegistration
htmlprojects/manifest.mf
htmlprojects/src/org/netbeans/modules/htmlproject/Bundle.properties
htmlprojects/src/org/netbeans/modules/htmlproject/HtmlProjectWizardIterator.java
htmlprojects/src/org/netbeans/modules/htmlproject/layer.xml
     1.1 --- a/htmlprojects/manifest.mf	Sat Feb 25 12:09:32 2012 +0100
     1.2 +++ b/htmlprojects/manifest.mf	Tue Feb 28 12:17:27 2012 -0500
     1.3 @@ -1,6 +1,5 @@
     1.4  Manifest-Version: 1.0
     1.5  OpenIDE-Module: org.netbeans.modules.htmlprojects
     1.6 -OpenIDE-Module-Layer: org/netbeans/modules/htmlproject/layer.xml
     1.7  OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/htmlproject/Bundle.properties
     1.8  OpenIDE-Module-Specification-Version: 1.13
     1.9  
     2.1 --- a/htmlprojects/src/org/netbeans/modules/htmlproject/Bundle.properties	Sat Feb 25 12:09:32 2012 +0100
     2.2 +++ b/htmlprojects/src/org/netbeans/modules/htmlproject/Bundle.properties	Tue Feb 28 12:17:27 2012 -0500
     2.3 @@ -31,7 +31,6 @@
     2.4      Generally should be handy for doing documentation and articles.
     2.5  OpenIDE-Module-Name=HTML Project Support
     2.6  OpenIDE-Module-Short-Description=Recognizes web sites as a simple kind of project.
     2.7 -Templates/Project/Web/HtmlProject=Html Project over Existing Folder
     2.8  ProjectPropertiesDlg.nameField.text=
     2.9  
    2.10  ProjectPropertiesDlg.mainFileField.text=
     3.1 --- a/htmlprojects/src/org/netbeans/modules/htmlproject/HtmlProjectWizardIterator.java	Sat Feb 25 12:09:32 2012 +0100
     3.2 +++ b/htmlprojects/src/org/netbeans/modules/htmlproject/HtmlProjectWizardIterator.java	Tue Feb 28 12:17:27 2012 -0500
     3.3 @@ -34,24 +34,22 @@
     3.4  import java.util.Set;
     3.5  import javax.swing.JComponent;
     3.6  import javax.swing.event.ChangeListener;
     3.7 +import org.netbeans.api.templates.TemplateRegistration;
     3.8  import org.netbeans.spi.project.ui.support.ProjectChooser;
     3.9  import org.openide.WizardDescriptor;
    3.10  import org.openide.filesystems.FileObject;
    3.11  import org.openide.filesystems.FileUtil;
    3.12  import org.openide.util.NbBundle;
    3.13 +import org.openide.util.NbBundle.Messages;
    3.14  
    3.15 +@TemplateRegistration(folder="Project/Web", position=407, displayName="#template", iconBase="org/netbeans/modules/htmlproject/htmlProject.png", description="HtmlProjectDescription.html")
    3.16 +@Messages("template=HTML Project over Existing Folder")
    3.17  public class HtmlProjectWizardIterator implements WizardDescriptor.InstantiatingIterator {
    3.18  
    3.19      private int index;
    3.20      private WizardDescriptor.Panel[] panels;
    3.21      private WizardDescriptor wiz;
    3.22  
    3.23 -    public HtmlProjectWizardIterator() {}
    3.24 -
    3.25 -    public static HtmlProjectWizardIterator createIterator() {
    3.26 -        return new HtmlProjectWizardIterator();
    3.27 -    }
    3.28 -
    3.29      private WizardDescriptor.Panel[] createPanels() {
    3.30          return new WizardDescriptor.Panel[] {
    3.31              new HtmlProjectWizardPanel(),
     4.1 --- a/htmlprojects/src/org/netbeans/modules/htmlproject/layer.xml	Sat Feb 25 12:09:32 2012 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,43 +0,0 @@
     4.4 -<?xml version="1.0" encoding="UTF-8"?>
     4.5 -<!--
     4.6 -DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4.7 -
     4.8 -Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
     4.9 -
    4.10 -The contents of this file are subject to the terms of either the GNU
    4.11 -General Public License Version 2 only ("GPL") or the Common
    4.12 -Development and Distribution License("CDDL") (collectively, the
    4.13 -"License"). You may not use this file except in compliance with the
    4.14 -License. You can obtain a copy of the License at
    4.15 -http://www.netbeans.org/cddl-gplv2.html
    4.16 -or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
    4.17 -specific language governing permissions and limitations under the
    4.18 -License.  When distributing the software, include this License Header
    4.19 -Notice in each file and include the License file at
    4.20 -nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
    4.21 -particular file as subject to the "Classpath" exception as provided
    4.22 -by Sun in the GPL Version 2 section of the License file that
    4.23 -accompanied this code. If applicable, add the following below the
    4.24 -License Header, with the fields enclosed by brackets [] replaced by
    4.25 -your own identifying information:
    4.26 -"Portions Copyrighted [year] [name of copyright owner]"
    4.27 -
    4.28 -Contributor(s):
    4.29 --->
    4.30 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
    4.31 -<filesystem>
    4.32 -    <folder name="Templates">
    4.33 -        <folder name="Project">
    4.34 -            <folder name="Web">
    4.35 -                <file name="Html Project">
    4.36 -                    <attr name="position" intvalue="407"/>
    4.37 -                    <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/htmlproject/htmlProject.png"/>
    4.38 -                    <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.htmlproject.Bundle"/>
    4.39 -                    <attr name="instantiatingIterator" methodvalue="org.netbeans.modules.htmlproject.HtmlProjectWizardIterator.createIterator"/>
    4.40 -                    <attr name="instantiatingWizardURL" urlvalue="nbresloc:/org/netbeans/modules/htmlproject/HtmlProjectDescription.html"/>
    4.41 -                    <attr name="template" boolvalue="true"/>
    4.42 -                </file>
    4.43 -            </folder>
    4.44 -        </folder>
    4.45 -    </folder>
    4.46 -</filesystem>