fix apidoc release90 broken links
diff --git a/api.htmlui/apichanges.xml b/api.htmlui/apichanges.xml
index 978625a..b6ef916 100644
--- a/api.htmlui/apichanges.xml
+++ b/api.htmlui/apichanges.xml
@@ -57,7 +57,7 @@
         <compatibility addition="yes" binary="compatible" source="compatible"/>
         <description>
             <p>
-                The <a onclick="target='_blank'" href="http://bits.netbeans.org/html+java/">
+                The <a href="https://bits.netbeans.org/html+java/dev">
                     HTML UI API for Java
                     </a> 
                 revision 1.1 supports technolgy identifiers. Now they can
@@ -78,7 +78,7 @@
         <compatibility addition="yes" binary="compatible" source="compatible"/>
         <description>
             <p>
-                The <a onclick="target='_blank'" href="http://bits.netbeans.org/html+java/">
+                The <a href="https://bits.netbeans.org/html+java/dev">
                     HTML UI API for Java
                     </a> 
                 and NetBeans has been included
diff --git a/api.htmlui/arch.xml b/api.htmlui/arch.xml
index b6c9bd2..8453135 100644
--- a/api.htmlui/arch.xml
+++ b/api.htmlui/arch.xml
@@ -35,7 +35,7 @@
   <p>
    <api name="HTMLUI" category="official" group="java" type="export">
    NetBeans Platform specific bindings over
-   standard <a href="http://bits.netbeans.org/html+java/" onclick="target='_blank'">HTML for Java</a> API.
+   standard <a href="https://bits.netbeans.org/html+java/dev">HTML for Java</a> API.
    </api>
   </p>
  </answer>
@@ -58,7 +58,7 @@
    in NetBeans Platform. To achieve that it provides specific annotatations
    like <a href="@TOP@/org/netbeans/api/htmlui/OpenHTMLRegistration.html">@OpenHTMLRegistration</a>,
    but otherwise it builds on the same usecases as the
-   <a onclick="target='_blank'" href="http://bits.netbeans.org/html+java/">HTML for Java</a> API.
+   <a href="https://bits.netbeans.org/html+java/dev">HTML for Java</a> API.
   </p>
   <usecase id="window" name="Portable HTML based Window">
       <a name="use-window"></a>
@@ -110,7 +110,7 @@
  <answer id="arch-what">
   <p>
   NetBeans Platform specific bindings over
-   standard <a onclick="target='_blank'" href="http://bits.netbeans.org/html+java/">HTML for Java</a> API.
+   standard <a href="https://bits.netbeans.org/html+java/dev">HTML for Java</a> API.
   </p>
  </answer>
 
@@ -337,11 +337,11 @@
   <p>
   The HTML for Java &amp; NetBeans API is a classical NetBeans module. However 
   it depends on other modules provided by the 
-  <a onclick="target='_blank'" href="http://bits.netbeans.org/html+java/">HTML for Java</a>
+  <a href="https://bits.netbeans.org/html+java/dev">HTML for Java</a>
   project and those are OSGi bundles. As such, when one decides to use this 
   module, one needs to turn on an OSGi container inside of the NetBeans Platform.
-  It can be either <a onclick="target='_blank'" href="http://felix.apache.org">Felix</a> or 
-  NetBeans version of <a onclick="target='_blank'" href="http://wiki.apidesign.org/wiki/Netbinox">Equinox</a>.
+  It can be either <a href="http://felix.apache.org">Felix</a> or 
+  NetBeans version of <a href="http://wiki.apidesign.org/wiki/Netbinox">Equinox</a>.
   </p>
  </answer>
 
diff --git a/api.templates/apichanges.xml b/api.templates/apichanges.xml
index 95d2b26..0576d1a 100644
--- a/api.templates/apichanges.xml
+++ b/api.templates/apichanges.xml
@@ -87,7 +87,7 @@
           <compatibility addition="yes" binary="compatible" source="compatible"/>
           <description>
               <p>
-                  The <a onclick="target='_blank'" href="http://bits.netbeans.org/html+java/">
+                  The <a href="https://bits.netbeans.org/html+java/dev">
                       HTML UI API for Java
                   </a>
                   revision 1.1 supports technolgy identifiers. Now they can
diff --git a/api.templates/arch.xml b/api.templates/arch.xml
index bbf2e66..ad91ef8 100644
--- a/api.templates/arch.xml
+++ b/api.templates/arch.xml
@@ -339,8 +339,8 @@
             way to rewrite the <a href="#html-and-js">HTML and JavaScript sample</a>
             to <b>Java</b>
             (and possibly run it in a plugin-less browser via 
-            <a onclick="target='_blank'" href="http://bck2brwsr.apidesign.org">bck2brwsr VM</a>). Keep the
-            same HTML, <a onclick="target='_blank'" href="http://freemarker.org/">Freemarker</a>, etc.
+            <a href="http://bck2brwsr.apidesign.org">bck2brwsr VM</a>). Keep the
+            same HTML, <a href="http://freemarker.org/">Freemarker</a>, etc.
             files - just instead of encoding the logic in JavaScript use Java:
         </p>
 <pre>
