Software
Download Contributors |
Software::Pretty Printer - IDE plugins |
||
Elixir IDEInstallation depends on the version of Elixir that you have. Version 2.4 If you have version Elixir version 2.4, then you place the jrefactory.jar file in <Your Home Directory>/.ElixirIDE/2.4/ext. Version 2.2 If you have version 2.2, then add jrefactory.jar to your classpath. Then add the jrefactory.jar file to your classpath. You also need to edit the file named ide.scm in <Your Home Directory>/.ElixirIDE/2.2. Add the following lines to the end of the file. ; Chris's Extensions start here (define prettyprint (method "prettyPrint" "org.acm.seguin.pretty.ElixirPrettyPrinter") ) (add-menu-item "Script|-") (add-menu-item "Script|Pretty Printer=(prettyprint)") (println "Done Chris's extensions") Version 2.0 or earlier If you are using Elixir IDE 2.0 or earlier, and you want to use the latest release of the pretty printer, please contact me. With any version of Elixir IDE, to use the pretty printer select the Script menu item, then select Pretty Printer while the current window hold a java file. NetBeansTo install this software, install the file JRefactoryModule.jar in the module directory. To use this software, open the .java file and the pretty printer option appears on the tools menu. Symantec Visual CafeNote that this software is somewhat experimental. To install the software with Symantec's Visual Cafe version 3.0, place jrefactory.jar in <Visual Cafe Directory>/bin/components. Then edit the sc.ini file in <Visual Cafe Directory>/bin. Add to the end of the line that specifies the classpath, the following: ;%@P%\COMPONENTS\jrefactory.jar Once you restart Symantec's Visual Cafe, there will be a new menu option "Extensions" with one item "Pretty Printer". To run the pretty printer on the current viewed file, select Pretty Printer from the menu. Note for Visual Cafe only, the pretty.settings file is located in c:\visualcafe\.refactory. For Visual Cafe 4.0, there seems to be a problem reading a file from a disk, so I am unable to read the settings files. I'm working on this problem. JBuilder 3.0 Foundation or JBuilder 3.5 or JBuilder 4.0To use the pretty printer with JBuilder, the jrefactory.jar in JBuilderDir/lib/ext. See the file jbuilder.txt for more specific information. JBuilder 3.0To use the pretty printer with JBuilder, you will need to create a batch file. This file takes one input. It sets the classpath to include the pretty printer, and then runs the pretty printer on the input file. Here is a sample batch file. set classpath=c:\jars\jrefactory.jar java PrettyPrinter %1 Then edit the tools.cfg file in <JBuilder Directory>/bin directory. You should add the following 4 lines to the end of the file. Pretty Printer c:\bin\pretty.bat . $(NodeName) Note that the second line is the path to the pretty printer batch file that you created. Also, each item in the tools.cfg file consists of 4 lines. The calculator item has nothing in the fourth line (it doesn't need anything). To use the pretty printer, save the file to disk. Then select tools from the menu and pretty printer. Debugging: If you don't see Pretty Printer on the tools menu and instead see "c:\bin\pretty.bat", then you need to insert a blank line before the PrettyPrinter line. Kawa 5This plugin is for Kawa 5 and will not work on previous versions though it will be fairly easy to port. I decided to write this plugin since I used to write my code in Kawa and then reopen it with the slow java editor jEdit just to add code comments. So one night I spend some minutes in creating this simple plugin and now I have pretty print feature in my Kawa - thanks to folks who created jrefactory (http://jrefactory.sf.net/). Instructions for installation:
jDeveloper 9iThis plugin is for Oracles jDeveloper 9.0.2 and will not work on previous versions. Installation and usage:
(Re)Start jDeveloper, in the editor pane right-click on a Java file and choose "Reformat Code". To configure the PrettyPrinter choose "PrettyPrinter Options" in the Tools menu. If you are working on a development team, you may want to have only one responsible person for configuring the PrettyPrinter settings. If you want to do so, you can create a file ".NoConfig" in the <JDEV_HOME>/jdev/lib/ext/.Refactory dir. With an existing ".NoConfig" file no "PrettyPrinter Options" menu item is shown in the Tools menu. |
|||
Last Modified: October 7, 2003 |