This is an automated email from the ASF dual-hosted git repository.

geertjan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-website.git


The following commit(s) were added to refs/heads/master by this push:
     new a4e7168  Initial tweaks to remove links and irrelevant images
a4e7168 is described below

commit a4e716862cb45ffaa41fb0d54dd23fe0f74f7806
Author: Geertjan Wielenga <[email protected]>
AuthorDate: Sun Mar 7 15:49:26 2021 +0100

    Initial tweaks to remove links and irrelevant images
---
 .../src/content/tutorials/nbm-java-hint.asciidoc   | 43 +++++-----------------
 1 file changed, 9 insertions(+), 34 deletions(-)

diff --git a/netbeans.apache.org/src/content/tutorials/nbm-java-hint.asciidoc 
b/netbeans.apache.org/src/content/tutorials/nbm-java-hint.asciidoc
index ee8b7d8..d98adbe 100644
--- a/netbeans.apache.org/src/content/tutorials/nbm-java-hint.asciidoc
+++ b/netbeans.apache.org/src/content/tutorials/nbm-java-hint.asciidoc
@@ -37,45 +37,25 @@ image::images/result-1.png[]
 
 At the end of the second scenario, the user will be able to click the hint to 
delete the superfluous statement:
 
-
-image::images/result-7.png[]
-
 In addition, the user will be able to find and replace multiple instances of 
the superfluous statement, after using the "Inspect &amp; Transform" dialog in 
the Refactor menu, which displays all found instances in the Refactoring window:
 
-
-image::images/result-3.png[]
-
 NOTE:  This document is applicable to NetBeans IDE 8.0 and NetBeans Platform 
8.0. If you are using an earlier version, see  link:74/nbm-java-hint.html[the 
previous version of this document].
 
-
-
-
-
-
-
 For troubleshooting purposes, you are welcome to download the  
link:http://web.archive.org/web/20170409072842/http://java.net/projects/nb-api-samples/show/versions/8.0/tutorials/MyCustomHints[completed
 tutorial source code].
 
-
 == Learning About Java Hints
 
 The best way to learn about the Java hint infrastructure is to read the 
sources of the Java hints that are part of the IDE. Start by identifying a hint 
that does something similar to what you would like to achieve, then check out 
the NetBeans sources, and read the source code of the related hint.
 
-
 [start=1]
 1. Use Mercurial to clone the NetBeans sources:  
link:https://netbeans.apache.org/wiki/devfaqaccesssourcesusingmercurial[http://wiki.netbeans.org/DevFaqAccessSourcesUsingMercurial]
 
 [start=2]
 1. 
-In the NetBeans sources, browse to the "java.hints" folder, expand it, and 
read the sources relevant to the hint you want to create:
-
-
-image::images/hint-list.png[]
-
-The list of classes you see above is only the tip of the iceberg!
+In the NetBeans sources, browse to the "java.hints" folder, expand it, and 
read the sources relevant to the hint you want to create.
 
 The remainder of the tutorial shows you how to put a Java hint together 
generally, from scratch, but remember that the best place to look for useful 
snippets of code is in the sources above, if there is anything specific that 
you don't know how to do.
 
-
 == Setting Up the Module Project
 
 Before you start writing the module, you have to make sure you that your 
project is set up correctly. The IDE provides a wizard that sets up all the 
basic files needed for a module.
@@ -97,13 +77,8 @@ The IDE creates the  ``MyCustomHints``  project. The project 
contains all of you
 
 In this section, you provide the Java code for the Java hint.
 
-
 [start=1]
-1. Right-click the project node and choose New > Other > Module Development > 
Java Hint: 
-image::images/new-hint-1.png[]
-
-Click Next.
-
+1. Right-click the project node and choose New > Other > Module Development > 
Java Hint. Click Next.
 
 [start=2]
 1. In the New Java Hint Description panel, fill out the fields as follows: 
@@ -134,24 +109,24 @@ import org.netbeans.spi.java.hints.HintContext;
 import org.netbeans.spi.java.hints.TriggerPattern;
 import org.openide.util.NbBundle.Messages;
 
-link:http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-java-hints/org/netbeans/spi/java/hints/Hint.html[@Hint](displayName
 = "#DN_JOptionPaneHint",
+@Hint(displayName = "#DN_JOptionPaneHint",
       description = "#DESC_JOptionPaneHint", 
       category = "general")
-link:http://bits.netbeans.org/dev/javadoc/org-openide-util/org/openide/util/NbBundle.Messages.html[@Messages]({
+@Messages({
     "DN_JOptionPaneHint=JOptionPane.showMessageDialog",
     "DESC_JOptionPaneHint=Checks for JOptionPane.showMessageDialog."
 })
 public class JOptionPaneHint {
 
-link:http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-java-hints/org/netbeans/spi/java/hints/TriggerPattern.html[@TriggerPattern](
+@TriggerPattern(
             value = "$str.equals(\"\")", //Specify a pattern as needed
             constraints =
-link:http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-java-hints/org/netbeans/spi/java/hints/ConstraintVariableType.html[@ConstraintVariableType](
+@ConstraintVariableType(
                     variable = "$str", 
                     type = "java.lang.String"))
-link:http://bits.netbeans.org/dev/javadoc/org-openide-util/org/openide/util/NbBundle.Messages.html[@Messages]("ERR_JOptionPaneHint=Is
 JOptionPane.showMessageDialog needed?")
-    public static  
link:http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-editor-hints/org/netbeans/spi/editor/hints/ErrorDescription.html[ErrorDescription]
 computeWarning( 
link:http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-java-hints/org/netbeans/spi/java/hints/HintContext.html[HintContext]
 ctx) {
-        return  
link:http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-java-hints/org/netbeans/spi/java/hints/ErrorDescriptionFactory.html[ErrorDescriptionFactory].forName(
+@Messages("ERR_JOptionPaneHint=Is JOptionPane.showMessageDialog needed?")
+    public static  ErrorDescription computeWarning(HintContext ctx) {
+        return  ErrorDescriptionFactory.forName(
                 ctx, 
                 ctx.getPath(), 
                 Bundle.ERR_JOptionPaneHint());


---------------------------------------------------------------------
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

Reply via email to