diff options
author | wisberg <wisberg> | 2003-02-01 02:02:24 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-02-01 02:02:24 +0000 |
commit | 5229f8a4a17b425f6ad51c6a97d35f8c66ed977b (patch) | |
tree | eea851fa3cd9742fbc51e23016d9dae0112a9dc3 /docs | |
parent | e1fead754e112b419a5f76dcdafc5443dd814104 (diff) | |
download | aspectj-5229f8a4a17b425f6ad51c6a97d35f8c66ed977b.tar.gz aspectj-5229f8a4a17b425f6ad51c6a97d35f8c66ed977b.zip |
- removed references to graphically editing .lst files
- discussed the .ajbrowser file
and setting classpath using options
- discussed config files separately
- added caveat about only displaying static crosscutting
Diffstat (limited to 'docs')
-rw-r--r-- | docs/devGuideDB/ajbrowser.xml | 112 |
1 files changed, 75 insertions, 37 deletions
diff --git a/docs/devGuideDB/ajbrowser.xml b/docs/devGuideDB/ajbrowser.xml index f4a44597c..a2e5d79ba 100644 --- a/docs/devGuideDB/ajbrowser.xml +++ b/docs/devGuideDB/ajbrowser.xml @@ -3,7 +3,7 @@ <refname>AspectJ Browser</refname> <refpurpose>GUI tool for compiling programs with ajc and navigating the - crosscutting structure (early-access)</refpurpose> + crosscutting structure</refpurpose> </refnamediv> @@ -12,33 +12,66 @@ <para> - The AspectJ Browser is a development tool that will allow you to - compile using ajc, navigate your program's static structure, edit - source files, and graphically edit build configuration files. + The AspectJ Browser can edit program source files, + compile using the AspectJ compiler + <xref linkend="ajc">ajc</xref>, + run a program, + and graphically navigate the program's + crosscutting structure. + </para> + <para> + Launch the browser from the command line either + by typing "ajbrowser" to invoke the script in + <literal>{aspectj}/bin</literal> + (if AspectJ is installed correctly) + or by using the + <literal>aspectjtools.jar</literal> directly: + <programlisting> + java -jar aspectj1.1/lib/aspectjtools.jar ... + </programlisting> </para> - <imageobject> - <imagedata fileref="ajbrowser-building.gif"/> - </imageobject> + </refsect1> + + <refsect1> + <title>Program Build Configurations</title> <para> - To use the browser launch it by typing "ajbrowser" (assuming that - you've followed the instructions for setting up <xref - linkend="ajc">ajc</xref>). You can either pass in one or more - ".lst" build configuration files as command line parameters to the - browser in order to build them and navigate the corresponding - structure, or you can open one or more ".lst" files with "File -> - Open" or with the "Open Build Configuration" button - (<inlinemediaobject> - <imageobject> - <imagedata fileref="openConfig.gif"/> - </imageobject> - </inlinemediaobject>). + To work with a particular program, point the + AspectJ browser to the program source files + listed in a ".lst" build configuration file. + (Build configuration files are described + in the documentation for + <xref linkend="ajc">ajc</xref>.) + Open a build configuration file from the GUI using + the File menu, "open" item, or by using the + "Open Build Configuration" button + (<inlinemediaobject> + <imageobject> + <imagedata fileref="openConfig.gif"/> + </imageobject> + </inlinemediaobject>). + From the command line + you can also pass any number of ".lst" paths. + (If you pass in any non-".lst" arguments, it will run the + command-line compiler directly.) + </para> + <para> + You can work with multiple build configurations; + select, add, or remove them + using the corresponding toolbar buttons. + </para> + <para>Global build options are stored in an + <literal>.ajbrowser</literal> file in your HOME directory. + Edit these from the GUI by clicking the "Options" button + or selecting the Tools menu item "Options...". + This is how you can set classpath, aspectpath, etc. + (ajbrowser, unlike ajc, does not support setting these + options from the ".lst" files.). </para> </refsect1> - <refsect1> - <title>Compiling a Build Configuration</title> + <title>Compiling a Program Build Configuration</title> <para> To compile click the "Build" button @@ -46,16 +79,23 @@ <imageobject> <imagedata fileref="build.gif"/> </imageobject> - </inlinemediaobject>), or click <ctrl>F11. You may also select a - different build configuration here, as in label 1. + </inlinemediaobject>), or click <ctrl>F11. + You may select + from different build configurations in the GUI + (see label 1 in the graphic below). + (If you get classpath or other errors, set up the + global build options as described above.) </para> + <imageobject> + <imagedata fileref="ajbrowser-building.gif"/> + </imageobject> </refsect1> <refsect1> <title>Navigating the Program Structure</title> <para> - Select nodes in the program structure by clicking them (as in label 2). + Select nodes in the program structure by clicking them (see label 2). If one node is related to one or more other nodes by an association the name of the association will appear below that node and will be displayed in italics. Links to other structure nodes appear in blue @@ -66,19 +106,6 @@ </refsect1> <refsect1> - <title>Manipulating Build Configuration</title> - - <para> - Build configurations can be manipulated adding, removing, and - editing build configuration files using the corresponding toolbar - buttons. The current configuration can be selected in the - configurations listbox. Build configurations are represented by - ".lst" files (which are described in the <xref - linkend="ajc">ajc</xref> documentation). - </para> - </refsect1> - - <refsect1> <title>Example: Exploring the "Spacewar" sample code </title> <para> <itemizedlist> @@ -121,9 +148,11 @@ </para> + <para> <imageobject> <imagedata fileref="ajbrowser-options.gif"/> </imageobject> + </para> </listitem> @@ -209,6 +238,15 @@ <literal>affects</literal> relations will list different kinds of join points - constructor or method calls, etc. </para> + <para>Note that the AspectJ browser can only display + static structure (whether hierarchical or crosscutting). + That means that dynamicly-determined pointcuts (like + <literal>cflow(pointcut)</literal>) + will not be shown as picking out static points in + source code. Displayable pointcuts roughly correspond + to those that can be used in a + <literal>declare error</literal> statement. + </para> </listitem> </itemizedlist> </para> |