Home | History | Annotate | only in /sdk/hierarchyviewer2/app
Up to higher level directory
NameDateSize
.classpath13-Nov-20121.2K
.project13-Nov-2012374
.settings/13-Nov-2012
Android.mk13-Nov-20121.1K
etc/13-Nov-2012
NOTICE13-Nov-201210.4K
README13-Nov-20122.1K
src/13-Nov-2012

README

      1 Using the Eclipse project HierarchyViewer
      2 -----------------------------------------
      3 
      4 HierarchyViewer requires some external libraries to compile.
      5 If you build HierarchyViewer using the makefile, you have nothing
      6 to configure. However if you want to develop on HierarchyViewer
      7 using Eclipse, you need to perform the following configuration.
      8 
      9 
     10 -------
     11 1- Projects required in Eclipse
     12 -------
     13 
     14 To run HierarchyViewer from Eclipse, you need to import the following 5 projects:
     15 
     16   - sdk/hierarchyviewer2/app
     17   - sdk/hierarchyviewer2/libs/hierarchyviewerlib/
     18   - sdk/ddms/libs/ddmlib
     19   - sdk/ddms/libs/ddmuilib
     20   - sdk/sdkmanager/libs/sdklib
     21 
     22 
     23 -------
     24 2- HierarchyViewer requires some SWT JARs to compile.
     25 -------
     26 
     27 SWT is available in the tree under prebuild/<platform>/swt
     28 
     29 Because the build path cannot contain relative path that are not inside
     30 the project directory, the .classpath file references a user library
     31 called ANDROID_SWT.
     32 
     33 In order to compile the project:
     34 - Open Preferences > Java > Build Path > User Libraries
     35 
     36 - Create a new user library named ANDROID_SWT
     37 - Add the following 4 JAR files:
     38 
     39   - prebuilt/<platform>/swt/swt.jar
     40   - prebuilt/common/eclipse/org.eclipse.core.commands_3.*.jar
     41   - prebuilt/common/eclipse/org.eclipse.equinox.common_3.*.jar
     42   - prebuilt/common/eclipse/org.eclipse.jface_3.*.jar
     43 
     44 
     45 -------
     46 3- HierarchyViewer also requires the compiled SwtMenuBar library.
     47 -------
     48 
     49 Build the swtmenubar library:
     50 $ cd $TOP (top of Android tree)
     51 $ . build/envsetup.sh && lunch sdk-eng
     52 $ sdk/eclipse/scripts/create_sdkman_symlinks.sh
     53 
     54 Define a classpath variable in Eclipse:
     55 - Open Preferences > Java > Build Path > Classpath Variables
     56 - Create a new classpath variable named ANDROID_OUT_FRAMEWORK
     57 - Set its folder value to <Android tree>/out/host/<platform>/framework
     58 - Create a new classpath variable named ANDROID_SRC
     59 - Set its folder value to <Android tree>
     60 
     61 You might need to clean the ddms project (Project > Clean...) after
     62 you add the new classpath variable, otherwise previous errors might not
     63 go away automatically.
     64 
     65 The ANDROID_SRC part should be optional. It allows you to have access to
     66 the SwtMenuBar generic parts from the Java editor.
     67 
     68 --
     69 EOF
     70