
[ Previous ] [ Index ] [ Next ]


You may also want an icon to represent your hablet in the form of a 32 pixel by 32 pixel GIF to display in the Tools Palette.
the hablet into a class. (Make
sure that your Habanero installation
directory and the apps directory are in the CLASSPATH.)
|
If you don't specify a GIF, Habanero will use a no icon. If you do have a GIF but it is of a different size, Habanero will scale it for you. |
| tool.name | The name the Habanero client will display for this hablet. |
| tool.picture | The name of the GIF in rsc/env/co_images to use as an icon for this hablet. You can leave out this line if you do not want an icon. |
| tool.classname | The main hablet class. Normally the package name, a period, and the hablet class' name. |
| tool.version | The version number you assign to this hablet. |
| tool.useOwnStream | Whether or not the tool should use its own stream for communicaton. |
| Running Example from the example of habanerizing TextDemo.java. |
|
Place TextBoxIcon.gif into rsc/env/co_images in your Habanero installation's directory and create the file habanero.rsc/toolsDir/HabTextDemo which contains: # The Text Demo hablet properties file tool.name=Text Demo tool.picture=TextBoxIcon.gif tool.classname=TextDemo.HabTextDemo tool.version=v0.1 tool.useOwnStream=true |
| You can now run Habanero and your new tool should be available.
If you are using UNIX or Windows,
|
|
|
If you want to use another habanero.rsc directory for testing, you can use the -local command line switch when invoking the client. For example: java Habanero -local habanero2.rsc If you want to run Habanero twice from the same machine, specify a differerent
port using the -listen command line switch. For example:
If you have a web page documenting your hablet, you can add to the tool file: tool.help="http://url.for.the.help.pages" There are various other attributes which you do not need for a simple hablet. They are discussed in these advanced section patterns: Arbitrators, ColObjects not yet written, Defining new toolsDir attributes not yet written, there might be others. |
Habanero® is a registered trademark owned by The Board of Trustees of the University of Illinois. Copyright 1996-1998. All rights reserved. Java(TM) is a proprietary trademark owned by Sun Microsystems, Inc.
![]()
The National Center for Supercomputing Applications
University of Illinois at Urbana-Champaign
Contacts page