• Home
Name Date Size #Lines LOC

..--

.settings/03-May-2024-155153

etc/03-May-2024-21

src/com/android/sdkuilib/03-May-2024-21,95714,061

tests/03-May-2024-3,2192,291

.classpathD03-May-20242 KiB2221

.projectD03-May-2024384 1817

Android.mkD03-May-20241.4 KiB5223

NOTICED03-May-202410.4 KiB191158

READMED03-May-20241.5 KiB4632

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