README
1Using the Eclipse project SdkUiLib
2----------------------------------
3
41- sdkuilib requires SWT to compile.
5
6SWT is available in the tree under prebuild/<platform>/swt
7
8Because the build path cannot contain relative path that are not inside the project directory,
9the .classpath file references a user library called ANDROID_SWT.
10
11In order to compile the project:
12- Open Preferences > Java > Build Path > User Libraries
13- Create a new user library named ANDROID_SWT
14- Add the following 4 JAR files:
15
16 - prebuilt/<platform>/swt/swt.jar
17 - prebuilt/common/eclipse/org.eclipse.core.commands_3.*.jar
18 - prebuilt/common/eclipse/org.eclipse.equinox.common_3.*.jar
19 - prebuilt/common/eclipse/org.eclipse.jface_3.*.jar
20
21
222- sdkuilib also requires the compiled swtmenubar library.
23
24Build the swtmenubar library:
25$ cd $TOP (top of Android tree)
26$ . build/envsetup.sh && lunch sdk-eng
27$ sdk/eclipse/scripts/create_sdkman_symlinks.sh
28
29Define a classpath variable in Eclipse:
30- Open Preferences > Java > Build Path > Classpath Variables
31- Create a new classpath variable named ANDROID_OUT_FRAMEWORK
32- Set its folder value to <Android tree>/out/host/<platform>/framework
33- Create a new classpath variable named ANDROID_SRC
34- Set its folder value to <Android tree>
35
36You might need to clean the SdkUiLib project (Project > Clean...) after
37you add the new classpath variable, otherwise previous errors might not
38go away automatically.
39
40The ANDROID_SRC part should be optional. It allows you to have access to
41the SwtMenuBar generic parts from the Java editor.
42
43
44--
45EOF
46