aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "Fix 33912: Can't create a project, delete, then recreate it"Tor Norbye2012-09-261-4/+28
|\ \ \
| * | | Fix 33912: Can't create a project, delete, then recreate itTor Norbye2012-09-251-4/+28
| |/ / | | | | | | | | | | | | | | | Fix http://code.google.com/p/android/issues/detail?id=33912 Change-Id: Ieaeb9a4db641efa6591bd9777b3c7731d74952fb
* | | Merge "Ensure that themes are always style-prefixed"Tor Norbye2012-09-268-67/+149
|\ \ \ | |/ / |/| |
| * | Ensure that themes are always style-prefixedTor Norbye2012-09-258-67/+149
| | | | | | | | | | | | | | | | | | Plus a few other minor tweaks/bug fixes Change-Id: Ic02db9123674ebfbc8977a94d1da4826ec13fb9b
* | | 37733: TargetAPI doesn't fails to report unsupported APITor Norbye2012-09-252-0/+125
|/ / | | | | | | | | | | | | Make incremental lint in source files use the Eclipse context to find super classes. Change-Id: I31af7a146c259875857026bc7721294205482a91
* | Merge "Make resource chooser include resources from library projects"Xavier Ducrohet2012-09-247-154/+216
|\ \
| * | Make resource chooser include resources from library projectsTor Norbye2012-09-217-154/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The resource chooser was only showing resources from the current project. This changeset fixes this such that it will merge in resources from library projects as well. It also cleans up the ResourceChooser class such that it has a couple of convenience factory methods, and simplified various call sites to use the factory instead. Finally, it similarly fixes the Go To Declaration hyperlink resolver to also look at library projects when resolving source locations. Change-Id: Id20d14e4d9c6d9133b827ef3a3854e47c65b73fb
* | | Merge "ADT: Enforce tools 21 rc5 as a minimum."Raphael Moll2012-09-242-2/+2
|\ \ \
| * | | ADT: Enforce tools 21 rc5 as a minimum.Raphael Moll2012-09-242-2/+2
| | | | | | | | | | | | | | | | Change-Id: Iaf796934e4c3afa7334fb023607e1d8eff73dc4c
* | | | Improve the Device menuTor Norbye2012-09-241-30/+180
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, this changeset improves the device labels in the device menu to not only list the screensize and screen type (e.g. "FWVGA"), but the screen resolution and density category as well. Second, the device menu by default will show one submenu for every device manufacturer, with the corresponding devices listed within each of those sub menus. Out of the box the default file only lists Nexus devices, and this ends up with a bit of a suboptimal menu. This changeset handles this scenario better by inlining all the generic devices together in the top menu, and sorting them in reverse order. It also places the Nexus devices in this menu, ordered by reverse release date. Change-Id: I5015430e2dc48306e848ce7691810349415470e0
* | | Merge "37688: Completion doesn't work with Library Project's resources"Tor Norbye2012-09-211-7/+78
|\ \ \
| * | | 37688: Completion doesn't work with Library Project's resourcesTor Norbye2012-09-211-7/+78
| | | | | | | | | | | | | | | | Change-Id: Ifb95d96ee67acb0e4853c3c68d3a447a8409bd1b
* | | | Prevent potential NPETor Norbye2012-09-211-1/+1
|/ / / | | | | | | | | | Change-Id: I4fa69bac844ebb0561382c8639b571b425306fd3
* | | Fix import statementTor Norbye2012-09-211-2/+2
| | | | | | | | | | | | Change-Id: I09062e0d9982d4a42580693dc8cf0941d65597b5
* | | Merge "Add allowBackup lint security check"Tor Norbye2012-09-212-2/+10
|\ \ \
| * | | Add allowBackup lint security checkTor Norbye2012-09-212-2/+10
| |/ / | | | | | | | | | Change-Id: I3b79bef6981d880fe6a545429754e03bd384645c
* | | Merge "Pre-dexed libraries."Xavier Ducrohet2012-09-212-3/+53
|\ \ \
| * | | Pre-dexed libraries.Xavier Ducrohet2012-09-212-3/+53
| |/ / | | | | | | | | | Change-Id: I5aabcf3d7acaa9573c991860db3fcc8ea34bc866
* | | Merge "Move some utility functions from AdtUtils to common"Siva Velusamy2012-09-2115-142/+31
|\ \ \
| * | | Move some utility functions from AdtUtils to commonSiva Velusamy2012-09-2015-142/+31
| |/ / | | | | | | | | | Change-Id: Ia6f5c55e07c7f60712472c8e850b7c4595c46671
* | | Merge "Validate user edits in XML files"Tor Norbye2012-09-2012-38/+322
|\ \ \
| * | | Validate user edits in XML filesTor Norbye2012-09-2012-38/+322
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Around ADT 15 or so we introduced a bunch of optimizations to run AAPT much less frequently, since with large projects it can take a long time, and end up blocking the UI if you try to save twice. Unfortunately, one side effect of this change is that if you edit only the *value* of an attribute, we will not re-run aapt, which means that if you set the value to a bogus value, you will get no error message until the next time AAPT runs (usually when you try to run). This changeset fixes this. We already have the attribute metadata which aapt uses, so now, when an XML file is changed and saved, we process it with an XML pull parser, and validate all the Android namespace attributes. If any are found to not be correct, then we request a full AAPT process, which will then display errors as appropriate. Change-Id: I374c19648e29c27c6d82616b3ee602cb2343cd3a
* | | Merge "37497: Templates should escape string literals in resource files"Tor Norbye2012-09-205-0/+172
|\ \ \ | |/ / |/| |
| * | 37497: Templates should escape string literals in resource filesTor Norbye2012-09-185-0/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the user enters an activity title like "Android's Tools" in the new template wizard, an invalid strings.xml file is generated, since the apostrophe is not properly escaped. To fix this, there's a new string conversion method in the template engine, "escapeXmlString", which will perform all the necessary conversions. It also adds two other XML escaping functions: one to escape text to be suitable for XML attribute values, and one to be suitable for XML text values. Finally, when verifying this, I discovered that if I inserted ampersands in the MasterDetail template, I ended up with errors in various places there a filename was derived from the input string. To help make this work better, there's also a new "extractLetters" method which pulls all the characters out of a string (effectively stripping whitespace and punctuation). In addition to the above 4 new string conversion methods, the templates have been updated to use them, and the template format documentation updated. Change-Id: I4d4e854ab78d63bc86b8eb0fb9d92246534615e7
* | | Improve last editor mode handlingTor Norbye2012-09-198-29/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We recently added the ability for the IDE to remember whether you last edited an XML file in text mode or in graphical mode (see issue 31340). However, this was tracked with a single boolean flag, which meant that it was an "all or nothing" flag. However, you may want to always edit string resource files with the XML editor, but you want to always use the graphical editor for the manifest file. In this changeset, the state is kept in a bitmask instead, which allows us to track the broad editor types separately. With this, new editors are opened according to the last mode you used for that type of editor. (Note that it tracks "categories" of editors, not individual resource types, so for example the editor for color resources and the editor for state list drawables share the same last mode as the string resource editor. This is because these editors share roughly the same graphical editing capabilities.) (The CL also contains some minor code cleanup.) Change-Id: I4624dffa2349230684c0558a33081adda8d799b2
* | | Merge "Generate smaller R classes for libraries."Xavier Ducrohet2012-09-183-26/+44
|\ \ \ | |/ / |/| |
| * | Generate smaller R classes for libraries.Xavier Ducrohet2012-09-183-26/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the new --output-text-symbols from aapt the build system now generates the R class for libraries manually based on the symbols exported by the libraries and the final values computed by aapt when using all the resource folders. Because only R.java is concerned, the Manifest class is now included in the library jar file. Also added a new test apps that uses instrumentation to verify the build system. Change-Id: Ic436ea8eb070844e9db8b3b2620fbf665839d40b
* | | Merge "Add Android IDE package product build"Siva Velusamy2012-09-181-16/+50
|\ \ \ | |/ / |/| |
| * | Add Android IDE package product buildSiva Velusamy2012-09-181-16/+50
| | | | | | | | | | | | Change-Id: I42426009df581ff51389f0641eab053ac706d723
* | | Merge "Improvements to stacktrace handler for constructors"Tor Norbye2012-09-182-4/+41
|\ \ \
| * | | Improvements to stacktrace handler for constructorsTor Norbye2012-09-182-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset improves the SourceRevealer for certain types of stacktraces: (1) Constructors. If your class initializes fields using code, these are logically grouped into the constructor, but the linenumbers do not fit the constructor source range. Before this CL, this would cause the revealer to show the constructor method rather than the field initialization line. (2) Class initializers. If you clicked on a class initializer method, the IDE would throw an NPE. There's now some special handling to deal with these. Change-Id: Ibb3b7dcf13a69018f75fd12648d1f6b5c45625cc
* | | | 37546: Graphical layout in Eclipse does not render unicode charactersTor Norbye2012-09-183-0/+55
|/ / / | | | | | | | | | Change-Id: I1fd07245e68b39af16a38bcec8a711867e87e5c6
* | | Merge "Manifest Editor: class selector for <application backupAgent>."Raphael Moll2012-09-173-95/+71
|\ \ \
| * | | Manifest Editor: class selector for <application backupAgent>.Raphael Moll2012-09-173-95/+71
| |/ / | | | | | | | | | | | | | | | | | | <application android:backupAgent> needs a class selector that accepts classes deriving from BackupAgent. Change-Id: Id2e72e85967bc31a67d1eff2c342bcf7acc2cb3c
* | | Add nullness annotations on overridden methodsTor Norbye2012-09-171-1/+2
| | | | | | | | | | | | | | | | | | Eclipse 4.x requires it. Change-Id: Iababca14d8edc8d62bce42f23ee26633dc49cf8c
* | | Merge "Code cleanup"Tor Norbye2012-09-1717-27/+27
|\ \ \
| * | | Code cleanupTor Norbye2012-09-1717-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | Replace "this.mFoo = foo" with just "mFoo = foo". Change-Id: I44d537ebb62cd7e5c8493a0b50dcb527cd20f91c
* | | | Merge "Support separate layout editors for a single layout resource"Tor Norbye2012-09-1734-4084/+5253
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Support separate layout editors for a single layout resourceTor Norbye2012-09-1734-4084/+5253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset changes the "reuse" behavior of the layout editor to no longer reuse the same layout editor when you are switching between alternate layout files for the same layout resource, such as layout/foo.xml and layout-land/foo.xml. This lets you more quickly switch back and forth and inspect differences between the layouts, etc. There is also an option in the Android > Editors panel to turn on single editor sharing again. The biggest part of the changeset, by far, is a cleanup of the ConfigurationComposite class and associated code. This was necessary not just to support the above feature (where we need to "back out" UI changes when you've made a configuration edit which results in a different file getting opened), but it's also an important preparation for multi configuration editing, where we need to be able to switch configuration settings in and out of a single configuration editor, etc. The configuration data itself is now in a separate Configuration class; the UI is in ConfigurationChooser, and the configuration matching code is in ConfigurationMatcher. There's also a new Locale class to track language/region pairs instead of using 2-element ResourceQualifier arrays. The various menu listeners are also in separate UI classes now. While there are new classes, most of the configuration matching algorithm is unchanged, just moved to a new class and the UI syncing and configuration data lookup replaced. Bitmasks are used to handle configuration changes, such that updating multiple related attributes (e.g. a rendering target change also causes a theme change if say Holo isn't available) can now be processed just once with a single change call. (Various other cleanup too.) Change-Id: I04ac969f46824321be3db0c487ef077c03cc6012
* | | ManifestMerger: fix handling of codenames in min/targetSdkVersion.Raphael Moll2012-09-143-25/+70
|/ / | | | | | | | | | | | | | | | | The change is that the manifest merger will only accept a codename if it's invoked in a context that can resolve that codename to an API level. This allows to produce an error on bogus codenames and to properly check that the API levels match appropriately. Change-Id: Ic70c0c3690b13d94dba81bb78cc09386016b2ef1
* | Merge "Restore widget listeners in new project page"Tor Norbye2012-09-131-2/+52
|\ \
| * | Restore widget listeners in new project pageTor Norbye2012-09-131-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The widget listeners which update the wizard state when you change the min sdk version, or the target sdk version, went missing in changeset 4ef523b33a392e6c9ca40, probably because a cut & paste operation of a widget in WindowBuilder (to move it in the hierarchy) also sometimes removes associated event handler code in other methods (!). This CL restores this code. Change-Id: I2501d5e223bec88ebbe74d6fafcc7d7588d6204e
* | | Merge "Constants refactoring."Tor Norbye2012-09-13184-1755/+1337
|\ \ \ | |/ /
| * | Constants refactoring.Tor Norbye2012-09-13184-1755/+1337
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset moves most constants into the SdkConstants class, and gets rid of AndroidConstants and LintConstants. It also migrates all non-ADT specific constants from AdtConstants into SdkConstants. It furthermore moves various other constants (such as those in XmlUtils and ValuesDescriptors) into the constants class. It also fixes the modifier order to be the canonical modifier order (JLS 8.x). Finally, it removes redundancy and combines various constant aliases such that we don't have both NAME_ATTR and ATTR_NAME pointing to "name", etc. Change-Id: Ifd1755016f62ce2dd80e5c76130d6de4b0e32161
* | | avd launch: Fix paths using build target instead of minApiSiva Velusamy2012-09-134-48/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL performs two changes: - Refactors the predicate to decide whether an AVD can run an application into a separate class. - Fix the AUTO launch mode to properly check compatibility using this new class as opposed to just checking against the project build target. Change-Id: I9e0056e7fb855a18e7a14fe61af11682538dcc51
* | | launch: Refresh AVD selector dialog during initial setupSiva Velusamy2012-09-131-8/+14
|/ / | | | | | | | | | | | | While initially setting up the target launch mode (auto/manual/etc), make sure that mode change listener is called. Change-Id: Ib2fa9128909b31275efc1487fe0d192cc8dc3b1e
* | Merge "Add class to resource name conversion for templates"Tor Norbye2012-09-122-0/+68
|\ \
| * | Add class to resource name conversion for templatesTor Norbye2012-09-122-0/+68
| | | | | | | | | | | | | | | | | | This is to support a template name update in issue 36890. Change-Id: I47458c094c8dd601e086da0cb1c6fafb7680b58c
* | | Properly dispose DeviceManager from AvdManager.Raphael Moll2012-09-111-2/+10
| | | | | | | | | | | | | | | | | | | | | Similar issue fixed by patch d1daeae66a0ebdf53076038dc4a1fe099c4141fb but this time for the AvdManager. Change-Id: I10af39d364e427d593078f8bfa23bba3ba7e1558
* | | Merge "Select AVD to run an app based on minSdkVersion"Siva Velusamy2012-09-111-1/+33
|\ \ \