• Home
Name
Date
Size
#Lines
LOC

..--

.settings/03-May-2024-9695

etc/03-May-2024-209132

src/com/android/hierarchyviewer/03-May-2024-1,4601,030

.classpathD03-May-20241.1 KiB1615

.gitignoreD03-May-20245 21

.projectD03-May-2024374 1817

Android.mkD03-May-20241.1 KiB3917

NOTICED03-May-202410.4 KiB191158

READMED03-May-20242.1 KiB7050

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