TOC PREV NEXT INDEX



Samples of the extended IDE


The following samples have been shortened, but will demonstrate the proper use of the tags and commands available to extend the IDE. Package names have been omitted from the Java code, but may be used if desired.

Adding a command to the help menu

This example shows how to add a new command to the help menu, using command= . The command being added opens up Netscape to the Simplicity home page. The path given is for an iMac; you will have to change this to reflect your computer

<Menubar>
# all text from the '#' onwards is a comment.

# ... other menus should be defined here...
<Menu label=Help>
<MenuItem label="User Guide..." alwaysEnabled=true>
# the user guide should always available
<action class=datarep.ide.config.LaunchUserGuideAction>
# the above action launches the user guide
</menuitem> # this tag is optional
<Separator>
<MenuItem label="Go to data representation's home page" alwaysEnabled=true>
<action command="/myiMac/Internet/Netscape NavigatorTM
http://www.datarepresentations.com">
# note that there is a tab separating the path name from
# the web site.
</menuItem>
</menu> # this tag is not optional
</menubar>

Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX