Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
.settings/ | 03-May-2024 | - | 96 | 95 | ||
etc/ | 03-May-2024 | - | 209 | 132 | ||
src/com/android/hierarchyviewer/ | 03-May-2024 | - | 1,460 | 1,030 | ||
.classpath | D | 03-May-2024 | 1.1 KiB | 16 | 15 | |
.gitignore | D | 03-May-2024 | 5 | 2 | 1 | |
.project | D | 03-May-2024 | 374 | 18 | 17 | |
Android.mk | D | 03-May-2024 | 1.1 KiB | 39 | 17 | |
NOTICE | D | 03-May-2024 | 10.4 KiB | 191 | 158 | |
README | D | 03-May-2024 | 2.1 KiB | 70 | 50 |
README
1Using the Eclipse project HierarchyViewer 2----------------------------------------- 3 4HierarchyViewer requires some external libraries to compile. 5If you build HierarchyViewer using the makefile, you have nothing 6to configure. However if you want to develop on HierarchyViewer 7using Eclipse, you need to perform the following configuration. 8 9 10------- 111- Projects required in Eclipse 12------- 13 14To 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------- 242- HierarchyViewer requires some SWT JARs to compile. 25------- 26 27SWT is available in the tree under prebuild/<platform>/swt 28 29Because the build path cannot contain relative path that are not inside 30the project directory, the .classpath file references a user library 31called ANDROID_SWT. 32 33In 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------- 463- HierarchyViewer also requires the compiled SwtMenuBar library. 47------- 48 49Build 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 54Define 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 61You might need to clean the ddms project (Project > Clean...) after 62you add the new classpath variable, otherwise previous errors might not 63go away automatically. 64 65The ANDROID_SRC part should be optional. It allows you to have access to 66the SwtMenuBar generic parts from the Java editor. 67 68-- 69EOF 70