This is an automated email from the ASF dual-hosted git repository. vieiro pushed a commit to branch hotfix/subs-macros in repository https://gitbox.apache.org/repos/asf/netbeans-website.git
commit dc0dd9c0449ec86fc1cf0aec90923f79eca79467 Author: Antonio Vieiro <[email protected]> AuthorDate: Sun Jan 2 20:46:31 2022 +0100 WIP: [source,java,subs="macros"] for links There're some missing subs="macros" for links. --- .../tutorials/nbm-projectextension.asciidoc | 23 ++++++++-------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/netbeans.apache.org/src/content/tutorials/nbm-projectextension.asciidoc b/netbeans.apache.org/src/content/tutorials/nbm-projectextension.asciidoc index 60befed..c2a75db 100644 --- a/netbeans.apache.org/src/content/tutorials/nbm-projectextension.asciidoc +++ b/netbeans.apache.org/src/content/tutorials/nbm-projectextension.asciidoc @@ -29,19 +29,14 @@ :experimental: :description: NetBeans Project Type Extension Module Tutorial - Apache NetBeans :keywords: Apache NetBeans Platform, Platform Tutorials, NetBeans Project Type Extension Module Tutorial +:reviewed: 2022-01-02 This tutorial demonstrates how to extend an existing project type. -NOTE: This document uses NetBeans Platform 7.2 and NetBeans IDE 7.2. If you are using an earlier version, see link:71/nbm-projectextension.html[the previous version of this document]. +NOTE: This document uses NetBeans Platform >= 7.2 and NetBeans IDE >= 7.2. If you are using an earlier version, see link:71/nbm-projectextension.html[the previous version of this document]. - - - - - -You will also make use of this icon, which you can right-click here and download: -image::images/webPagesBadge.gif[] +You will also make use of this icon, which you can right-click here and download: image:images/webPagesBadge.gif[] == Introduction to Project Extensions @@ -138,7 +133,7 @@ public abstract class Service { 1. Create a new Java class named ``ServiceImpl`` . Change the default code to the following: -[source,java] +[source,java, subs="macros"] ---- import javax.swing.JOptionPane; @@ -226,7 +221,7 @@ In this section, we change the node hierarchy in the Projects window for an exis 1. Create a Java class called ``ImportantFilesNodeFactory`` . Change the default code to the following: -[source,java] +[source,java,subs="macros"] ---- import org.netbeans.api.project.Project; @@ -269,7 +264,7 @@ public class ImportantFilesNodeFactory implements link:http://bits.netbeans.org 1. Create a new Java class called ``ImportantFilesNode`` , which will filter the node of the project's "nbproject" folder. A new display name and icon will be defined for that folder. Therefore, change the default code to the following: -[source,java] +[source,java, subs="macros"] ---- import java.awt.Image; @@ -326,8 +321,7 @@ public class ImportantFilesNode extends link:http://bits.netbeans.org/dev/javad [start=3] -1. Right-click this icon and save it in the main package of your module: -image::images/webPagesBadge.gif[] +1. Right-click this icon and save it in the main package of your module: image:images/webPagesBadge.gif[] Run the module and you will notice that web applications have your newly defined node, exposing the project's "nbproject" folder: @@ -344,7 +338,7 @@ In this section, we create two new tabs in the Project Properties dialog of the 1. Create a Java class called ``ImportantFilesCustomizerTab`` . Change the default code to the following: -[source,java] +[source,java,subs="macros"] ---- import java.awt.BorderLayout; @@ -476,7 +470,6 @@ public class ImportantFilesCustomizerTab Run the module again and notice that you now have two new tabs: - image::images/result-4.png[] In this tutorial, you have learned how to extend the project's lookup, logical view, and customizer. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
