Jindent Gold Integration for Netbeans
 
The integration module is shipped as a standard NetBeans Module - i.e. a .jar with a .nbm extension that contains a certain directory structure and an XML info document. Download the Netbeans file: nbjindent.nbm
This module is packaged in cern.cp.modules.jindent for consistency with other GP modules.

The integration doesn't check the presence of the jindent code.So be sure before you install the module that your Jindent.jar is located in <netbeans-home>\lib\ext\ (such as 'c:\netbeans\lib\ext') or you'll end up with class not found exceptions from NetBeans. Download the Jindent Gold 3.5 zip file: Jindent35Gold
Extract the Jindent program archive file into your chosen Jindent home directory. Add the path of the file Jindent.jar to your CLASSPATH definition. You need your personal jindent key file before you can run Jindent. Please follow the instaructions:
 

Enter the Jindent Customer Service Area:
  • Enter the URL http://license.jindent.com
  • Login using the login/password (for us AKF5739/K28MAF)
  • The first page shows our customer data.
Bind a license to a user:
  • Enter the Jindent Customer Service Area.
  • Enter the Licenses section to manage your current license account.
  • Unbound licenses are listed by their license id, license type and the identifier UNBOUND.
  • Choose the license you want to bind to the user to and click on Bind button (only unbound licenses offer a Bind button).
  • Enter the user's data. If you do not know the user's login name you can find out by letting the user invoke the following command line in the Jindent root directory: java WhoAmI. If you are using different user names on differnt machines/platforms you can enter all your user names separated by commas (eg. "username1,username2,username mobile").
  • Click on Lock License.
  • Confirm by clicking Ok.
Unbind a license:
  • If a license is not needed by a registered user anymore you can unbind that license and bind it to another user afterwards. Please make sure that the license key and all copies of it is deleted permanently before unbinding a license. To unbind a license follow the instructions below:
  • Enter the Jindent Customer Service Area.
  • Enter the Licenses section to manage your current license account. Bound licenses are listed by their license id, their license type and the user's data the license is bound to.
  • Choose the license you want to unbind click on the according Unbind button (only bound licenses offer a Unbind button).
  • Confirm that the current license user does not use the Jindent program under that license anymore and that all copies of the license key are deleted permanently.
  • Click on Unbind License.
  • Confirm by clicking Ok.
Obtain the license key file:
  • Enter the Jindent Customer Service Area.
  • Enter the Licenses section to manage your current license account.
  • Choose license you want to unbind and click on the according Send Key button (only bound licenses offer a Send Key button).
  • Confirm that the current license user does not use the Jindent program under that license anymore and that all copies of the license key are deleted permanently.
  • Click on Unbind License.
  • Confirm by clicking Ok.
Register the license key file:
  • Install the Jindent program.
  • After receving your individual license key via email please save the key file (in our example let's name it licenseID.jlk) into Jindent's home directory.
  • Run java Register licenseID.jlk directly from your Jindent home (Jindent home has to be the current directory while registering your Jindent.jar file).

  • Now after a succesfull proceeding your Jindent.jar is registered and you are able to run Jindent as usual.
To top
Module Installation
 
Place the module jindent.nbm in an appropriate download or temporary directory.
  • Launch NetBeans.
  • Select the menu 'Tools, Update Center'...
  • Select the radio button 'Install manually downloaded modules'.
  • Click 'Next >'.
  • Click 'Add...'.
  • Using the file chooser, browse to the directory where you placed jindent.nbm.
  • Click 'Next >'.
  • In the 'Available Modules' list you'll see 'Jindent'.
  • Click 'Next>' again.
  • The Forte/NetBeans Update Center then reads the module and verifies the contents.
  • Click 'Next >'.
  • A list will show the NetBeans Jindent module as not being signed; if you wish to install the module, please check 'Include'. The Update Center will then double check that you do wish to install it. If so, click 'Yes'.
  • Finally click 'Finish'; the module is installed and NetBeans is restarted.
  • To top
    Module Verification
     
    Select the 'Tools' menu; the menu items 'Jindent Commander' and 'Jindent Customizer' are available. Also, if a .java source file is currently open the 'Jindent' menu item also shows.
    To top
    Module Configuration
     
    Before Jindent can be used, the locations of the Jindent environment and properties files must be specified. Please refer to the Jindent document for an explanation of these files.
  • Select the menu 'Tools, Options'.
  • Open subsection 'Uncategorized' and you will find 'Jindent Settings'. Select them by clicking with the mouse.
  • Two properties show up: 'Environment File' and 'Properties File'

  • their initial values are the property type (java.io.File).
  • Click the 'Environment File' value button; then enter the path of your environment file or use the file chooser to browse.
  • Repeat these steps for the 'Properties File'.
  • From now on, whenever a NetBeans project is saved, these settings are also saved. You can change these properties at any time, by following the above instructions.
    To top
    Module Usage
     
    The Jindent Commander can be launched at any time, by selecting the 'Tools, Jindent Commander' menu. The Jindent Customizer can be launched at any time, by selecting the 'Tools, Jindent Customizer' menu. If you have configured the environment and/or properties file(s) the customizer is launched with their values. Whenever a .java source file is open, the 'Tools, Jindent' menu is enabled and can be selected. When the 'Tools, Jindent' menu is selected, the currently open source file is reformatted in memory. This means that the file is not re-read and no file is written to disk; rather the NetBeans standard Swing text document is used, allowing you to undo the reformat. Once the document is saved by NetBeans, the changes are made permanent.
    To top
    Module Uninstallation
     
    To uninstall the NetBeans Jindent Module, shut downNetBeans; then locate the '<netbeans-home>/modules' directory, where <netbeans-home> is the NetBeans home directory (such as 'c:\netbeansj') and delete the nbjindent.jar file.
    Then restart NetBeans. During the first restart you may see a 'Unable to read settings; default values will be used' error message.
    This is normal, since Forte/NetBeans stores settings using Java Bean serialization.
    When the module is removed from NetBeans' class path, the deserialization of those settings fail.
    Once the settings have been rewritten (e.g. by a 'Save Project' menu selection) this error no longer occurs.
    To top