More on javahelp ...

This commit is contained in:
7u83 2017-12-07 19:17:32 +01:00
parent 2ba34763af
commit 1efc9ab4c6
5 changed files with 125 additions and 79 deletions

View File

@ -1,4 +1,4 @@
#Mon, 04 Dec 2017 20:52:26 +0100
#Thu, 07 Dec 2017 16:22:48 +0100
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=

View File

@ -20,16 +20,5 @@
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="599" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="354" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
</Form>

View File

@ -61,8 +61,8 @@ URL url = HelpSet.findHelpSet(null, helpHS); //, "xml", Locale.ENGLISH);
setTitle("SeSim Help");
//setSize(800,600);
setTitle("Help");
setSize(800,600);
getContentPane().add(helpViewer);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
//setVisible(true);
@ -79,17 +79,6 @@ URL url = HelpSet.findHelpSet(null, helpHS); //, "xml", Locale.ENGLISH);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 599, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 354, Short.MAX_VALUE)
);
pack();
}// </editor-fold>//GEN-END:initComponents

24
src/resources/TOC.xml Normal file
View File

@ -0,0 +1,24 @@
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE toc
PUBLIC
"-//Sun Microsystems Inc.//DTD
JavaHelp TOC Version 2.0//EN"
"http://java.sun.com/products/javahelp/toc_2_0.dtd">
<toc version="2.0">
<tocitem image="toplevelfolder"
text="Java Development Environment">
<tocitem target="jde.intro">Introduction to JDE Online Help />
<tocitem text="IDE Tutorial" target="tut.starttoc">
<tocitem text="Introducing JDE" target="tut.intro" />
<tocitem text="Tutorial One" target="tut.quickstart" />
<tocitem text="Tutorial Two" target="tut.edit" />
<tocitem text="Tutorial Three" target="tut.errors" />
</tocitem>
<tocitem text="Beans in JDE" target="bean.jbeanstory" />
<tocitem text="Tips on Using Beans Effectively"
target="bean.beantips"
mergetype="javax.help.SortMerge"
presentationtype="javax.help.SecondaryWindow"
presentationname="mainsw" />
</tocitem>
</toc>

View File

@ -1,59 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2017, 7u83 <7u83@mail.ru>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
-->
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE helpset
PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN"
"http://java.sun.com/products/javahelp/helpset_1_0.dtd">
<helpset version="1.0">
<title>Aviation Information</title>
<maps>
<homeID>intro</homeID>
<mapref location="Map.jhm"/>
</maps>
<view>
<name>TOC</name>
<label>Aviation TOC</label>
<type>javax.help.TOCView</type>
<data>TOC.xml</data>
</view>
<view>
<name>Index</name>
<label>Aviation Index</label>
<type>javax.help.IndexView</type>
<data>Index.xml</data>
</view>
<view>
<name>Search</name>
<label>Aviation Word Search</label>
<type>javax.help.SearchView</type>
<data engine="com.sun.java.help.search.DefaultSearchEngine">
JavaHelpSearch
</data>
</view>
<helpset version="2.0">
<!-- title -->
<title>Java Development Environment - Help</title>
<!-- maps -->
<maps>
<homeID>top </homeID>
<mapref location="Map.jhm" />
</maps>
<!-- views -->
<view xml:lang="en" mergetype="javax.help.UniteAppendMerge">
<name>TOC</name>
<label>SeSim Table Of Contents</label>
<type>javax.help.TOCView</type>
<data>TOC.xml</data>
</view>
<view xml:lang="en" mergetype="javax.help.SortMerge">
<name>Index</name>
<label>Index</label>
<type>javax.help.IndexView</type>
<data>IdeHelpIndex.xml</data>
</view>
<view xml:lang="en">
<name>Search</name>
<label>Search</label>
<type>javax.help.SearchView</type>
<data engine="com.sun.java.help.search.DefaultSearchEngine">
JavaHelpSearch
</data>
</view>
<!-- A glossary navigator -->
<!-- <view mergetype="javax.help.SortMerge">
<name>glossary</name>
<label>Glossary</label>
<type>javax.help.GlossaryView</type>
<data>glossary.xml</data>
</view>
-->
<!-- A favorites navigator -->
<view>
<name>favorites</name>
<label>Favorites</label>
<type>javax.help.FavoritesView</type>
</view>
<!-- presentation windows -->
<!-- This window is the default one for the helpset.
* Its title bar says "Project X Help". It
* is a tri-paned window because displayviews, not
* defined, defaults to true and because a toolbar is defined.
* The toolbar has a back arrow, a forward arrow, and
* a home button that has a user-defined image.
-->
<presentation default="true">
<name>main window</name>
<size width="400" height="400" />
<location x="200" y="200" />
<title>Project X Help</title>
<toolbar>
<helpaction>javax.help.BackAction</helpaction>
<helpaction>javax.help.ForwardAction</helpaction>
<helpaction image="homeicon">javax.help.HomeAction</helpaction>
</toolbar>
</presentation>
<!-- This window is simpler than the main window.
* It's intended to be used a secondary window.
* It has no navigation pane or toolbar.
-->
<presentation displayviews="false">
<name>secondary window</name>
<size width="200" height="200" />
<location x="200" y="200" />
</presentation>
<!-- subhelpsets -->
<subhelpset location="file:/c:/Foobar/HelpSet2.hs" />
<!-- implementation section -->
<impl>
<helpsetregistry helpbrokerclass="javax.help.DefaultHelpBroker" />
<viewerregistry viewertype="text/html"
viewerclass="com.sun.java.help.impl.CustomKit />
<viewerregistry viewertype="text/xml"
viewerclass="com.sun.java.help.impl.CustomXMLKit />
</impl>
</helpset>