@@ -374,9 +374,9 @@
 </pre>        
 <p>
     The return value of the annotated method is now an
-    <a onclick="target='_blank'" href="http://bits.netbeans.org/html+java/">HTML/Java</a>
+    <a href="https://bits.netbeans.org/html+java/dev">HTML/Java</a>
     model class which can naturally represent the essential 
-    <a onclick="target='_blank'" href="http://knockoutjs.com">Knockout.js</a> objects
+    <a href="http://knockoutjs.com">Knockout.js</a> objects
     in Java. 
 </p>
     </usecase>
diff --git a/maven/arch.xml b/maven/arch.xml
index cefab0a..d48b694 100644
--- a/maven/arch.xml
+++ b/maven/arch.xml
@@ -265,7 +265,7 @@
              One can define following code in nbactions.xml file to start
              a process during goal execution and attach a debugger to it
              once the execution is over. Here is an example using
-             <a onclick="target='_blank'" href="https://github.com/simpligility/android-maven-plugin/pull/584">enhancement</a>
+             <a href="https://github.com/simpligility/android-maven-plugin/pull/584">enhancement</a>
              in the Maven Android plugin:
              </p>
 <pre>
diff --git a/nbbuild/antsrc/org/netbeans/nbbuild/CheckLinks.java b/nbbuild/antsrc/org/netbeans/nbbuild/CheckLinks.java
index d0bbc40..4f55bbf 100644
--- a/nbbuild/antsrc/org/netbeans/nbbuild/CheckLinks.java
+++ b/nbbuild/antsrc/org/netbeans/nbbuild/CheckLinks.java
@@ -132,7 +132,7 @@
         JUnitReportWriter.writeReport(this, null, report, Collections.singletonMap("testBrokenLinks", testMessage));
     }
     
