wood.keith.opentools.otnode
Class OTFileNode
- public class OTFileNode
- extends TextFileNode
- This class registers the .opentools file extension. It defines where to find the TextEditorKit class that understands its syntax and the class that can produce the Structure Pane content.
- Version:
- 1.0 12 September 2001
- 1.1 19 February 2002
- 2.0 20 May 2003
- 2.1 10 December 2003
- Author:
- Keith Wood (kbwood@iprimus.com.au)
OTFileNode
public OTFileNode(Project project,
Node parent,
Url url)
- All FileNode subtypes must expose this constructor signature.
- Parameters:
project - the Project to which this file node belongs
parent - the file node parent
url - the location of the file
initOpenTool
public static void initOpenTool(byte majorVersion,
byte minorVersion)
- Register the new file type. Provides the needed OpenTools interface required to register the FileNode we are defining.
- Parameters:
majorVersion - the major version of the current OpenTools API
minorVersion - the minor version of the current OpenTools API
getDisplayIcon
public Icon getDisplayIcon()
- Provide alternative icon.
- Returns:
- the icon for file type
getEditorKitClass
public Class getEditorKitClass()
- Provide alternative TextEditorKit.
- Returns:
- the TextEditorKit class for file type
getTextStructureClass
public Class getTextStructureClass()
- Provide alternative provider for Structure Pane content.
- Returns:
- the TextStructure class for file type