|
Contents |
||
Introduction |
||
Introduction |
||
If you need an integrated development environment (IDE), you should take NetBeans / Forte for Java into account. NetBeans is an open source, modular IDE, written in the Java programming language. Currently it supports Java development, but its architecture lends itself to supporting other languages as well. Since it's written in the Java language, it will run on any platform with a virtual machine. Both, the Office API reference from the Office Development Kit (ODK) and the integrated development environment NetBeans/Forte are capable tools. In order to benefit from both tools, you can integrate the Office API reference into the integrated development environment. It is also possible to integrate the Office API reference to other Java IDEs, for example JBuilder or Kawa. Classes can have a lot of data members (sometimes called fields), and member functions (typically called methods). To keep track of all fields and methods of your classes, you can use Netbeans/Forte's Java code completion for your own classes and Java Archives. Furthermore, in order to compile and execute your programs, you can profit by makefiles. |
||
Download |
||
You can download the index files of the Office API reference from http://api.openoffice.org/servlets/ProjectDownloadList . In the future, the index files of the Office API reference in the ODK will be adapted to the javadoc standard, so that you do not have to download the mentioned files. |
||
Displaying the Office API reference in the IDE |
||
In order to use the Office API reference in NetBeans/Forte, you should download the compressed file with the needed index files, first. Then you should decompress the file to the directory www/common/ref of your ODK. After decompression you should have a folder index-files. NetBeans/Forte Further on, start your IDE NetBeans/Forte, open the Explorer window and choose the tab page Javadoc. Then the directory <ODK>/www/common/ref should be mounted by clicking the right mouse button on the directory "Javadoc" and selecting the entry "Add Directory ...". In the following dialog with the title "Mount Directory", you should select the directory <ODK>/www/common/ref/. In order to open the Office API reference for a class, method, or property in a Java file, the text cursor should be positioned on the desired word in the Java file. By hitting the keyboard shortcut Ctrl-F1, a window with the title "Javadoc Index Search" will be opened and will show all found occurrences of the Office API reference. Now, you can select your favored entry and the matching Office API reference file will be shown in the frame below. JBuilder If you are preferring another IDE than NetBeans/Forte (for example JBuilder, Kawa), the installation of the index-files should be very similar to the described installation for NetBeans/Forte. In JBuilder, you have to open the window for the project properties (Project->Project Properties) and select the tab for the documentation. Then, you must add the directory <ODK>/www/common/ref. In order to open the Office API reference for a class, method, or property in a Java file, the text cursor should be positioned on the desired word in the Java file. By hitting the keyboard shortcut F1, a window with the title "JBuilder Help" will be opened and will show all found occurrences of the Office API reference. |
||
Java Code Completion in NetBeans/Forte |
||
If you want to benefit from the Java code completion for your own Java Archives, you should read the following description, an abstract of the NetBeans/Forte IDE help: "... By default, the parser database consists of files for the Java 2 SDK, v. 1.3, plus Java Servlet 2.2 and the Ant build tool. If you install the apisupport module, database files for OpenAPIs are also included. You can update the parser database so that your own classes are among the choices offered when using code completion, Fast Open, Fast Import, and the other features that depend upon the parser database. To update the parser database: 2. Type a file name (with no extension) in the Parser Database File Prefix field of the Update Parser Database dialog box. Use a different prefix for each package or filesystem. Two files are created for each parsed filesystem: <prefix>.jcs, where classes and interfaces are stored, and <prefix>.jcb, where methods and fields are stored. 3. In the Storage Levels panel of the same dialog box, select the level
of code for classes, fields, and methods that you want included in the
database. For libraries that you cannot edit, you probably want the parser
database to 4. Click OK to add the files to the parser database. |
||
Using makefiles in NetBeans/Forte |
||
In order to benefit from makefiles, you can
use the module "makefile" (http://makefile.netbeans.org/): You should enable the module "makefile": |
||
Debugging Java components in NetBeans/Forte for Java |
||
If you use NetBeans or Forte for Java, you can easily attach to the Java Virtual Machine. Before attaching you should open the appropriate source file into the source editor of NetBeans/Forte for Java and set the breakpoints at will. This requires that the directory containing the source file is mounted. Then you Choose menu Debug->Attach to open the connect dialog. Then select the Java Platform Debugger Architecture (JPDA) and thereafter the connector "SocketAttach (Attaches by socket to other VMs)". Finally, you must enter the computer name and port. Attaching the debugger to a running office process:
You can find more information on Debugging Java Components. |
||
|
||
|
||
Author: Bertram
Nolte (
2001-11-28 2:14 PM
) |
||
|