Difference between revisions of "Providing help for your plug-in (How to extend Rodin Tutorial)"

From Event-B
Jump to navigationJump to search
imported>Pascal
imported>Pascal
Line 1: Line 1:
 
{{Navigation|Previous= [['''FIXME'''|Extending the Proof Obligation Generator]]|Next=[['''FIXME'''|Extending the structured editor]] | Up= [[Plug-in_Tutorial|How to extend Rodin Tutorial (Index)]]}}
 
{{Navigation|Previous= [['''FIXME'''|Extending the Proof Obligation Generator]]|Next=[['''FIXME'''|Extending the structured editor]] | Up= [[Plug-in_Tutorial|How to extend Rodin Tutorial (Index)]]}}
  
=== Providing Help Contents ===
+
=== Creating the Help Plug-in ===
 
Each plug-in that contributes help files shall extend the <tt>org.eclipse.help.toc</tt> extension point and create the TOC files that describe the table of contents for the help and the topic interleaving.
 
Each plug-in that contributes help files shall extend the <tt>org.eclipse.help.toc</tt> extension point and create the TOC files that describe the table of contents for the help and the topic interleaving.
  
==== Creating the Help Plug-in ====
 
 
Let's first create such a plug-in. It will only contain documentation files, and the "Create Java Project" option (tag 1) do not need to be checked.
 
Let's first create such a plug-in. It will only contain documentation files, and the "Create Java Project" option (tag 1) do not need to be checked.
  
Line 15: Line 14:
 
[[Image:help_project_toc.png]]
 
[[Image:help_project_toc.png]]
  
==== Examining the Help Files ====
+
=== Examining the Help Files ===
 
[[Image:help_files.png | right]]
 
[[Image:help_files.png | right]]
 
Three .xml files have been created:
 
Three .xml files have been created:
Line 32: Line 31:
 
The contents is provided as .html files and linked from the tables of contents.
 
The contents is provided as .html files and linked from the tables of contents.
  
==== Viewing the Help Contents ====
+
=== Viewing the Help Contents ===
 
Launch the Rodin platform and select Help > Help Contents. We can see that a new Test TOC item has been created.
 
Launch the Rodin platform and select Help > Help Contents. We can see that a new Test TOC item has been created.
  
 
[[Image:help_contents.png]]
 
[[Image:help_contents.png]]
  
=== Option 1: Writing the Help Files ===
+
=== Filling the HTML Files ===
  
=== Option 2: Generating the Help Files ===
+
==== Writing the Help Contents ====
  
 +
==== Generating the Help Contents ====
  
  

Revision as of 12:36, 23 August 2010

Creating the Help Plug-in

Each plug-in that contributes help files shall extend the org.eclipse.help.toc extension point and create the TOC files that describe the table of contents for the help and the topic interleaving.

Let's first create such a plug-in. It will only contain documentation files, and the "Create Java Project" option (tag 1) do not need to be checked.

Help project.png

Then, the easiest way to proceed for beginners is to start from the available template:

Help project template.png

Help project toc.png

Examining the Help Files

Help files.png

Three .xml files have been created:

  1. plugin.xml
  2. testToc.xml
  3. toc.xml

When opening the plugin.xml file, we can see that the testToc.xml file is a primary file, i.e. it contains the master table of contents; toc.xml is not primary, but is integrated into this table of contents.

Help plugin file.png

Help toc primary file.png

Help toc file.png

The contents is provided as .html files and linked from the tables of contents.

Viewing the Help Contents

Launch the Rodin platform and select Help > Help Contents. We can see that a new Test TOC item has been created.

Help contents.png

Filling the HTML Files

Writing the Help Contents

Generating the Help Contents