aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Merge "API check hooked up to lint"Tor Norbye2012-01-271-1/+0
|\
| * API check hooked up to lintTor Norbye2012-01-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This checkin hooks up the API check to lint, such that class references, method calls and field access are checked with the database and generates warnings if the project min SDK is lower than that required by the API. It also checks layout references to ensure that the widgets are supported by the minimum API. NOTE: There's no flow analysis to avoid classes that are deliberately accessing later APIs (and where the referencing class is loaded conditionally). Therefore, for now the lint check is disabled by default; enable with "lint --check NewApi". Change-Id: Ia3160f81b45b5baed3caa46cdffe56735ebedd44
* | Move the tools/ADT to r17Xavier Ducrohet2012-01-271-2/+2
|/ | | | Change-Id: I4989ce98d4c6a600ca075ee919e5a0e1a40a4497
* Merge "rcp: support per platform builds."Siva Velusamy2012-01-263-51/+66
|\
| * rcp: support per platform builds.Siva Velusamy2012-01-263-51/+66
| | | | | | | | | | | | | | | | The ant script now takes an option that controls which platforms to build the RCP for. If no option is given, the RCP is built for all platforms. Change-Id: I433ae41cd65af820e2d21f25f1324844512a63da
* | gltrace: manage texture image state changesSiva Velusamy2012-01-241-1/+2
|/ | | | | | | | | | | | | | | | | | Texture Data is provided via glTexImage2D. Parts of a created texture may then be updated using glTexSubImage2D. This patch adds a GL state variable that maintains a path to the current texture image for each texture. This patch also includes a few other misc. changes: - Duration minimap: do not create back buffer image of size 0. In such a case, just don't draw anything. - In the function trace view, selecting a particular item in the table doesn't also scroll it into view on Mac. Add a setTopIndex to fix this. - add Guava is a dependency - Apply the state transformations in a separate Eclipse job. Change-Id: I53f5a0438217d9d086b844f7d333306f7c9fbccd
* rcp: update build script to point to prebuilts/eclipseSiva Velusamy2012-01-121-4/+4
| | | | Change-Id: I64bd4569d939cf561364f4073dc88744f64588be
* Lint Java source supportTor Norbye2012-01-091-0/+1
| | | | | | | | | | | | | | | | | This changeset adds Java AST support to Lint. There are new interfaces for Java parser and specialized Java detectors. Java detectors can either visit a full parse tree, or they can register interest in specific methods, or Android resource references, or specific AST node types -- or a combination of these. They will then be invoked during an AST visit with the relevant info. This changeset also rewrites the existing detectors that were using String-based pattern checking on Java files to using real AST traversal instead (and it removes the custom Eclipse-specific unused resource detector since the plain one now does the same AST-based analysis that the Eclipse one did.) Change-Id: I4d85f8b785bf41a88dbb29e7017b9c0f588880bc
* Update SDK codebase to JDK 6Tor Norbye2011-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | This changeset makes the SDK codebase compile with source=1.6 (which means it also requires JDK 6). This means that methods implementing an interface requires @Override's. It also means we can start using APIs like the ArrayDeque class and methods like String#isEmpty(). This changeset looks big but the change is trivial: it's basically adding @Override in all the places that need it, along with some other automatic Eclipse cleanup in certain files (such as reordering imports where they were incorrectly ordered (because older versions of Eclipse didn't always handle inner classes right)), as well as cleaning up trailing whitespace and removing some $NON-NLS-1$ markers on lines where there aren't any string literals anymore. This changeset also sets the source and target JDK level to 6 in the Eclipse compiler .settings file, and synchronizes this file to all the other Eclipse SDK projects. Change-Id: I6a9585aa44c3dee9a5c00739ab22fbdbcb9f8275
* rcp: remove unnecessary plugins.Siva Velusamy2011-12-211-1/+0
| | | | | | | DDMS & TraceView do not depend on JDT anymore, so all those dependencies can be removed from the RCP product definition. Change-Id: If09a4d1c4bf8acb69669713a5052a607f9137663
* Merge "rcp: create monitor plugin & build scripts"Siva Velusamy2011-12-124-15/+180
|\
| * rcp: create monitor plugin & build scriptsSiva Velusamy2011-12-084-15/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | The monitor plugin defines the entry point for the monitor RCP application, and also defines the monitor.product product configuration. The build scripts in eclipse/scripts/rcp show how to build the RCP app from the command line. Currently, these are not built on the build server. That will happen once we figure out where to put the prebuilts. Change-Id: Idc96b2c011dba55c0d6792e916193017df6ce1c1
* | Add the Guava library to the toolsTor Norbye2011-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This changeset adds the Guava library to ADT and lint. (It is also a prerequisite for the Lombok AST library which is added by a later CL.) This changeset also uses the library in a few simple ways: It replaces some custom I/O and collections code with calls into the equivalent Guava methods, and it also adds the @Beta annotation on the various "API" classes which are not yet stable. Change-Id: I2f50febfa075c32818404e888578a2e1e447d408
* | Add Java Classfile supportTor Norbye2011-12-051-0/+2
|/ | | | Change-Id: Ifcc1d88dabb07dc05b2e5c934743ad52f9b6dc1d
* SDK: run lunch sdk-eng as part of create_all_symlinks.Raphael2011-11-231-0/+8
| | | | | | | | | When I open a new shell/terminal, I often forget to run envsetup and lunch sdk-eng, and then create_all_symlinks nicely cleans out for me... This runs lunch sdk-eng, but only if TARGET_PLATFORM is not set. Change-Id: I1d955682827c13f6f53ae25af4293edc38bc1d76
* GLTrace initial implementationSiva Velusamy2011-11-141-1/+1
| | | | | | | | This initial implementation provides two basic features: 1. Connect to the device and retrieve a trace. 2. Open a trace file and display the list of GL calls in a table. Change-Id: Ib594f0606b1276f6fbdcc0d7a1dae9034617cfab
* SDK: Switch to Eclipse 3.6.2 RCP+CDT for build_serverRaphael2011-11-083-14/+6
| | | | Change-Id: I3fab918d5d9ed96d753410cfe3cf58a06788a058
* SDK: simplify create_all_symlinks script.Raphael2011-11-0810-420/+173
| | | | | | | | | | | | Merge all scripts into a single one so that we have just one call to make instead of 8 of them. Edits: - Disable things that won't build under cygwin - Added missing lint-api & lint-client. - Fix missing ddms prebuilts. Change-Id: I1dd74cc804438c353e8c9dce82c0513a8c04a3da
* Move tools and adt to 16Xavier Ducrohet2011-10-281-0/+6
| | | | Change-Id: I79ae1bff5086146cc60b4496f4b0464ffd642651
* Static analyzerTor Norbye2011-10-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds a static analyzer, "lint", which looks for various potential bugs in Android projects. It has 3 parts: (1) A library which performs the actual static checks. This library is standalone: it does not depend on Eclipse. (Technically the library has two halves: an API half, for use by third party developers to write additional detectors, and an actual implementation of a bunch of built-in checks.) (2) A command line driver, "lint", which runs the static checks and emits any warnings to standard out. This can be thought of as a replacement for the layoutopt tool. (3) Eclipse integration. Lint errors are added to the Problems view as well as shown as editor annotations. There's an options panel for controlling which detectors are enabled. There's also a quickfix for disabling errors directly within the editor and a marker resolution for disabling them via the Problems view. The static checks are run on an XML file right after it has been saved. (This is optional via a toggle on the same preference page as the detector list.) The static checks are also run when you export an APK, and if any fatal errors are found the export is abandoned. (This is also optional via an option). Finally you can run a full lint through the Android Tools menu, and there's also an action to clear all the lint markers there. There's also a new indicator on the layout editor which shows whether there are lint errors on the associated file, and when clicked brings up a dialog listing the specific errors. This changeset also includes a number of checks: * An accessibility detector which warns about images missing contentDescriptions * A drawable selector detector which warns about state lists where not all states are reachable (e.g. it is not the case that only the last item in the list omits a state qualifier) * A detector finding duplicate ids, not just in the current layout but across included layouts (transitively) as well * All the layoutopt ones ported to Java + DOM * Unit tests for the above. The focus here is on getting the infrastructure in place, and it currently focuses on XML resource files and analyzing them efficiently. See the comment in XmlVisitor for details on that. Change-Id: Ic5f5f37d92bfb96ff901b959aaac24db33552ff7
* Fix ADT buildRaphael2011-10-041-1/+1
| | | | Change-Id: If0411f65bb523e5b26d53c620df666937f8467ca
* Fix buildTor Norbye2011-10-041-0/+4
| | | | Change-Id: Ie4e5dcc64ba8e341f2229dce77b07effbe9443ba
* Add create dependencies script for gldebugger.Siva Velusamy2011-09-065-92/+76
| | | | | | | | | | | | Move common code from ddms & hierarchy viewer scripts into common_setup.sh, and reuse the same code in create_gldebugger_symlinks. The script copies/soft-links all required dependencies into the libs folder. Update gldebugger project meta data to pick up dependencies from the libs folder. Change-Id: I0c9ccaf01ee43168f6b94bf85b2f42b5fc08ffec
* Pull View Rules API into a separate libraryTor Norbye2011-08-151-1/+1
| | | | | | | | | | | | This changeset pulls out the API classes from the plugin sources and into a separate standalone .jar library. The library depends on the common.jar library. With the separate view API it should be possible to build designtime helpers (view rules) for custom views to improve editing behavior in the layout editor. Change-Id: I20bb511668de2fe52910e5fe0bbd3ec2a18b5a08
* Add Apache Http-Client library files to ADT.Raphael Moll2011-08-113-16/+32
| | | | | | | This is a follow up to Change I084d78dd from prebuilt.git to add the files required by sdklib to ADT. Change-Id: I651ddf8f6dec480843c5bccd7d3296227b262937
* Make the plugin build script for for Mac OSXTor Norbye2011-08-092-4/+19
| | | | | | | | | The build_server script used to build the plugin zip file was Linux specific. This changeset tweaks the scripts such that they will also run on Mac OSX. It also adds various .gitignore filters such that the temporary files created by the build script are ignored by git. Change-Id: I77cfe6bfb65be86c11beb50bcab9c345433b5a8e
* Asset Studio wizardTor Norbye2011-07-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This is an initial integration of the Android Asset Studio into Eclipse, as a New Asset wizard. It uses the Java port of the Android Asset Studio to generate the assets: https://code.google.com/a/google.com/p/android-asset-studio-java/ It only supports launcher icons, and some of the configurable parameters (file, shape, crop). To run it, put the AssetStudioLib.jar file into the the adt libs directory. There's a new "Asset Set" wizard in the New wizard, which will open up a two page wizard; the first page lets you select the project (which it attempts to pick up from context), as well as the type of asset to create, and the asset output name. In the second page there are the various widgets to tweak the code generator, and a preview area on the right which updates as you tweak the various controls. The main remaining work is to support additional asset types as they are added to the assetstudio generator library. Change-Id: I2e556337f8e5c3bc09e84b35a342ba05110abebc
* Use SwtMenuBar in HierarchyViewer application.Raphael Moll2011-04-281-3/+4
| | | | Change-Id: I5f61e0c238520d8582e9bef8fa69c354a1165475
* Use SwtMenuBar for DDMS.Raphael Moll2011-04-281-3/+4
| | | | Change-Id: I32121a336e5b3256ef1661fff5afe84741295d08
* Use swtmenubar in SDK Manager 2.Raphael Moll2011-04-152-0/+18
| | | | | | This is experimental and not completely hooked up. Change-Id: I4f4892be64f5592d909496e3c9e69c76002397d0
* Move tools and ADT version to 11.Xavier Ducrohet2011-02-101-9/+3
| | | | Change-Id: I4ba19e12a7d11df3d3c1053c30f3998a93b5fb06
* Traceview integration into Eclipse.Pierre Zurek2011-01-303-2/+51
| | | | | | New plugin which adds a Traceview view to Eclipse. Change-Id: I3001dfde6ed28db3de8a75715a0ba0743f5c29b0
* Move Pair and annoatations into resources.jar now renamed as common.jarXavier Ducrohet2011-01-281-1/+1
| | | | | | | Move all the resource query methods that returned an array of 2 Strings to return a pair of ResourceType and String. Change-Id: I6b8447aa27005de786e2defef81ad88a72363523
* Fix clean script.Raphael Moll2011-01-271-5/+11
| | | | | | | | | The way bash works, the script returns the status of the last command. In this case, the last failed test's return value is what the script returns, even when that's what we want. Encapsulating the test in a function works around this. Change-Id: I44de75d80b2d16ca4110f078d40db0f71f1aa400
* Update the Layoutlib API to contain part of the current config.Xavier Ducrohet2011-01-272-26/+8
| | | | | | | | | | | | | | | | | | Right now only the screen size is needed. We can add more to Params as needed. Since we should use the existing enum classes for this, I moved all the current enum from sdklib into a new jar file called resources.jar. ADT, sdklib, layoutlib_api all depend on it. Changes to resources should always be API compatible and the result should be copied into the in-dev platform branch in prebuilt, similar to layoutlib_api. See the README.txt files in layoutlib_api/ and resources/ Change-Id: I877ba3cad555ec497954bb0866639e51e7751020
* Switch Eclipse Plugin build to Eclipse 3.5.2 RCPRaphael Moll2010-12-093-10/+13
| | | | Change-Id: Icc846dd9654aa80d3f80bf61daa7cf4d9f2d4ba1
* Fix URL for eclipse download (for auto build plugin)Raphael Moll2010-11-231-8/+16
| | | | Change-Id: I1eba4b240869a222a0eb1c8676cd120acfb0fba4
* Rename layoutlib_utils into ide_common.Xavier Ducrohet2010-11-113-4/+4
| | | | Change-Id: Id243fe66e2ce577bc821ca454bca18444ebb5e7d
* Make ADT use the new layoutlib API.Xavier Ducrohet2010-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | ADT now exclusively use the new API. The older platforms that still use the old API are accessed through a compatibility layer provided by the class LayoutBridgeWrapper that converts the old to the new API (both input and output). The wrapper and the loading code for the bridge have moved to layoutlib_utils, but into the ide.common package. Layoutlib_utils is to be renamed ide-common later. .sdk.LoadStatus has moved into .ide.common too since it's used by the bridge loading code. As we'll move more code into ide-common it's ok to have it there anyway. Also did some minor fix to the API: - missing implementation of ViewInfo - Made a singleton for SUCCESS state of SceneResult. Change-Id: I5e7130ca03b92ad71dc9c293b2ffc40566df645c
* Support 3rd party layout rule loading, and rip out Groovy supportTor Norbye2010-10-263-14/+2
| | | | | | | | | | | | | | | | | | | | | | | Add support for loading 3rd party .jars providing additional layout rules. This can be configured by adding a property referencing the jars to be loaded as part of your build.properties, like this: default.properties: ... layoutrules.jars=chart-rules.jar:graph-rules.jar ... This will create a class loader referencing chart-rules.jar and graph-rules.jar (as well as the visual editor's plugin class loader as a fallback), and this class loader is used to load IViewRule implementations. In addition, this plugin rips out the various remaining Groovy hooks and references that were earlier used to load Groovy scripts as layout rules, and removes groovy from the load path and build symlinking scripts. Change-Id: Ia17a60259559ec86270726add258382a879117dc
* Fix Eclipse build.Raphael Moll2010-08-281-1/+1
| | | | | | Provides dummy implementations of the new testEnded() method. Change-Id: Iaa9183e0fe89d162572ab2c77c9ba1b23c14a41c
* Misc fix in HierarchyViewer plugin.Xavier Ducrohet2010-08-271-1/+1
| | | | | | | - Add plug-in to the update sites - Remove ddm(ui)lib from the plugin as it accesses the ddms plug-in Change-Id: I524180688443e0a72443a04fc3f00300e8ddc165
* Refactoring and integrating into EclipseKonstantin Lopyrev2010-08-271-2/+2
| | | | Change-Id: I1fd3c3828fb2474f2f7394ee2831fcd7eb675878
* ADT-Tests: add external/easymock to the classpath.Raphael Moll2010-08-161-0/+16
| | | | Change-Id: I892f686b98efad14ac5de932030238116bf0d3d4
* First commit... Ignore *.java files, they are there just so it builds.Konstantin Lopyrev2010-07-162-0/+71
| | | | Change-Id: Ibf159c32cee7a770f1c36f387fe646d9ecabe168
* Fix ddms projects in Eclipse for Windows/Cygwin.Raphael Moll2010-06-281-0/+17
| | | | Change-Id: Ie68b8c0dd9eecbc14a2bb86247b767ea47c6842c
* Fix the ddmlib/ddmuilib links making script.Xavier Ducrohet2010-06-251-3/+4
| | | | Change-Id: I899d1094dd0b81ca47e5b0409e426f8cbe61f2b5
* Make ddmlib/ddmuilib jar files inside the ddms plug-in instead of symlinks.Xavier Ducrohet2010-06-242-31/+21
| | | | | | | Also cleaned up the abstraction layer to load images from ddmuilib since its image are now always located inside ddmuilib jar. Change-Id: Id9d283df18a05b7b5593e4593e90dac6e5548b94
* Fix build. Jarutils was referenced by the eclipse pluging build script.Raphael Moll2010-06-161-2/+2
| | | | Change-Id: I2b1d5475ddcddf1f54260b688bf9b8236c2bf5cf
* Move jarutils into sdklib.Xavier Ducrohet2010-06-151-1/+1
| | | | Change-Id: Ic99564a7671e588bbf6bc9ee08f7ae1f02a6dcb2