<!-- <questionid="arch-what"> Whatisthisprojectgoodfor? <hint> Pleaseprovidehereafewlinesdescribingtheproject, whatproblemitshouldsolve,providelinkstodocumentation, specifications,etc. </hint> </question>
-->
<answer id="arch-what">
The JavaHelp integration API wraps the standard JavaHelp extension
library. It also provides a small additional API for NetBeans modules to
supply help sets to the system, add GUI menu items, and request that
particular help topics be displayed.
<api name="JavaHelpIntegrationAPI"type="export" category="official" url="@TOP@/index.html" group="java"/>
</answer>
<!-- <questionid="compat-standards"> Doesthemoduleimplementordefineanystandards?Isthe implementationexactordoesitdeviatesomehow? </question>
-->
<answer id="compat-standards">
It only implements its own integration API. The JavaHelp reference
implementation is bundled and that implements the JavaHelp API.
</answer>
<!-- <questionid="deploy-jar"> DoyoudeployjustmoduleJARfile(s)orotherfilesaswell? <hint> IfyourmoduleconsistsofjustonemoduleJARfile,justconfirmthat. IfitusesmorethanoneJAR,describewheretheyarelocated,how theyrefertoeachother. IfitconsistofmoduleJAR(s)andotherfiles,pleasedescribe whatistheirpurpose,whyotherfilesarenecessary.Please makesurethatinstallation/deinstallationleavesthesystem instateasitwasbeforeinstallation. </hint> </question>
-->
<answer id="deploy-jar">
<p>
The JavaHelp extension library (<samp>jh.jar</samp>) is included,
currently at version1.1.3.
</p>
<p>
<strong>Note</strong> that some versions of Solaris ship with their
own copy of this library in the location
<samp>/usr/j2se/opt/javahelp/lib/jhall.jar</samp>. Since this JAR is
included in the extensions path of the JRE on such machines, it would
override the copy of <samp>jh.jar</samp> shipped with the NetBeans
integration module. Normally this would be tolerable, but
unfortunately the version shipped with Solaris is outdated and
exhibits a number of serious bugs, especially in the handling of
Japanese search text, which make the NetBeans help system unusable
and which were fixed in subsequent official JavaHelp releases. (Note
that search databases for JavaHelp help sets are often not cleanly
usable in versions of JavaHelp other than the one in which they were
built, since details of how HTML substring indices are calculated
tend to be unstable between even minor releases.) To avoid such bugs,
the NetBeans launcher checks for the existence of the abovementioned
file, and if found, prepends the NetBeans <samp>jh.jar</samp> to the
JVM's boot classpath. Other options were considered and rejected as
unworkable.
</p>
</answer>
<!-- <questionid="exec-component"> Isexecutionofyourcodeinfluencedbyany(string)property ofanyofyourcomponents? <hint> Often<code>JComponent.getClientProperty</code>,<code>Action.getValue</code> or<code>PropertyDescriptor.getValue</code>,etc.areusedtoinfluence abehaviourofsomecode.Thisofcourseformsaninterfacethatshould bedocumented.Alsoifonedependsonsomeinterfacethatanobject implements(<code>componentinstanceofRunnable</code>)thatformsan APIaswell. </hint> </question>
-->
<answer id="exec-component">
<ul>
<li>
<api type="export" group="property" name="OpenIDE-mergeIntoMaster" category="official">
The context and key <code>OpenIDE/mergeIntoMaster</code> can be set as an attribute on a help set
provided programmatically rather than with an XML file to
customize one attribute. Such programmatic provision is rare
but supported.
</api>
</li>
<li>
<api type="export" group="property" name="javahelp.ignore.modality" category="friend">
The help window through JDK 1.5.0 handles modal dialogs by reparenting the help
component into a child dialog of any new modal dialog whenever it is shown, and
reparenting it back into a frame whenever it is hidden. Under certain circumstances
(showing two dialogs sequentially before the frame can be re-shown), it can produce
a race condition in the underlying java.awt.Toolkit implementation. As a workaround,
callers of DialogDisplayer.getDefault().notify(DialogDescriptor) may set the system
property "javahelp.ignore.modality" to the String "true". This system property will
be reset by notify(), and applied as a client property of the root pane of the dialog
to be shown. JavaHelp will, in turn, ignore the appearance of any dialog whose root
pane posesses the client property "javahelp.ignore.modality" with the String value "true".
</api>
<!-- <questionid="exec-privateaccess"> Areyouawareofanyotherpartsofthesystemcallingsomeof yourmethodsbyreflection? <hint> Ifso,describethe"contract"asanAPI.Likelyprivateorfriendone,but stillAPIandconsiderrewriteofit. </hint> </question>
-->
<answer id="exec-privateaccess">
<samp>openide-deprecated.jar</samp> calls the public API via
introspection to avoid a compile-time dependency.
</answer>
<!-- <questionid="exec-reflection"> DoesyourcodeuseJavaReflectiontoexecuteothercode? <hint> ThisusuallyindicatesamissingorunsufficientAPIintheother partofthesystem.Iftheothersideisnotawareofyourdependency thiscontractcanbeeasilybroken. </hint> </question>
-->
<answer id="exec-reflection">
There <em>is</em> a workaround for a Java bug (#4675772)
which almost involves reflection - manually removing entries from UI
defaults. Without this, the module will throw exceptions when disabled
and then reënabled without a restart.
<p/>
The module is using reflection to access the
<api name="ModalityExcludeAPI" category="friend" group="java"type="import">
offered by some JDKs and tracked as Java bug (5092094) <!-- see http://ccc.sfbay/5092094 if you can --> allowing to exclude modal
dialogs behaviour for certain windows - in this case the help window.
</api>.
</answer>
<!-- <questionid="format-types"> Whichprotocolsandfileformats(ifany)doesyourmodulereadorwriteondisk, ortransmitorreceiveoverthenetwork? </question>
-->
<answer id="format-types">
<ul>
<li>
The bundled JavaHelp code reads standard help sets.
</li>
<li>
There is a published XML DTD for declaring the existence of a
help set.
</li>
<li>
There is a published XML DTD for creating a menu item pointing to
a help topic.
</li>
<li>
<api group="dtd"
category="friend" type="export"
name="ObjectTag" url="@TOP@/overview-summary.html">
</api>
This tag is used in HTML content to create hyperlink like label in JHContentViewer. It invokes IDE
default HTML Browser to correctly display external links.
</li>
</ul>
</answer>
<!-- <questionid="lookup-lookup"> Doesyourmoduleuse<code>org.openide.util.Lookup</code> tofindanycomponentstocommunicatewith?Whichones? <hint> Pleasedescribetheinterfacesyouaresearchingfor,where aredefined,whetheryouaresearchingforjustoneormoreofthem, iftheorderisimportant,etc.Alsoclasifythestabilityofsuch APIcontract. </hint> </question>
-->
<answer id="lookup-lookup">
It searches for instances of <code>javax.help.HelpSet</code> in lookup,
according to the API specification.
</answer>
<!-- <questionid="lookup-register"> Doyouregisteranythingintolookupforothercodetofind? <hint> Doyouregisterusinglayerfileorusing<code>META-INF/services</code>? Whoissupposedtofindyourcomponent? </hint> </question>
-->
<answer id="lookup-register">
A singleton instance of <code>org.netbeans.api.javahelp.Help</code> is
registered into lookup, according to the API specification. Modules may
depend on its existence by requiring a token of the same name. An
instance of a handler for the <code>nbdocs</code> URL protocol (covered
in the specification) is also registered.
</answer>
<!-- <questionid="perf-huge_dialogs"> Doesyourmodulecontainanydialogsorwizardswithalargenumberof GUIcontrolssuchascomboboxes,lists,trees,ortextareas? </question>
-->
<answer id="perf-huge_dialogs">
The JavaHelp window is fairly complex, but the module only provides the
frame that contains it.
</answer>
<!-- <questionid="perf-limit"> Arethereanyhardcodedorpracticallimitsinthenumberorsizeof elementsyourcodecanhandle? </question>
-->
<answer id="perf-limit">
When displaying help, all help sets need to be parsed by JavaHelp to
determine the ID maps. For a large number of help sets, this might
consume too much memory and CPU to be practical. Also when displaying "merged" help (the normal case), all help sets need to be merged
together, which can also be time-consuming as their number grows.
</answer>
<!-- <questionid="perf-mem"> Howmuchmemorydoesyourcomponentconsume?Estimate witharelationtothenumberofwindows,etc. </question>
-->
<answer id="perf-mem">
Unknown. Help sets which are not in active use are supposed to be held
softly so they could be collected.
</answer>
<!-- <questionid="perf-menus"> Doesyourmoduleusedynamicallyupdatedcontextmenus,or context-sensitiveactionswithcomplicatedenablementlogic? </question>
-->
<answer id="perf-menus">
Menu items representing links to help topics are dynamically enabled or
disabled. They are always enabled in case help sets have not yet been
parsed, to avoid forcing a parse just to display the menu item; if
selected at this time when there is no actual corresponding ID, they will
do nothing. After help sets have been parsed, menu items referring to
help topics which are actually available (the normal case) are enabled.
In case a help topic is missing for some reason, the menu item is
disabled.
</answer>
<!-- <questionid="perf-progress"> Doesyourmoduleexecuteanylong-runningtasks? <hint>Typicallytheyaretaskslikeconnectingover network,computinghugeamountofdata,compilation. Suchcommunicationshouldbedoneasynchronously(forexample using<code>RequestProcessor</code>),definitivelyitshould notblockAWTthread. </hint> </question>
-->
<answer id="perf-progress">
Loading and merging help sets is done asynchronously since it can be
slow.
</answer>
<!-- <questionid="perf-scale"> Whichexternalcriteriainfluencetheperformanceofyour program(sizeoffileineditor,numberoffilesinmenu, insourcedirectory,etc.)andhowwellyourcodescales? Pleaseincludesomeestimates. </question>
-->
<answer id="perf-scale">
Size of help set XML files (the map file especially) probably impacts
parsing speed and memory consumption. Number of distinct help sets will
probably impact performance as well. Exact numbers unknown, but JavaHelp
appears to be pretty slow to parse and merge help sets.
</answer>
<!-- <questionid="perf-startup"> Doesyourmodulerunanycodeonstartup? </question>
-->
<answer id="perf-startup">
Yes, it registers a global AWT window listener. This appears to be the
only way to reliably tell whether a modal dialog is showing at a given
time (and to receive notification when one is shown). There is a rather
complex set of hacks to convert the help viewer into a nonmodal dialog
and reparent it to an active modal dialog; otherwise it would be
impossible to access help while a modal dialog was showing. There is an
open request for AWT to support multiple application contexts, which
would permit the help viewer to live in an independent context and not be
blocked by modal dialogs used in NetBeans, but until this is fixed there
is no known good solution to the modality problem.
</answer>
<!-- <questionid="resources-file"> Doesyourmoduleuse<code>java.io.File</code>directly? <hint> NetBeansprovidealogicalwrapperoverplainfilescalled <code>org.openide.filesystems.FileObject</code>that providesuniformaccesstosuchresourcesandistheprefered waythatshouldbeused.Butofcoursetherecanbesituationswhen thisisnotsuitable. </hint> </question>
-->
<answer id="resources-file">
It uses <code>InstalledFileLocator</code> to implement the
<code>nbdocs</code> URL protocol, permitting help sets or files to be
loaded from disk files in the NetBeans installation, rather than from
inside the module. This is necessary to make it easy for users to
customize CSS stylesheets, for example.
</answer>
<!-- <questionid="resources-layer"> Doesyourmoduleprovideownlayer?Doesitcreateanyfilesor foldersinit?Whatitistryingtocommunicatebythatandwithwhich components? <hint> NetBeansallowsautomaticanddeclarativeinstallationofresources bymodulelayers.Moduleregisterfilesintoappropriateplaces andothercomponentsusethatinformationtoperformtheirtask (buildmenu,toolbar,windowlayout,listoftemplates,setof options,etc.). </hint> </question>
-->
<answer id="resources-layer">
The layer registers the <code>Help</code> singleton, declares some XML
DTDs and their processors, installs some menu items, etc.
</answer>
<!-- <questionid="resources-mask"> Doesyourmodulemask/hide/overrideanyresourcesprovidedbyothermodulesin theirlayers? <hint> Ifyoumaskafileprovidedbyanothermodule,youprobablydepend onthatanddonotwanttheothermoduleto(forexample)change thefile'sname.ThatmoduleshallthusmakethatfileavailableasanAPI ofsomestabilitycategory. </hint> </question>
-->
<answer id="resources-mask">
No. However the <code>usersguide</code> module does mask the master help
link menu item created by this module, replacing it with a similar one
which jumps straight to the introductory page of the main NetBeans online
help.
</answer>
<!-- <questionid="resources-read"> Doesyourmodulereadanyresourcesfromlayers?Forwhatpurpose? <hint> Asthisissomekindofintermoduledependency,itisakindofAPI. Pleasedescribeitandclasifyaccordingto <ahref="http://openide.netbeans.org/tutorial/api-design.html#categories"> commonstabilitycategories</a>. </hint> </question>
-->
<answer id="resources-read">
Not directly. It uses lookup to find help sets, while providing an XML
processor to make this easier. It provides another XML processor
permitting modules to add menu items, but does not directly interpret
these.
</answer>
</api-answers>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.