All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnr.ide.actions.ShowHelpAction

java.lang.Object
   |
   +----com.sun.java.swing.AbstractAction
           |
           +----vnr.ide.actions.ClassViewAction
                   |
                   +----vnr.ide.actions.ShowHelpAction

public class ShowHelpAction
extends ClassViewAction
An action to show html based help for the selected text in the classview's codearea or if none is selected, show some help for vnr


Constructor Index

 o ShowHelpAction(ClassView)
create the action for the given class view

Method Index

 o actionPerformed(ActionEvent)
show help for the selected
 o findClosestMatch(String, String[])
find closest match for the text and file list provided
The closest match is currently defined as a file name that contains the supplied text
 o findExactMatch(String, String[])
find an exact match for the text and file list provided
An exact match is currently defined as a file name which ends with the supplied text and ".html" (the l is optional)
 o getFilesForPath(String)
get files in a help path

Constructors

 o ShowHelpAction
 public ShowHelpAction(ClassView v)
create the action for the given class view

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent ae)
show help for the selected

Overrides:
actionPerformed in class ClassViewAction
 o getFilesForPath
 public String[] getFilesForPath(String path)
get files in a help path

 o findExactMatch
 public File findExactMatch(String text,
                            String files[])
find an exact match for the text and file list provided
An exact match is currently defined as a file name which ends with the supplied text and ".html" (the l is optional)

 o findClosestMatch
 public File findClosestMatch(String text,
                              String files[])
find closest match for the text and file list provided
The closest match is currently defined as a file name that contains the supplied text


All Packages  Class Hierarchy  This Package  Previous  Next  Index