aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/scripts
Commit message (Collapse)AuthorAgeFilesLines
* ADT IDE: qualifier for zip file is just the build number.Raphael Moll2012-10-151-0/+3
| | | | Change-Id: I4239c5e8370c028d4077e6158629dd03944f6dd0
* ADT build script: only build adt_eclipse on Linux.Raphael Moll2012-10-091-6/+6
| | | | Change-Id: I9d2f6bb5613b161173c97e3ff331f84444b48125
* Android makefile for ADT Eclipse IDE.Raphael Moll2012-10-011-6/+16
| | | | | | | The ADT IDE is not part of a full "make sdk". Instead it is invoked as part of sdk/eclipse/build_server.sh. Change-Id: Ifdf1dfa2cd6a655b1821a0886b0c78ccf5d6854d
* Revert "Android makefile for ADT Eclipse IDE."Raphaël Moll2012-09-271-16/+6
| | | | | | | | This breaks Mac builds. We'll put it back once we understand why. This reverts commit be6194b8193acb4a7e04fc70bf0ce49e67530f96 Change-Id: I1a54b65887126b45c07b0cceef96b8b9595b6c51
* Android makefile for ADT Eclipse IDE.Raphael Moll2012-09-261-6/+16
| | | | | | | The ADT IDE is not part of a full "make sdk". Instead it is invoked as part of sdk/eclipse/build_server.sh. Change-Id: I65d86e6a2743e9bac2ee626b636e559613f6d918
* Rename ide_common to sdk_commonSiva Velusamy2012-09-181-1/+1
| | | | Change-Id: I1b39ee439a532f3f6758be35b569948e2e906665
* Refactor PackagesPage to make it testable.Raphael Moll2012-09-151-2/+7
| | | | | | | | | A simple unit test to display that an update is available. This will get more complex later. The cache is mocked and the whole test should be independant of the user's actual settings and local cache, with no network access. Change-Id: I58ff45895916a14a10f501a9bd664782d777ed42
* Update Guava from 10.0.1 to 13.0.1Tor Norbye2012-08-291-1/+1
| | | | Change-Id: Ia51e3e2280c3d360496550df50a540571b9b7582
* Integrate uiautomatorviewer into EclipseSiva Velusamy2012-08-141-1/+1
| | | | | | | | | | | | | | | | | | | This CL integrates uiautomatorviewer into Eclipse. There are two components to this: 1. Take UI Hierarchy Dump from a device: This is added as an action to the device view in the DDMS perspective. 2. Viewing the resulting UI hierarchy: This is added as an editor, associated with the .uix extension. The editor simply wraps a UiAutomatorView. The UiAutomatorView is modified slightly to allow for opening just the hierarchy file without the associated screenshot. This is to enable opening the .uix file via standard Eclipse Open File Dialog. When opened this way, the canvas displaying the screenshot is replaced with a button that allows the user to specify the actual screenshot to be displayed. Change-Id: I0f31fe95b2728123ff6f0f748478c18c0c2f1b48
* More refactoring.Xavier Ducrohet2012-08-131-2/+2
| | | | | | | Move stuff out of sdklib into common and ide_common. Remove androidprefs and move the one class into common. Change-Id: I71d126a13cf2ba413692e29616f4968a37d7b33a
* Move kxml and layoutlib_api from plugin-adt up to plugin-baseTor Norbye2012-08-081-3/+3
| | | | | | | | Without this there are runtime class loading failures in the layout editor since sdklib is in base and it refences layoutlib_api which in turn references kxml. Change-Id: I65a76a01266fe3608db9752104d3ae4e2a9d48b7
* Install platform tools if necessary during monitor startupSiva Velusamy2012-08-011-0/+7
| | | | | | Part of fix for http://code.google.com/p/android/issues/detail?id=35640 Change-Id: I75834928033d08936c15f354a630815276895242
* Add basic flow analysis support to lintTor Norbye2012-07-231-0/+1
| | | | | | | | | | | This changeset adds in the ASM analysis library (an optional part of the ASM package lint is already using to process bytecode). It also adds some basic flow analysis to the SecureRandom detector to detect whether a given dispatch to a field of type java.util.Random is actually pointing to a java.security.SecureRandom, in which case it flags calls on it to setSeed() where the argument is a fixed integer. Change-Id: If85ab9f8db0e801a01f1a3ea845865b4f98e259c
* Added GLE support for devicesMichael Wright2012-06-251-1/+1
| | | | Change-Id: I4e82e93563529540d31af8809aba79f40610fa2e
* New Template Wizard supportTor Norbye2012-05-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds several new templates, to create a new project, a new activity, a new custom view, etc. More importantly, it contains support for these wizards (and the corresponding code generation) to be driven by templates. A wizard contains metadata which provides a name, description and icon for the template, as well as a list of parameters, along with type and constraint metadata for those parameters. When a wizard is created for this template, it automatically adds UI elements to input the parameters and to validate the input. Parameters can also specify their default values as templated expressions using the other variables on the page, so in the New Blank Activity wizard for example, editing the activity name automatically updates the suggested layout name, by repeatedly evaluating a template expression to compute a layout name from an activity name. There's a recipe file for each template which states what actions to take to create the template. In addition to obviously copying resources (such as icons and jar files) and instantiating templates (to rewrite text using variables and FreeMarker logic), it can also merge XML contents (to for example insert activity registration metadata into the manifest file, or add string definitions to the strings.xml file), and it can cause files to be opened when the template is created. Tne new wizards also use JFace's decorator support to provide help and to mark text fields that contain errors, when one or more of the page fields do not validate, as well as to show tip text along the bottom of the page. One example of this is that it explains what a "package name" is when the package field has focus. This changeset also contains a "Template Development Wizard" which lets you point to a local directory containing a template definition, and run a test wizard from there. This is useful for developing, debugging and testing templates. Change-Id: I08e7d2464a1ef00d09517f0154c42681249a7ff6
* Manifest merge for ADT.Xavier Ducrohet2012-05-211-1/+1
| | | | Change-Id: I635098594605af497a8b7d244e502385b8f34d1e
* SDK Manager: display options menu when invoked from IDE.Raphael Moll2012-05-171-1/+1
| | | | Change-Id: I03c75be4d624f841c6f4c0ba93b0951bc8da8850
* Replace current complex delta visitor by pattern based ones.Xavier Ducrohet2012-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The build system relies on several different delta visitor that detect file changes to detect that needs to be rebuilt but the implementation of those files is based on going through folders recursively while keeping states. This is complex and prone to errors. The new mechanism is simply based on glob-pattern, relative to the project root. A set of predefined patterns stored in ChangedFileSet instance allow quick reuse. ChangeFileSetHelper stores those as well as allow creating others that are based on a project config (such as the output folder). This first CL replace the previous delta visitors in the PostCompilerBuilder. Replacing the ones in the PreCompilerBuilder will require a bit more work so I prefer splitting it in another CL. The code that runs the pattern recognition is coming from Ant and is stored in external/ant-glob. This is not all of Ant but a subset of the classes for our need. This CL does include a simple set of tests for the extracted Ant classes. Change-Id: I2ad1b116ffb29c9f4195d863d04f8812e87a31ca
* Move kxml2 to prebuilts/miscJean-Baptiste Queru2012-04-301-2/+2
| | | | Change-Id: I3a939238911ae7c09bb75b27e1ce623777cd4e18
* SDK: build 'monitor' tool and package it in the SDK.Raphael Moll2012-04-236-271/+0
| | | | | | | | | | | | | | | Fixed with Siva to use the 'ant' builder from Eclipse's baseBuilder jars. Changed to use: - the new external/eclipse-basebuilder for the basebuilder jars. - the rcp deltapack, located prebuilts/eclipse. - monitor scripts are now in sdk/monitor. - configuration is now in out/host/eclipse/rcp/build/configuration and doesn't change any existing repos. Requires change I7ab027ff6 from build.git Change-Id: I72fff09231fc9b3031c10eb42ff821c55af9b5d5
* Update paths to use Eclipse 3.7.2.Siva Velusamy2012-04-191-3/+3
| | | | Change-Id: Ie01a2d1f71b1a2edfbdad717de3e7e252b9f4fe2
* fix create_all_symblinks with new location of http-client.Xavier Ducrohet2012-04-161-6/+6
| | | | Change-Id: I0313091219aa80cd1c97b796c4444a875db5311d
* Merge "minor update to error output of create_all_symlinks."Xavier Ducrohet2012-04-051-1/+2
|\
| * minor update to error output of create_all_symlinks.Xavier Ducrohet2012-04-051-1/+2
| | | | | | | | Change-Id: I1b3a1a02c8b4113b06f339e6148cd3f47e648a29
* | Add support for the WindowBuilder Property SheetTor Norbye2012-04-051-1/+1
|/ | | | | | This reverts commit 27dac06bfc4297dc9a018edc534f44ecf96cd724. Change-Id: I6708bd4091f0cb677484669479357d479b9db5fa
* SDK: fix jfreechart path in create_all_symlinks.Raphael Moll2012-04-041-3/+3
| | | | Change-Id: Ic63510a3d6350a555ebe414ee044e45100b91da2
* Revert "Add support for the WindowBuilder Property Sheet"Tor Norbye2012-04-031-1/+1
| | | | This reverts commit a7621238bf0202419677380ee3a268142358df83.
* Add support for the WindowBuilder Property SheetTor Norbye2012-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WindowBuilder propertysheet has been extracted and added as a library in external/eclipse-windowbuilder/. This changeset removes the old propertysheet code (which used the builtin Eclipse property sheet page), and replaces it with the WindowBuilder one, along with new code to aggregate the properties into some categories, as well as tagging some of the properties as advanced. (This was computed by running the same analysis scripts used to produce the most-frequent attributes (sdk/attribute_stats) and instead computing which attributes are used very infrequently or not at all in some representative sample code.) The WindowBuilder propertysheet gives us the following new features: - Highlighting (bold) of important attributes - Masking (and when included, shown in gray italic) of advanced attributes - "Complex" attributes with nesting, used to for example aggregate all the layout parameters into a single node, and the margin layout attributes within those - Tooltips over the attribute names, not values, so they never obscure content In addition, this changeset adds custom implementations of properties, property editors and property dialogs for the core Android property types (XML strings, flags and booleans), which adds the following new features: - Preview rendering of color and image resources inline - Display of -default- attributes (those not specified in XML) using the layoutlib facility getDefaultProperties() to render the implied attributes. For example, if you look at a Button, it will show you that the implied value of "Text Color Link" is "@android:color/holo_blue_light" even though it is not set. NOTE: This only happens for attributes that were actually queried by the widget during rendering. Attributes that are not used by the widget have no (displayed) value. Thus, EditText-specific attributes in a TextView are not shown when a non-EditText TextView is selected. - Evaluation of the attributes. In the above example, in addition to showing @android:color/holo_blue_light, it will chase down the value of this to for example render a blue square next to the value. For drawables it will render a thumbnail, and for String resources it will display the actual value in parentheses. - Field completion in text fields, completing all resource strings (@string, @android:string, etc), as well as flag values. Enum values are chosen in a dropdown. - Checkbox support for boolean values, allowing you to click through the three values true, false and null. - Our custom version of the Property Sheet Page allows you to expand/collapse all properties, and it also has an option letting you switch between Alphabetical Sort (where all attributes are in a flat table, sorted alphabetically by property value), or hierarchical sorted "by category". Currently the categories are simply the defining views, plus 2 more (layout parameters and deprecated attributes). When we get more metadata, it would be nice to switch these to more logical categories, such as "text", "scrolling", "focus", etc. (There is some preliminary support for this in the code, but since the defining-view categories seem to work better those are used instead right now.) Change-Id: Ie4959a3a2c36c083dcc1ba19a70f24b33739fe2f
* Add base pluginSiva Velusamy2012-03-301-20/+20
| | | | | | | | | | | | Add a plugin that is contains libraries and other utilities common to both ADT/Eclipse plugins and RCP applications like monitor. Currently, it contains: - libraries: common, sdkstats, androidprefs & sdklib. - prebuilts: guava Change-Id: I982a6897fa73c5ba8c282bc2fba4b1e66b4e2ecd
* Merge "Move tools and ADT to 19."Xavier Ducrohet2012-03-291-0/+1
|\
| * Move tools and ADT to 19.Xavier Ducrohet2012-03-291-0/+1
| | | | | | | | Change-Id: I3906416a7b5a4bf7b7e2f86ee3155c22d93a3c2b
* | rcp: Add missing preferences and menu items.Siva Velusamy2012-03-291-9/+12
|/ | | | | | | The monitor RCP was missing a bunch of menu items & preferences. This CL adds a subset of those. Change-Id: I7b3f71f4423145f777bfea97ba98a6e19a0d480b
* Turn off warnings in the command-line RCP monitor buildSiva Velusamy2012-03-261-0/+1
| | | | | | Patterned after Changeset Id469ad9d6f8357bb331f38562bb0aaa253849f4b Change-Id: Ieaf240d40abfde95bbedd6d7d028e52316d25361
* Merge "Update setup_eclipse script to download CDT."Raphaël Moll2012-03-261-1/+10
|\
| * Update setup_eclipse script to download CDT.Siva Velusamy2012-03-211-1/+10
| | | | | | | | Change-Id: I082b8a21fba98979664427b0a8e140d5a8e3b0df
* | Fix build: Entirely disable the SDK Monitor RCP.Raphael Moll2012-03-231-39/+39
| | | | | | | | | | | | Apparently removing from the SDK build it not enough. Change-Id: I3aee0ee0eb05d83ea91d3ad75493185c5d756e38
* | Build Monitor RCP as part of SDK (Mac, Linux and Win)Raphael Moll2012-03-214-28/+179
|/ | | | | | | | | | | | | | | | This adds a new SDK/tools/monitor[.bat] wrapper as well as SDK/tools/lib/monitor-x86[_64]/ directories that contain the actual RCP application. The monitor shell wrappers + bat have not been properly tested yet. The goal of this CL is just to build the RCP. In a following CL we'll adjust the wrapper and the actual binary location in the SDK. Cross-dependency: Requires build.git change Ifb31e2e3. Change-Id: I7afbd63badfb81fd5d3d899de672e02525a49bc2
* 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