Inside the JBuilder OpenTools API
Chapter 14 - Project Pane and Content Pane

Previous   Next   Listings

The XMLTools example works with a couple of the JBuilder OpenTools APIs. It adds items to the menus in the Project and Editor Panes that let you validate an XML document, open its external DTD or XML Schema files, or open its XSL stylesheet. The tool also adds a new viewer for XML documents to apply XSLT stylesheets to them. To keep track of which XML validation and XSL transformation engines to use, the tool makes use of global properties.

Zipped Files

XMLTools.jpx   The project file for this tool
XMLTools.html Project notes
classes.opentools The OpenTools manifest
XMLTools.java Common routines used by the other classes
XMLToolsPropertyGroup.java The property group for the XML global properties
XMLToolsPropertyPage.java The custom page for editing the properties grouped above
XMLToolsMenuGroup.java The ActionGroup for the various XML-based menu items
XMLValidateMenu.java The Validate XML popup menu item
XMLOpenFileMenu.java A base class for the file-open popup menu items
XMLOpenDTDMenu.java The Open DTD/Schema popup menu item
XMLOpenStylesheetMenu.java The Open Stylesheet popup menu item
XMLValidator.java An interface for interacting with an XML validation engine
XMLJaxpValidator.java An implementation of XMLValidator for JAXP
XMLXerces2Validator.java An implementation of XMLValidator for Xerces v2
XSLTransformer.java An interface for interacting with an XSL transformation engine
XSLXalan22Transformer.java An implementation of XSLTransformer for Xalan v1.0
XSLSaxon551Transformer.java An implementation of XSLTransformer for SAXON v5.5.1
XSLSaxon653Transformer.java An implementation of XSLTransformer for SAXON v6.5.3
XSLViewerFactory.java A factory to create node viewers for applying XSL to XML documents
XSLNodeViewer.java The actual XSLT viewer
XSLViewer.java The UI for the XSLT viewer
*.html The files that make up the documentation
XMLTools.jar The packaged tool
XMLToolsDoc.jar The packaged documentation

The TabProps example adds items to the popup menu on the Content Pane tabs.

  • Toggle tab orientation swaps the tab positions between the top and right-hand side of the pane.
  • Set label type brings up a sub-menu to let you select what is displayed on the tabs: file name, short file name, icon and short file name, or just icon.
  • Set insertion position brings up a sub-menu to let you choose where new tabs are inserted: in alphabetic order, in display order, at the start, to the left of current, to the right of current, or at the end.
  • Multiple rows of tabs toggles between multiple tiers of tabs or a single tier that scrolls (only available in JBuilder 8 and up).

Zipped Files

TabProps.jpx   The project file for this tool
TabProps.html Project notes
classes.opentools The OpenTools manifest
TabProps.java Add items to the Content Pane popup menu
TabProps.jar The packaged tool
Inside the JBuilder OpenTools API 2004, Keith Wood Previous   Next   Listings