Home | History | Annotate | only in /sdk/sdkmanager/libs/sdkuilib
Up to higher level directory
NameDateSize
.classpath28-Mar-2012833
.project28-Mar-2012384
.settings/28-Mar-2012
Android.mk28-Mar-20121.3K
NOTICE28-Mar-201210.4K
README28-Mar-20121.5K
src/28-Mar-2012
tests/28-Mar-2012

README

      1 Using the Eclipse project SdkUiLib
      2 ----------------------------------
      3 
      4 1- sdkuilib requires SWT to compile.
      5 
      6 SWT is available in the tree under prebuild/<platform>/swt
      7 
      8 Because the build path cannot contain relative path that are not inside the project directory,
      9 the .classpath file references a user library called ANDROID_SWT.
     10 
     11 In 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 
     22 2- sdkuilib also requires the compiled swtmenubar library.
     23 
     24 Build 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 
     29 Define 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 
     36 You might need to clean the SdkUiLib project (Project > Clean...) after
     37 you add the new classpath variable, otherwise previous errors might not
     38 go away automatically.
     39 
     40 The ANDROID_SRC part should be optional. It allows you to have access to
     41 the SwtMenuBar generic parts from the Java editor.
     42 
     43 
     44 --
     45 EOF
     46