-    private static Pattern hrefOrAnchor = Pattern.compile("<(a|img|link)(\\s+shape=\"rect\")?(?:\\s+rel=\"stylesheet\")?\\s+(href|name|src)=\"([^\"#]*)(#[^\"]+)?\"(\\s+shape=\"rect\")?(?:\\s+type=\"text/css\")?\\s*/?>", Pattern.CASE_INSENSITIVE);
+    private static Pattern hrefOrAnchor = Pattern.compile("<(a|img|link|h3)(\\s+shape=\"rect\")?(?:\\s+rel=\"stylesheet\")?\\s+(href|name|id|src)=\"([^\"#]*)(#[^\"]+)?\"(\\s+shape=\"rect\")?(?:\\s+type=\"text/css\")?\\s*/?>", Pattern.CASE_INSENSITIVE);
     private static Pattern lineBreak = Pattern.compile("^", Pattern.MULTILINE);
     
     /**
@@ -459,7 +459,7 @@
             while (m.find()) {
                 // Get the stuff involved:
                 String type = m.group(3);
-                if (type.equalsIgnoreCase("name")) {
+                if (type.equalsIgnoreCase("name") || (type.equalsIgnoreCase("id") && !unescape(m.group(4)).startsWith("#"))) {
                     // We have an anchor, therefore refs to it are valid.
                     String name = unescape(m.group(4));
                     if (names.add(name)) {
diff --git a/nbbuild/build.properties b/nbbuild/build.properties
index 5b459af..3f99fc6 100644
--- a/nbbuild/build.properties
+++ b/nbbuild/build.properties
@@ -152,7 +152,14 @@
     print,\
     extexecution,\
     lib.uihandler,\
-    uihandler
+    uihandler,\
+    openide.options,\
+    editor,\
+    editor.lib,\
+    editor.indent,\
+    editor.indent.support,\
+    editor.bracesmatching,\
+    editor.util
 
 #FIXME: changes for retouche merge:
 #   editor/codetemplates,\
diff --git a/openide.awt/arch.xml b/openide.awt/arch.xml
index 8596b2a..b551c36 100644
--- a/openide.awt/arch.xml
+++ b/openide.awt/arch.xml
@@ -111,14 +111,14 @@
 -->
  <answer id="arch-usecases">
   <p>
-     <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">
+     <a href="https://leanpub.com/nbp4beginners">
      <img src="http://wiki.apidesign.org/images/0/03/NetBeansPlatformForBeginners.jpg"
         style="float: right"
           width="60" height="70" alt="Cover of NetBeans Platform for Beginners book"/>
      </a>
     For general overview of the concepts of NetBeans action system and related UI elements, 
     together with code samples, see chapter 5, 
-    of <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
+    of <a href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
     by Jason Wexbridge and Walter Nyland.
   </p>
  </answer>
diff --git a/openide.explorer/arch.xml b/openide.explorer/arch.xml
index 8920ea4..c92e55b 100644
--- a/openide.explorer/arch.xml
+++ b/openide.explorer/arch.xml
@@ -67,14 +67,14 @@
 <answer id="arch-usecases">
     
   <p>
-     <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">
+     <a href="https://leanpub.com/nbp4beginners">
      <img src="http://wiki.apidesign.org/images/0/03/NetBeansPlatformForBeginners.jpg"
         style="float: right"
           width="60" height="70" alt="Cover of NetBeans Platform for Beginners book"/>
      </a>
     For general overview of the concepts related to <a href="@org-openide-nodes@/overview-summary.html">nodes</a> and explorers, 
     together with code samples, see chapter 7, 
-    of <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
+    of <a href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
     by Jason Wexbridge and Walter Nyland.
   </p>
 </answer>
diff --git a/openide.filesystems/arch.xml b/openide.filesystems/arch.xml
index b544204..51d9f01 100644
--- a/openide.filesystems/arch.xml
+++ b/openide.filesystems/arch.xml
@@ -857,14 +857,14 @@
 -->
  <answer id="arch-usecases">
   <p>
-     <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">
+     <a href="https://leanpub.com/nbp4beginners">
      <img src="http://wiki.apidesign.org/images/0/03/NetBeansPlatformForBeginners.jpg"
         style="float: right"
           width="60" height="70" alt="Cover of NetBeans Platform for Beginners book"/>
      </a>
     For general overview of the filesystem concepts, related topics, 
     together with code samples, see chapter 3, 
-    of <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
+    of <a href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
     by Jason Wexbridge and Walter Nyland.
    Many of the usecases are described at the
    <a href="@TOP@/org/openide/filesystems/doc-files/api.html">overall documentation</a>,
diff --git a/openide.modules/arch.xml b/openide.modules/arch.xml
index db027ff..5c35369 100644
--- a/openide.modules/arch.xml
+++ b/openide.modules/arch.xml
@@ -48,14 +48,14 @@
 </answer>
 
 <answer id="arch-usecases">
-     <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">
+     <a href="https://leanpub.com/nbp4beginners">
      <img src="http://wiki.apidesign.org/images/0/03/NetBeansPlatformForBeginners.jpg"
         style="float: right"
           width="60" height="70" alt="Cover of NetBeans Platform for Beginners book"/>
      </a>
     For general overview of the concepts, 
     together with code samples, see chapter 2, 
-    of <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
+    of <a href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
     by Jason Wexbridge and Walter Nyland.
     
     Gory technical details are explained on <a href="@TOP@/org/openide/modules/doc-files/api.html">
diff --git a/openide.nodes/arch.xml b/openide.nodes/arch.xml
index b010a41..2898873 100644
--- a/openide.nodes/arch.xml
+++ b/openide.nodes/arch.xml
@@ -55,14 +55,14 @@
 <answer id="arch-usecases">
     
   <p>
-     <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">
+     <a href="https://leanpub.com/nbp4beginners">
      <img src="http://wiki.apidesign.org/images/0/03/NetBeansPlatformForBeginners.jpg"
         style="float: right"
           width="60" height="70" alt="Cover of NetBeans Platform for Beginners book"/>
      </a>
     For general overview of the concepts related to nodes and <a href="@org-openide-explorer@/overview-summary.html">explorers</a>, 
     together with code samples, see chapter 7, 
-    of <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
+    of <a href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
     by Jason Wexbridge and Walter Nyland.
   </p>
 </answer>
diff --git a/openide.util.lookup/arch.xml b/openide.util.lookup/arch.xml
index 00e1797..d462f94 100644
--- a/openide.util.lookup/arch.xml
+++ b/openide.util.lookup/arch.xml
@@ -64,7 +64,7 @@
 
 
  <answer id="arch-usecases">
-     <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">
+     <a href="https://leanpub.com/nbp4beginners">
      <img src="http://wiki.apidesign.org/images/0/03/NetBeansPlatformForBeginners.jpg"
         style="float: right"
           width="60" height="70" alt="Cover of NetBeans Platform for Beginners book"/>
@@ -74,7 +74,7 @@
     <a href="@TOP@/org/openide/util/Lookup.html">javadoc</a>. 
     For details on this topic, 
     together with code samples, see chapter 4, 
-    of <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
+    of <a href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
     by Jason Wexbridge and Walter Nyland.
     In addition to that here is
     a list of frequently asked or interesting questions slowly expanding as
diff --git a/openide.windows/arch.xml b/openide.windows/arch.xml
index c9775d2..e750eda 100644
--- a/openide.windows/arch.xml
+++ b/openide.windows/arch.xml
@@ -96,14 +96,14 @@
 <answer id="arch-usecases">
     
   <p>
-     <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">
+     <a href="https://leanpub.com/nbp4beginners">
      <img src="http://wiki.apidesign.org/images/0/03/NetBeansPlatformForBeginners.jpg"
         style="float: right"
           width="60" height="70" alt="Cover of NetBeans Platform for Beginners book"/>
      </a>
     For general overview of the concepts, 
     together with code samples, see chapter 6, 
-    of <a onclick="target='_blank'" href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
+    of <a href="https://leanpub.com/nbp4beginners">NetBeans Platform for Beginners</a> 
     by Jason Wexbridge and Walter Nyland.
   </p>