xref: /aosp_15_r20/development/ide/eclipse/README.importing-to-eclipse.txt (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker(Java)
2*90c8c64dSAndroid Build Coastguard Worker
3*90c8c64dSAndroid Build Coastguard WorkerTo import the formatter, go to the preferences, section Java > Code Style >
4*90c8c64dSAndroid Build Coastguard Workerformatter, then click on import and choose
5*90c8c64dSAndroid Build Coastguard Workerdevelopment/ide/eclipse/android-formatting.xml
6*90c8c64dSAndroid Build Coastguard Worker
7*90c8c64dSAndroid Build Coastguard WorkerTo import the import order, to go into Java > Code Style > Organize Import,
8*90c8c64dSAndroid Build Coastguard Workerthen click on import and choose development/ide/eclipse/android.importorder
9*90c8c64dSAndroid Build Coastguard Worker
10*90c8c64dSAndroid Build Coastguard Worker(C++)
11*90c8c64dSAndroid Build Coastguard Worker
12*90c8c64dSAndroid Build Coastguard WorkerTo import the include paths, go to Project > Properties > C/C++ General >
13*90c8c64dSAndroid Build Coastguard WorkerPaths and Symbols, then click on "Includes" and then click on "Import Settings".
14*90c8c64dSAndroid Build Coastguard WorkerChoose development/ide/eclipse/android-include-paths.xml and hit Finish.
15*90c8c64dSAndroid Build Coastguard WorkerYou will need to re-index for the changes to get picked up (right click project
16*90c8c64dSAndroid Build Coastguard Workerin Package Explorer, then Index > Rebuild).
17*90c8c64dSAndroid Build Coastguard Worker
18*90c8c64dSAndroid Build Coastguard WorkerTo import the symbols, go to Project > Properties > C/C++ General >
19*90c8c64dSAndroid Build Coastguard WorkerPaths and Symbols, then click on "Symbols" and then click on "Import Settings".
20*90c8c64dSAndroid Build Coastguard WorkerChoose development/ide/eclipse/android-symbols.xml and hit Finish.
21*90c8c64dSAndroid Build Coastguard WorkerYou will need to re-index for the changes to get picked up (right click project
22*90c8c64dSAndroid Build Coastguard Workerin Package Explorer, then Index > Rebuild).
23*90c8c64dSAndroid Build Coastguard Worker
24*90c8c64dSAndroid Build Coastguard WorkerIn addition, you will need to add some include files (no way to import this
25*90c8c64dSAndroid Build Coastguard Workerfrom an XML file) by hand. Go to Project > Properties > C/C++ General >
26*90c8c64dSAndroid Build Coastguard WorkerPaths and Symbols, then click on "Include Files" and click on "Add". Check
27*90c8c64dSAndroid Build Coastguard Worker"Add to all configurations" and "Add to all languages". Repeat for these files:
28*90c8c64dSAndroid Build Coastguard Worker
29*90c8c64dSAndroid Build Coastguard Worker    ${ProjDirPath}/build/core/combo/include/arch/linux-arm/AndroidConfig.h
30*90c8c64dSAndroid Build Coastguard Worker
31*90c8c64dSAndroid Build Coastguard WorkerIf you are having trouble seeing the "Include Files" tab, you will need to
32*90c8c64dSAndroid Build Coastguard Workerenable it in the global preference panel under "C/C++" /
33*90c8c64dSAndroid Build Coastguard Worker"Property Pages Settings".
34