You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by mk...@apache.org on 2008/04/08 13:47:34 UTC

svn commit: r645865 - in /maven/doxia/doxia-tools/trunk/doxia-ide/netbeans: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/maven/ src/main/java/org/apache/maven/doxia/ src/main/java/org/apache/mav...

Author: mkleint
Date: Tue Apr  8 04:47:32 2008
New Revision: 645865

URL: http://svn.apache.org/viewvc?rev=645865&view=rev
Log:
a stub project for doxia editor support in netbeans (Lukas Theussl will hopefully add some real code)

Added:
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/pom.xml
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoader.java
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoaderBeanInfo.java
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataNode.java
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataObject.java
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptHyperlinkProvider.java
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptUptodateStatusProvider.java
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/manifest.mf
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/module.xml
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptResolver.xml
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptTemplate.apt
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/Bundle.properties
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/Bundle.properties
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/CodeTemplates.xml
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/layer.xml
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/ide/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/ide/netbeans/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/ide/netbeans/deleteme.txt   (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/resources/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/resources/META-INF/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/resources/META-INF/services/
    maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/resources/META-INF/services/org.openide.loaders.DataLoader

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/pom.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/pom.xml?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/pom.xml (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/pom.xml Tue Apr  8 04:47:32 2008
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.maven.doxia.ide</groupId>
+    <artifactId>netbeans</artifactId>
+    <packaging>nbm</packaging>
+    <version>1.0-SNAPSHOT</version>
+    <name>Doxia Editing integration for NetBeans</name>
+    
+    <repositories>
+        <!-- this is a remote repository hosting the netbeans api artifacts.
+         the versions of the artifacts are netbeans IDE release based, eg. RELEASE41, RELEASE50.
+         You might want to use your own repository. To create one, use the nbm:populate-repository goal.
+          -->
+        <repository>
+            <id>netbeans</id>
+            <name>repository hosting netbeans.org api artifacts</name>
+            <url>http://deadlock.netbeans.org/maven2</url>
+        </repository>
+    </repositories>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.netbeans.api</groupId>
+            <artifactId>org-openide-util</artifactId>
+            <version>RELEASE60</version>
+        </dependency>
+        <dependency>
+            <groupId>org.netbeans.api</groupId>
+            <artifactId>org-openide-filesystems</artifactId>
+            <version>RELEASE60</version>
+        </dependency>
+        <dependency>
+            <groupId>org.netbeans.api</groupId>
+            <artifactId>org-openide-loaders</artifactId>
+            <version>RELEASE60</version>
+        </dependency>
+        <dependency>
+            <groupId>org.netbeans.api</groupId>
+            <artifactId>org-openide-nodes</artifactId>
+            <version>RELEASE60</version>
+        </dependency>
+        <dependency>
+            <groupId>org.netbeans.api</groupId>
+            <artifactId>org-openide-text</artifactId>
+            <version>RELEASE60</version>
+        </dependency>
+        <dependency>
+            <groupId>org.netbeans.api</groupId>
+            <artifactId>org-openide-windows</artifactId>
+            <version>RELEASE60</version>
+        </dependency>
+        <dependency>
+            <groupId>org.netbeans.api</groupId>
+            <artifactId>org-netbeans-modules-editor-lib</artifactId>
+            <version>RELEASE60</version>
+        </dependency>
+        <!--dependency>
+            <groupId>org.netbeans.modules</groupId>
+            <artifactId>org-netbeans-spi-editor-hints</artifactId>
+            <version>RELEASE60</version>
+        </dependency-->
+        
+        <dependency>
+            <groupId>org.netbeans.api</groupId>
+            <artifactId>org-netbeans-modules-editor-errorstripe-api</artifactId>
+            <version>RELEASE60</version>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>nbm-maven-plugin</artifactId>
+                <version>2.6.2</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <descriptor>src/main/nbm/module.xml</descriptor>
+                </configuration>
+            </plugin>
+            
+            <!-- netbeans modules in 5.5+ are 1.5 compatible -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.0.2</version>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoader.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoader.java?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoader.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoader.java Tue Apr  8 04:47:32 2008
@@ -0,0 +1,42 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.apache.maven.doxia.ide.netbeans.apt;
+
+import java.io.IOException;
+import org.openide.filesystems.FileObject;
+import org.openide.loaders.DataObjectExistsException;
+import org.openide.loaders.MultiDataObject;
+import org.openide.loaders.UniFileLoader;
+import org.openide.util.NbBundle;
+
+public class AptDataLoader extends UniFileLoader {
+
+    public static final String REQUIRED_MIME = "text/x-maven-apt";
+    private static final long serialVersionUID = 1L;
+
+    public AptDataLoader() {
+        super("org.apache.maven.doxia.ide.netbeans.apt.AptDataObject");
+    }
+
+    @Override
+    protected String defaultDisplayName() {
+        return NbBundle.getMessage(AptDataLoader.class, "LBL_Apt_loader_name");
+    }
+
+    @Override
+    protected void initialize() {
+        super.initialize();
+        getExtensions().addMimeType(REQUIRED_MIME);
+    }
+
+    protected MultiDataObject createMultiObject(FileObject primaryFile) throws DataObjectExistsException, IOException {
+        return new AptDataObject(primaryFile, this);
+    }
+
+    @Override
+    protected String actionsContext() {
+        return "Loaders/" + REQUIRED_MIME + "/Actions";
+    }
+}

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoaderBeanInfo.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoaderBeanInfo.java?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoaderBeanInfo.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataLoaderBeanInfo.java Tue Apr  8 04:47:32 2008
@@ -0,0 +1,31 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.apache.maven.doxia.ide.netbeans.apt;
+
+import java.awt.Image;
+import java.beans.BeanInfo;
+import java.beans.IntrospectionException;
+import java.beans.Introspector;
+import java.beans.SimpleBeanInfo;
+import org.openide.loaders.UniFileLoader;
+import org.openide.util.Utilities;
+
+public class AptDataLoaderBeanInfo extends SimpleBeanInfo {
+
+    @Override
+    public BeanInfo[] getAdditionalBeanInfo() {
+        try {
+            return new BeanInfo[]{Introspector.getBeanInfo(UniFileLoader.class)};
+        } catch (IntrospectionException e) {
+            throw new AssertionError(e);
+        }
+    }
+
+    @Override
+    public Image getIcon(int type) {
+        return super.getIcon(type); // TODO add a custom icon here: Utilities.loadImage(..., true)
+
+    }
+}

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataNode.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataNode.java?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataNode.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataNode.java Tue Apr  8 04:47:32 2008
@@ -0,0 +1,37 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.apache.maven.doxia.ide.netbeans.apt;
+
+import org.openide.loaders.DataNode;
+import org.openide.nodes.Children;
+import org.openide.util.Lookup;
+
+public class AptDataNode extends DataNode {
+
+    private static final String IMAGE_ICON_BASE = "SET/PATH/TO/ICON/HERE";
+
+    public AptDataNode(AptDataObject obj) {
+        super(obj, Children.LEAF);
+//        setIconBaseWithExtension(IMAGE_ICON_BASE);
+    }
+
+    AptDataNode(AptDataObject obj, Lookup lookup) {
+        super(obj, Children.LEAF, lookup);
+//        setIconBaseWithExtension(IMAGE_ICON_BASE);
+    }
+
+//    /** Creates a property sheet. */
+//    @Override
+//    protected Sheet createSheet() {
+//        Sheet s = super.createSheet();
+//        Sheet.Set ss = s.get(Sheet.PROPERTIES);
+//        if (ss == null) {
+//            ss = Sheet.createPropertiesSet();
+//            s.put(ss);
+//        }
+//        // TODO add some relevant properties: ss.put(...)
+//        return s;
+//    }
+}

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataObject.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataObject.java?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataObject.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptDataObject.java Tue Apr  8 04:47:32 2008
@@ -0,0 +1,27 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.apache.maven.doxia.ide.netbeans.apt;
+
+import java.io.IOException;
+import org.openide.filesystems.FileObject;
+import org.openide.loaders.DataObjectExistsException;
+import org.openide.loaders.MultiDataObject;
+import org.openide.nodes.CookieSet;
+import org.openide.nodes.Node;
+import org.openide.text.DataEditorSupport;
+
+public class AptDataObject extends MultiDataObject {
+
+    public AptDataObject(FileObject pf, AptDataLoader loader) throws DataObjectExistsException, IOException {
+        super(pf, loader);
+        CookieSet cookies = getCookieSet();
+        cookies.add((Node.Cookie) DataEditorSupport.create(this, getPrimaryEntry(), cookies));
+    }
+
+    @Override
+    protected Node createNodeDelegate() {
+        return new AptDataNode(this);
+    }
+}

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptHyperlinkProvider.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptHyperlinkProvider.java?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptHyperlinkProvider.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptHyperlinkProvider.java Tue Apr  8 04:47:32 2008
@@ -0,0 +1,29 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package org.apache.maven.doxia.ide.netbeans.apt;
+
+import javax.swing.text.Document;
+import org.netbeans.lib.editor.hyperlink.spi.HyperlinkProvider;
+
+/**
+ *
+ * @author mkleint
+ */
+public class AptHyperlinkProvider implements HyperlinkProvider {
+
+    public boolean isHyperlinkPoint(Document doc, int offset) {
+        throw new UnsupportedOperationException("Not supported yet.");
+    }
+
+    public int[] getHyperlinkSpan(Document doc, int offset) {
+        throw new UnsupportedOperationException("Not supported yet.");
+    }
+
+    public void performClickAction(Document doc, int offset) {
+        throw new UnsupportedOperationException("Not supported yet.");
+    }
+
+}

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptUptodateStatusProvider.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptUptodateStatusProvider.java?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptUptodateStatusProvider.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/java/org/apache/maven/doxia/ide/netbeans/apt/AptUptodateStatusProvider.java Tue Apr  8 04:47:32 2008
@@ -0,0 +1,31 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package org.apache.maven.doxia.ide.netbeans.apt;
+
+import javax.swing.text.Document;
+import org.netbeans.spi.editor.errorstripe.UpToDateStatus;
+import org.netbeans.spi.editor.errorstripe.UpToDateStatusProvider;
+import org.netbeans.spi.editor.errorstripe.UpToDateStatusProviderFactory;
+
+/**
+ *
+ * @author mkleint
+ */
+public class AptUptodateStatusProvider implements UpToDateStatusProviderFactory {
+
+    public UpToDateStatusProvider createUpToDateStatusProvider(Document doc) {
+        return new Prov();
+    }
+
+    private class Prov extends UpToDateStatusProvider {
+
+        @Override
+        public UpToDateStatus getUpToDate() {
+            //TODO, check for hints, errors from here..
+            System.out.println("checking uptodate status");
+            return UpToDateStatus.UP_TO_DATE_OK;
+        }
+    }
+}

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/manifest.mf
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/manifest.mf?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/manifest.mf (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/manifest.mf Tue Apr  8 04:47:32 2008
@@ -0,0 +1,7 @@
+Manifest-Version: 1.0
+OpenIDE-Module-Localizing-Bundle: org/apache/maven/doxia/ide/netbeans/Bundle.properties
+OpenIDE-Module-Layer: org/apache/maven/doxia/ide/netbeans/layer.xml
+
+Name: org/apache/maven/doxia/ide/netbeans/apt/AptDataLoader.class
+OpenIDE-Module-Class: Loader
+

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/module.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/module.xml?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/module.xml (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/nbm/module.xml Tue Apr  8 04:47:32 2008
@@ -0,0 +1,22 @@
+<nbm>
+   <!--moduleType>autoload</moduleType-->
+   <!--codeNameBase>org.apache.maven.doxia.ide.netbeans/1</codeNameBase-->
+   <!-- the cluster where you want the module to be located. -->
+   <!--cluster>mycluster1</cluster-->
+   <manifest>src/main/nbm/manifest.mf</manifest>
+   <!-- base url of the autoupdate center (where the nbm will be located -->
+   <!--distributionUrl>http://myorg.org/autoupdate</distributionUrl-->
+   <licenseName>Apache License, Version 2.0</licenseName>
+   <licenseFile>license.txt</licenseFile>
+   <!--dependencies that are not part of existing module, you need to include as part of this module -->
+   <!--libraries>
+      <library>jdom:jdom</library>
+   </libraries--> 
+   <dependencies>
+       <dependency>
+           <id>org.netbeans.modules:org-netbeans-spi-editor-hints</id>
+           <type>impl</type>
+       </dependency>
+   </dependencies>
+   
+</nbm>
\ No newline at end of file

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptResolver.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptResolver.xml?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptResolver.xml (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptResolver.xml Tue Apr  8 04:47:32 2008
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+To change this template, choose Tools | Templates
+and open the template in the editor.
+-->
+<!DOCTYPE MIME-resolver PUBLIC "-//NetBeans//DTD MIME Resolver 1.0//EN" "http://www.netbeans.org/dtds/mime-resolver-1_0.dtd">
+<MIME-resolver>
+    <file>
+        <ext name="apt"/>
+        <resolver mime="text/x-maven-apt"/>
+    </file>
+</MIME-resolver>

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptTemplate.apt
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptTemplate.apt?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptTemplate.apt (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/AptTemplate.apt Tue Apr  8 04:47:32 2008
@@ -0,0 +1 @@
+sample content
\ No newline at end of file

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/Bundle.properties
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/Bundle.properties?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/Bundle.properties (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/Bundle.properties Tue Apr  8 04:47:32 2008
@@ -0,0 +1,4 @@
+# Sample ResourceBundle properties file
+OpenIDE-Module-Display-Category=Maven
+Services/MIMEResolver/AptResolver.xml=Apt Files
+Templates/Maven/AptTemplate.apt=Empty Apt file

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/Bundle.properties
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/Bundle.properties?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/Bundle.properties (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/Bundle.properties Tue Apr  8 04:47:32 2008
@@ -0,0 +1 @@
+LBL_Apt_loader_name=Apt Files

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/CodeTemplates.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/CodeTemplates.xml?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/CodeTemplates.xml (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/apt/CodeTemplates.xml Tue Apr  8 04:47:32 2008
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE codetemplates PUBLIC  "-//NetBeans//DTD Editor Code Templates settings 1.0//EN"
+                                "http://www.netbeans.org/dtds/EditorCodeTemplates-1_0.dtd">
+
+<codetemplates>
+    <codetemplate abbreviation="rep" xml:space="preserve">
+        <code><![CDATA[<repository>
+    <id>${ID newVarName default="repo"}</id>
+    <url>${URL newVarName default="http://"}</url>${cursor}
+</repository>]]></code>
+    </codetemplate>
+    <codetemplate abbreviation="prof" xml:space="preserve">
+        <code><![CDATA[<profile>
+    <id>${ID newVarName default="profile1"}</id>
+</profile>]]></code>
+    </codetemplate>
+</codetemplates>
\ No newline at end of file

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/layer.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/layer.xml?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/layer.xml (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/main/resources/org/apache/maven/doxia/ide/netbeans/layer.xml Tue Apr  8 04:47:32 2008
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.0//EN" "http://www.netbeans.org/dtds/filesystem-1_0.dtd">
+<filesystem>
+ 
+    <folder name="Editors">
+        <folder name="text">
+            <folder name="x-maven-apt">
+                <folder name="CodeTemplates">
+                    <folder name="Defaults">
+                        <file name="org-apache-maven-doxia-ide-netbeans-apt-CodeTemplates.xml" url="apt/CodeTemplates.xml"/>
+                    </folder>
+                </folder>
+                <folder name="CompletionProviders">
+                </folder>
+                <folder name="HyperlinkProviders">
+                    <file name="org-apache-maven-doxia-ide-netbeans-apt-AptHyperlinkProvider.instance"/>
+                </folder>
+                <folder name="UpToDateStatusProvider">
+                    <file name="org-apache-maven-doxia-ide-netbeans-apt-AptUptodateStatusProvider.instance"/>
+                </folder>
+            </folder>
+        </folder>
+    </folder>
+    <folder name="Loaders">
+        <folder name="text">
+            <folder name="x-maven-apt">
+                <folder name="Actions">
+                    <file name="org-openide-actions-CopyAction.instance">
+                        <attr name="position" intvalue="500"/>
+                    </file>
+                    <file name="org-openide-actions-CutAction.instance">
+                        <attr name="position" intvalue="400"/>
+                    </file>
+                    <file name="org-openide-actions-DeleteAction.instance">
+                        <attr name="position" intvalue="700"/>
+                    </file>
+                    <file name="org-openide-actions-FileSystemAction.instance">
+                        <attr name="position" intvalue="200"/>
+                    </file>
+                    <file name="org-openide-actions-OpenAction.instance">
+                        <attr name="position" intvalue="100"/>
+                    </file>
+                    <file name="org-openide-actions-PropertiesAction.instance">
+                        <attr name="position" intvalue="1300"/>
+                    </file>
+                    <file name="org-openide-actions-RenameAction.instance">
+                        <attr name="position" intvalue="800"/>
+                    </file>
+                    <file name="org-openide-actions-SaveAsTemplateAction.instance">
+                        <attr name="position" intvalue="1000"/>
+                    </file>
+                    <file name="org-openide-actions-ToolsAction.instance">
+                        <attr name="position" intvalue="1200"/>
+                    </file>
+                    <file name="sep-1.instance">
+                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+                        <attr name="position" intvalue="300"/>
+                    </file>
+                    <file name="sep-2.instance">
+                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+                        <attr name="position" intvalue="600"/>
+                    </file>
+                    <file name="sep-3.instance">
+                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+                        <attr name="position" intvalue="900"/>
+                    </file>
+                    <file name="sep-4.instance">
+                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
+                        <attr name="position" intvalue="1100"/>
+                    </file>
+                </folder>
+            </folder>
+        </folder>
+    </folder>
+    <folder name="Services">
+        <folder name="MIMEResolver">
+            <file name="AptResolver.xml" url="AptResolver.xml">
+                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.apache.maven.doxia.ide.netbeans.Bundle"/>
+            </file>
+        </folder>
+    </folder>
+    <folder name="Templates">
+        <folder name="Maven">
+            <file name="AptTemplate.apt" url="AptTemplate.apt">
+                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.apache.maven.doxia.ide.netbeans.Bundle"/>
+                <attr name="template" boolvalue="true"/>
+            </file>
+        </folder>
+    </folder>
+</filesystem>

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/ide/netbeans/deleteme.txt
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/ide/netbeans/deleteme.txt?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/ide/netbeans/deleteme.txt (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/ide/netbeans/deleteme.txt Tue Apr  8 04:47:32 2008
@@ -0,0 +1 @@
+Just delete me.
\ No newline at end of file

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/java/org/apache/maven/doxia/ide/netbeans/deleteme.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/resources/META-INF/services/org.openide.loaders.DataLoader
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/resources/META-INF/services/org.openide.loaders.DataLoader?rev=645865&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/resources/META-INF/services/org.openide.loaders.DataLoader (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/netbeans/src/test/resources/META-INF/services/org.openide.loaders.DataLoader Tue Apr  8 04:47:32 2008
@@ -0,0 +1 @@
+org.apache.maven.doxia.ide.netbeans.apt.AptDataLoader