Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added latte task scanner (@todo & @fixme in Tasks panel)

  • Loading branch information...
commit 427c6b77a9f5018e53c1b6a78689519c17febcfd 1 parent ce62486
@redhead redhead authored
View
9 nbproject/project.xml
@@ -189,6 +189,15 @@
</run-dependency>
</dependency>
<dependency>
+ <code-name-base>org.netbeans.spi.tasklist</code-name-base>
+ <build-prerequisite/>
+ <compile-dependency/>
+ <run-dependency>
+ <release-version>1</release-version>
+ <specification-version>1.14.1.1</specification-version>
+ </run-dependency>
+ </dependency>
+ <dependency>
<code-name-base>org.openide.awt</code-name-base>
<build-prerequisite/>
<compile-dependency/>
View
134 src/org/netbeans/modules/php/nette/editor/LatteTaskScanner.java
@@ -0,0 +1,134 @@
+/*
+ * The MIT License
+ *
+ * Copyright (c) 2010 Radek Ježdík <redhead@email.cz>, Ondřej Brejla <ondrej@brejla.cz>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+package org.netbeans.modules.php.nette.editor;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.netbeans.api.lexer.Token;
+import org.netbeans.api.lexer.TokenSequence;
+import org.netbeans.modules.php.nette.lexer.LatteTokenId;
+import org.netbeans.modules.php.nette.lexer.LatteTopTokenId;
+import org.netbeans.modules.php.nette.utils.LexUtils;
+import org.netbeans.spi.tasklist.FileTaskScanner;
+import org.netbeans.spi.tasklist.Task;
+import org.openide.filesystems.FileObject;
+import org.openide.util.Exceptions;
+
+
+/**
+ *
+ * @author Radek Ježdík
+ */
+public class LatteTaskScanner extends FileTaskScanner {
+
+ private static final String EOL_PATTERN = "\\r?\\n";
+
+ private static final Pattern pattern = Pattern.compile("(?i)(@(todo|fixme) .*)");
+
+ private List<Task> tasks = new ArrayList<Task>();
+
+ private int currentLine = 1;
+
+
+ public LatteTaskScanner() {
+ super("Latte Task Scanner", "Scanning Latte files for user tasks", null);
+ }
+
+
+ @Override
+ public List<? extends Task> scan(FileObject resource) {
+ if(!resource.getExt().equals("latte")) {
+ return null;
+ }
+ currentLine = 1;
+ tasks.clear();
+ try {
+ TokenSequence<LatteTopTokenId> sequence = LexUtils.getTopSequence(resource.asText());
+ sequence.moveStart();
+
+ while(sequence.moveNext()) {
+ Token<LatteTopTokenId> token = sequence.token();
+
+ if(token.id() == LatteTopTokenId.LATTE) {
+ TokenSequence<LatteTokenId> sequence2 = LexUtils.getSequence(token);
+ sequence2.moveStart();
+
+ if(sequence2.moveNext()) {
+ Token<LatteTokenId> token2 = sequence2.token();
+ // if it is LD, the next one must be comment
+ if(token2.id() == LatteTokenId.LD) {
+ sequence2.moveNext();
+ token2 = sequence2.token();
+ }
+ // is comment?
+ if(token2.id() == LatteTokenId.COMMENT) {
+ String comment = token2.toString();
+ comment = comment.substring(0, token2.length() - 1);
+ tasks.addAll(searchForTasks(comment, resource));
+ continue;
+ }
+ }
+ }
+ currentLine += computeLineNum(token);
+ }
+ } catch(IOException ex) {
+ Exceptions.printStackTrace(ex);
+ }
+ return tasks;
+ }
+
+
+ @Override
+ public void attach(Callback callback) {
+ }
+
+
+ private int computeLineNum(Token token) {
+ // split -1 counts trailing pattern
+ return token.toString().split(EOL_PATTERN, -1).length - 1;
+ }
+
+
+ private List<Task> searchForTasks(String comment, FileObject resource) {
+ List<Task> list = new ArrayList<Task>();
+
+ String[] lines = comment.split(EOL_PATTERN);
+ Matcher matcher = pattern.matcher(lines[0]);
+
+ for(String line : lines) {
+ matcher.reset(line);
+ if(matcher.find()) {
+ String desc = matcher.group(0);
+ Task tsk = Task.create(resource, "nb-tasklist-todo", desc, currentLine);
+ list.add(tsk);
+ }
+ currentLine++;
+ }
+ return list;
+ }
+
+}
View
388 src/org/netbeans/modules/php/nette/resources/layer.xml
@@ -2,204 +2,210 @@
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
- <folder name="CslPlugins">
- <folder name="text">
- <folder name="x-latte-template">
- <attr name="useCustomEditorKit" boolvalue="false"/>
- <file name="language.instance">
- <attr name="instanceClass" stringvalue="org.netbeans.modules.php.nette.gsf.LatteLanguage"/>
- </file>
- <file name="structure.instance">
- <attr name="instanceClass" stringvalue="org.netbeans.modules.php.nette.gsf.LatteStructureScanner"/>
- </file>
- </folder>
- </folder>
- </folder>
+ <folder name="CslPlugins">
+ <folder name="text">
+ <folder name="x-latte-template">
+ <attr name="useCustomEditorKit" boolvalue="false"/>
+ <file name="language.instance">
+ <attr name="instanceClass" stringvalue="org.netbeans.modules.php.nette.gsf.LatteLanguage"/>
+ </file>
+ <file name="structure.instance">
+ <attr name="instanceClass" stringvalue="org.netbeans.modules.php.nette.gsf.LatteStructureScanner"/>
+ </file>
+ </folder>
+ </folder>
+ </folder>
- <folder name="Editors">
- <folder name="text">
- <folder name="x-latte-template">
- <folder name="Popup">
- <folder name="goto">
- <file name="org-netbeans-modules-php-project-ui-actions-GoToActionOrViewAction.shadow">
- <attr name="originalFile" stringvalue="Editors/text/x-php5/Actions/org-netbeans-modules-php-project-ui-actions-GoToActionOrViewAction.instance"/>
- <attr name="position" intvalue="100"/>
- </file>
- </folder>
- </folder>
+ <folder name="Editors">
+ <folder name="text">
+ <folder name="x-latte-template">
+ <folder name="Popup">
+ <folder name="goto">
+ <file name="org-netbeans-modules-php-project-ui-actions-GoToActionOrViewAction.shadow">
+ <attr name="originalFile" stringvalue="Editors/text/x-php5/Actions/org-netbeans-modules-php-project-ui-actions-GoToActionOrViewAction.instance"/>
+ <attr name="position" intvalue="100"/>
+ </file>
+ </folder>
+ </folder>
<attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.php.nette.lexer.Bundle"/>
- <folder name="CompletionProviders">
- <file name="org-netbeans-modules-html-editor-completion-HtmlCompletionProvider.instance"/>
- <file name="org-netbeans-modules-php-editor-comletion-PHPCodeCompletion.instance"/>
- <file name="org-netbeans-modules-csl-editor-completion-GsfCompletionProvider.instance"/>
- <file name="org-netbeans-modules-html-editor-completion-HtmlPaletteCompletionProvider.instance"/>
- <file name="org-netbeans-modules-php-nette-editor-completion-LatteCompletionProvider.instance"/>
- </folder>
- <file name="org-netbeans-modules-php-nette-editor-LatteEmbeddingProvider$Factory.instance"/>
- </folder>
+ <folder name="CompletionProviders">
+ <file name="org-netbeans-modules-html-editor-completion-HtmlCompletionProvider.instance"/>
+ <file name="org-netbeans-modules-php-editor-comletion-PHPCodeCompletion.instance"/>
+ <file name="org-netbeans-modules-csl-editor-completion-GsfCompletionProvider.instance"/>
+ <file name="org-netbeans-modules-html-editor-completion-HtmlPaletteCompletionProvider.instance"/>
+ <file name="org-netbeans-modules-php-nette-editor-completion-LatteCompletionProvider.instance"/>
+ </folder>
+ <file name="org-netbeans-modules-php-nette-editor-LatteEmbeddingProvider$Factory.instance"/>
+ </folder>
- <folder name="x-latte">
+ <folder name="x-latte">
<file name="language.instance">
- <attr name="instanceCreate" methodvalue="org.netbeans.modules.php.nette.lexer.LatteTopTokenId.language"/>
- <attr name="instanceOf" stringvalue="org.netbeans.api.lexer.Language"/>
- </file>
- <folder name="BracesMatchers">
- <file name="org-netbeans-modules-php-nette-editor-LatteBracesMatchingFactory.instance">
- <attr name="position" intvalue="0"/>
- </file>
- </folder>
+ <attr name="instanceCreate" methodvalue="org.netbeans.modules.php.nette.lexer.LatteTopTokenId.language"/>
+ <attr name="instanceOf" stringvalue="org.netbeans.api.lexer.Language"/>
+ </file>
+ <folder name="BracesMatchers">
+ <file name="org-netbeans-modules-php-nette-editor-LatteBracesMatchingFactory.instance">
+ <attr name="position" intvalue="0"/>
+ </file>
+ </folder>
<attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.php.nette.lexer.Bundle"/>
- <folder name="FontsColors">
- <folder name="NetBeans">
- <folder name="Defaults">
- <file name="org-netbeans-modules-php-nette-resources-FontAndColors.xml" url="FontAndColors.xml">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.php.nette.lexer.Bundle"/>
- </file>
- </folder>
- </folder>
- </folder>
- </folder>
- <folder name="x-php5">
- <folder name="CodeGenerators">
- <file name="org-netbeans-modules-php-nette-generators-createcomponent-CreateComponentGenerator$Factory.instance"/>
- <file name="org-netbeans-modules-php-nette-generators-actionrender-ActionRenderCodeGenerator$Factory.instance"/>
- </folder>
- </folder>
- </folder>
- </folder>
- <folder name="OptionsDialog">
- <folder name="PreviewExamples">
- <folder name="text">
+ <folder name="FontsColors">
+ <folder name="NetBeans">
+ <folder name="Defaults">
+ <file name="org-netbeans-modules-php-nette-resources-FontAndColors.xml" url="FontAndColors.xml">
+ <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.php.nette.lexer.Bundle"/>
+ </file>
+ </folder>
+ </folder>
+ </folder>
+ </folder>
+ <folder name="x-php5">
+ <folder name="CodeGenerators">
+ <file name="org-netbeans-modules-php-nette-generators-createcomponent-CreateComponentGenerator$Factory.instance"/>
+ <file name="org-netbeans-modules-php-nette-generators-actionrender-ActionRenderCodeGenerator$Factory.instance"/>
+ </folder>
+ </folder>
+ </folder>
+ </folder>
+ <folder name="OptionsDialog">
+ <folder name="PreviewExamples">
+ <folder name="text">
<file name="x-latte" url="LatteSample.latte"/>
- </folder>
- </folder>
- <folder name="Editor">
- <folder name="Hints">
- <folder name="text">
- <folder name="x-latte-template">
- <file name="org.netbeans.modules.php.nette.editor.hints.ui.HintsOptionsPanelController.instance"/>
- </folder>
- </folder>
- </folder>
- </folder>
- </folder>
+ </folder>
+ </folder>
+ <folder name="Editor">
+ <folder name="Hints">
+ <folder name="text">
+ <folder name="x-latte-template">
+ <file name="org.netbeans.modules.php.nette.editor.hints.ui.HintsOptionsPanelController.instance"/>
+ </folder>
+ </folder>
+ </folder>
+ </folder>
+ </folder>
- <folder name="Loaders">
- <folder name="text">
- <folder name="x-latte-template">
- <attr name="iconBase" stringvalue="org/netbeans/modules/php/nette/resources/latte_icon.png"/>
- <folder name="Actions">
- <file name="org-openide-actions-CopyAction.shadow">
- <attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-CopyAction.instance"/>
- <attr name="position" intvalue="400"/>
- </file>
- <file name="org-openide-actions-CutAction.shadow">
- <attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-CutAction.instance"/>
- <attr name="position" intvalue="300"/>
- </file>
- <file name="org-openide-actions-DeleteAction.shadow">
- <attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-DeleteAction.instance"/>
- <attr name="position" intvalue="600"/>
- </file>
- <file name="org-openide-actions-FileSystemAction.shadow">
- <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-FileSystemAction.instance"/>
- <attr name="position" intvalue="1100"/>
- </file>
- <file name="org-openide-actions-OpenAction.shadow">
- <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-OpenAction.instance"/>
- <attr name="position" intvalue="100"/>
- </file>
- <file name="org-openide-actions-PropertiesAction.shadow">
- <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-PropertiesAction.instance"/>
- <attr name="position" intvalue="1400"/>
- </file>
- <file name="org-openide-actions-RenameAction.shadow">
- <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-RenameAction.instance"/>
- <attr name="position" intvalue="700"/>
- </file>
- <file name="org-openide-actions-SaveAsTemplateAction.shadow">
- <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-SaveAsTemplateAction.instance"/>
- <attr name="position" intvalue="900"/>
- </file>
- <file name="org-openide-actions-ToolsAction.shadow">
- <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-ToolsAction.instance"/>
- <attr name="position" intvalue="1300"/>
- </file>
- <file name="sep-1.instance">
- <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
- <attr name="position" intvalue="200"/>
- </file>
- <file name="sep-2.instance">
- <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
- <attr name="position" intvalue="500"/>
- </file>
- <file name="sep-3.instance">
- <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
- <attr name="position" intvalue="800"/>
- </file>
- <file name="sep-4.instance">
- <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
- <attr name="position" intvalue="1000"/>
- </file>
- <file name="sep-5.instance">
- <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
- <attr name="position" intvalue="1200"/>
- </file>
- </folder>
- </folder>
- </folder>
- </folder>
- <folder name="PHP">
- <folder name="Frameworks">
- <file name="org-netbeans-modules-php-nette-NettePhpFrameworkProvider.instance">
- <attr name="instanceCreate" methodvalue="org.netbeans.modules.php.nette.NettePhpFrameworkProvider.getInstance"/>
- <attr name="position" intvalue="189"/>
- </file>
- </folder>
- </folder>
- <folder name="Services">
- <folder name="MIMEResolver">
- <file name="LatteResolver.xml" url="LatteResolver.xml">
- <attr name="displayName" bundlevalue="org.netbeans.modules.php.nette.Bundle#Services/MIMEResolver/LatteResolver.xml"/>
- </file>
- </folder>
- </folder>
+ <folder name="Loaders">
+ <folder name="text">
+ <folder name="x-latte-template">
+ <attr name="iconBase" stringvalue="org/netbeans/modules/php/nette/resources/latte_icon.png"/>
+ <folder name="Actions">
+ <file name="org-openide-actions-CopyAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-CopyAction.instance"/>
+ <attr name="position" intvalue="400"/>
+ </file>
+ <file name="org-openide-actions-CutAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-CutAction.instance"/>
+ <attr name="position" intvalue="300"/>
+ </file>
+ <file name="org-openide-actions-DeleteAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/Edit/org-openide-actions-DeleteAction.instance"/>
+ <attr name="position" intvalue="600"/>
+ </file>
+ <file name="org-openide-actions-FileSystemAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-FileSystemAction.instance"/>
+ <attr name="position" intvalue="1100"/>
+ </file>
+ <file name="org-openide-actions-OpenAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-OpenAction.instance"/>
+ <attr name="position" intvalue="100"/>
+ </file>
+ <file name="org-openide-actions-PropertiesAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-PropertiesAction.instance"/>
+ <attr name="position" intvalue="1400"/>
+ </file>
+ <file name="org-openide-actions-RenameAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-RenameAction.instance"/>
+ <attr name="position" intvalue="700"/>
+ </file>
+ <file name="org-openide-actions-SaveAsTemplateAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-SaveAsTemplateAction.instance"/>
+ <attr name="position" intvalue="900"/>
+ </file>
+ <file name="org-openide-actions-ToolsAction.shadow">
+ <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-ToolsAction.instance"/>
+ <attr name="position" intvalue="1300"/>
+ </file>
+ <file name="sep-1.instance">
+ <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+ <attr name="position" intvalue="200"/>
+ </file>
+ <file name="sep-2.instance">
+ <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+ <attr name="position" intvalue="500"/>
+ </file>
+ <file name="sep-3.instance">
+ <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+ <attr name="position" intvalue="800"/>
+ </file>
+ <file name="sep-4.instance">
+ <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+ <attr name="position" intvalue="1000"/>
+ </file>
+ <file name="sep-5.instance">
+ <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+ <attr name="position" intvalue="1200"/>
+ </file>
+ </folder>
+ </folder>
+ </folder>
+ </folder>
+ <folder name="PHP">
+ <folder name="Frameworks">
+ <file name="org-netbeans-modules-php-nette-NettePhpFrameworkProvider.instance">
+ <attr name="instanceCreate" methodvalue="org.netbeans.modules.php.nette.NettePhpFrameworkProvider.getInstance"/>
+ <attr name="position" intvalue="189"/>
+ </file>
+ </folder>
+ </folder>
+ <folder name="Services">
+ <folder name="MIMEResolver">
+ <file name="LatteResolver.xml" url="LatteResolver.xml">
+ <attr name="displayName" bundlevalue="org.netbeans.modules.php.nette.Bundle#Services/MIMEResolver/LatteResolver.xml"/>
+ </file>
+ </folder>
+ </folder>
- <folder name="Templates">
- <folder name="Nette Framework">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.php.nette.resources.Bundle"/>
- <file name="PresenterTemplate.php" url="PresenterTemplate.php">
- <attr name="displayName" bundlevalue="org.netbeans.modules.php.nette.resources.Bundle#Templates/Nette-Framework/PresenterTemplate.php"/>
- <attr name="iconBase" stringvalue="org/netbeans/modules/php/nette/resources/presenter_icon.png"/>
- <attr name="instantiatingIterator" newvalue="org.netbeans.modules.php.nette.wizards.newpresenter.WizardIterator"/>
- <attr name="template" boolvalue="true"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.myorg.additionalfiletemplates.Bundle"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/presenter_icon.png"/>
- <attr name="position" intvalue="100"/>
- <attr name="templateWizardURL" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/PresenterDescription.html"/>
- <attr name="javax.script.ScriptEngine" stringvalue="freemarker"/>
- </file>
- <file name="ControlTemplate.php" url="ControlTemplate.php">
- <attr name="displayName" bundlevalue="org.netbeans.modules.php.nette.resources.Bundle#Templates/Nette-Framework/ControlTemplate.php"/>
- <attr name="iconBase" stringvalue="org/netbeans/modules/php/nette/resources/control_icon.png"/>
- <attr name="template" boolvalue="true"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.myorg.additionalfiletemplates.Bundle"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/control_icon.png"/>
- <attr name="position" intvalue="200"/>
- <attr name="templateWizardURL" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/ControlDescription.html"/>
- <attr name="javax.script.ScriptEngine" stringvalue="freemarker"/>
- </file>
- <file name="LatteTemplate.latte" url="LatteTemplate.latte">
- <attr name="displayName" bundlevalue="org.netbeans.modules.php.nette.resources.Bundle#Templates/Nette-Framework/LatteTemplate.latte"/>
- <attr name="iconBase" stringvalue="org/netbeans/modules/php/nette/resources/latte_icon.png"/>
- <attr name="template" boolvalue="true"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.php.nette.resources.Bundle"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/latte_icon.png"/>
- <attr name="position" intvalue="300"/>
- <attr name="templateWizardURL" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/LatteDescription.html"/>
- <attr name="javax.script.ScriptEngine" stringvalue="freemarker"/>
- </file>
- </folder>
- </folder>
+ <folder name="Templates">
+ <folder name="Nette Framework">
+ <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.php.nette.resources.Bundle"/>
+ <file name="PresenterTemplate.php" url="PresenterTemplate.php">
+ <attr name="displayName" bundlevalue="org.netbeans.modules.php.nette.resources.Bundle#Templates/Nette-Framework/PresenterTemplate.php"/>
+ <attr name="iconBase" stringvalue="org/netbeans/modules/php/nette/resources/presenter_icon.png"/>
+ <attr name="instantiatingIterator" newvalue="org.netbeans.modules.php.nette.wizards.newpresenter.WizardIterator"/>
+ <attr name="template" boolvalue="true"/>
+ <attr name="SystemFileSystem.localizingBundle" stringvalue="org.myorg.additionalfiletemplates.Bundle"/>
+ <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/presenter_icon.png"/>
+ <attr name="position" intvalue="100"/>
+ <attr name="templateWizardURL" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/PresenterDescription.html"/>
+ <attr name="javax.script.ScriptEngine" stringvalue="freemarker"/>
+ </file>
+ <file name="ControlTemplate.php" url="ControlTemplate.php">
+ <attr name="displayName" bundlevalue="org.netbeans.modules.php.nette.resources.Bundle#Templates/Nette-Framework/ControlTemplate.php"/>
+ <attr name="iconBase" stringvalue="org/netbeans/modules/php/nette/resources/control_icon.png"/>
+ <attr name="template" boolvalue="true"/>
+ <attr name="SystemFileSystem.localizingBundle" stringvalue="org.myorg.additionalfiletemplates.Bundle"/>
+ <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/control_icon.png"/>
+ <attr name="position" intvalue="200"/>
+ <attr name="templateWizardURL" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/ControlDescription.html"/>
+ <attr name="javax.script.ScriptEngine" stringvalue="freemarker"/>
+ </file>
+ <file name="LatteTemplate.latte" url="LatteTemplate.latte">
+ <attr name="displayName" bundlevalue="org.netbeans.modules.php.nette.resources.Bundle#Templates/Nette-Framework/LatteTemplate.latte"/>
+ <attr name="iconBase" stringvalue="org/netbeans/modules/php/nette/resources/latte_icon.png"/>
+ <attr name="template" boolvalue="true"/>
+ <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.php.nette.resources.Bundle"/>
+ <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/latte_icon.png"/>
+ <attr name="position" intvalue="300"/>
+ <attr name="templateWizardURL" urlvalue="nbresloc:/org/netbeans/modules/php/nette/resources/LatteDescription.html"/>
+ <attr name="javax.script.ScriptEngine" stringvalue="freemarker"/>
+ </file>
+ </folder>
+ </folder>
+
+ <folder name="TaskList">
+ <folder name="Scanners">
+ <file name="org-netbeans-modules-php-nette-editor-LatteTaskScanner.instance"/>
+ </folder>
+ </folder>
</filesystem>
Please sign in to comment.
Something went wrong with that request. Please try again.