This project contains two separate sample classes that demonstrate how to add options to the command line used to start JBuilder:
HelloWorld.java
shows the bare minimum required to register
a new command line option.
TreeFont.java
adds the option of setting the font size used
in trees in the IDE, such as the project and structure panes. This demonstrates
an option that takes arguments, and how a command line option can stop the
IDE from loading if necessary.
This sample follows the standard installation for OpenTools addins. Once they have been added to JBuilder's classpath, run them by appending the appropriate option to the launcher command line:
jbuilder -help
displays the new options, -hello
and -treefont
, in addition to the standard ones, such as
-license
and -verbose
jbuilder -hello
displays the Hello World message and
terminates
jbuilder -treefont 15
will start the IDE with the tree font
size at 15 points instead of the default (usually 12 points).