aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.adt/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Update Layoutlib_api to use a class for h/w config.Xavier Ducrohet2012-10-1711-238/+222
| | | | | | | | | | | | Change-Id: Iead02d468590407ec274357f1a1c57ed8d5cc24c
* | | ADT 21 rc9 depends on Tools 21 rc9.Raphael Moll2012-10-171-1/+1
| | | | | | | | | | | | Change-Id: I069f9df1c50cf16329934046ed1bc5bbd04d2533
* | | 32849: Fix CRLF line ending handling in the partial formatterTor Norbye2012-10-176-10/+105
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the handling of \r characters in the code which applies formatting deltas into existing documents. It could end up inserting the formatted portion in the middle of a \r\n pair, which made Eclipse extremely confused (https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421) This fixes 32849: Eclipse android adt xml editing artifacting (unsynced) lines of text when changes are made in the graphical interface It also adds a lint check to identify *existing* files that already have these mangled line endings, along with a quickfix to make the correction. Change-Id: I1e7024f2786e4cb0233c2c6b98c3d3f942703ea0
* | Merge "Add support for dex force jumbo."Xavier Ducrohet2012-10-165-4/+27
|\ \
| * | Add support for dex force jumbo.Xavier Ducrohet2012-10-165-4/+27
| | | | | | | | | | | | Change-Id: I68188063f0a44af9d38c2a47a53684a68bf346c3
* | | Use nine patch capability to drive tvdpi maskingTor Norbye2012-10-164-13/+75
| | | | | | | | | | | | Change-Id: Ibe9ca90540113157d4fdb5554965d626c22581d8
* | | New API in layoutlib_api.Xavier Ducrohet2012-10-161-0/+8
| | | | | | | | | | | | | | | | | | | | | - Capability for fixed 9-patch scaling. - software button param for rendering. Change-Id: I2616dbd97dc413c2c5b5d52af6309967400d2456
* | | Fix a couple of bugs related to multiconfig switchingTor Norbye2012-10-163-0/+7
| | | | | | | | | | | | Change-Id: I0b441971de02fc4fc3da78e4e411828ca3eedbbc
* | | Hide tvdpi previews for nowTor Norbye2012-10-163-0/+50
|/ / | | | | | | | | | | | | | | | | Ideally, hook this up to render capabilities later. Also customize the detailed message in the layout editor when the Nexus 7 is chosen. Change-Id: I7606dbb89d9fda643b175a51177624b564c417cf
* | Check for missing layout_width and layout_height attributesTor Norbye2012-10-161-0/+1
| | | | | | | | | | | | | | | | Also looks at style declarations and attributes on include tags to allow elements to either pick up sizes from styles or from the including context. Change-Id: I91a944805d8a906ff63b5a22f2faa876e7292c19
* | Misc improvements to the multi-configuration editingTor Norbye2012-10-157-96/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | * Fix bug in switching to preview configurations * Don't draw drop shadows for thumbnails in Dialog themes * Move the preview title labels to sit above each preview thumbnail * Make error thumbnails include rendering error messages (and wrap if necessary), plus tweak appearance * Make switch animation show rectangles animating in both directions Change-Id: I0995617fa277b48419a88c5203abf5b1d49af711
* | Hide ancient rendering targets from the target menuTor Norbye2012-10-151-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Old rendering targets (prior to API 7) have really out of date layout libraries; they did not get updated with all the fidelity fixes last spring, and in general have a lot of problems rendering layouts correctly. Hide these from the target menu since they just don't work well. Also change the sort order to list the most recent targets first. Change-Id: If680590666a4747c8082eccd63bdac2aa724f7ff
* | Fix config switchingTor Norbye2012-10-151-1/+1
| | | | | | | | Change-Id: I3fdc7ecd89472c7da1c240d2cb253c6d327a7ffb
* | Merge "AVD: display devices in a tab+list."Raphael Moll2012-10-121-2/+2
|\ \
| * | AVD: display devices in a tab+list.Raphael Moll2012-10-121-2/+2
| | | | | | | | | | | | Change-Id: I70c6e0fa0b9622e8050e5d949674377e5ac0ffad
* | | Improvements to the multi-configuration layoutTor Norbye2012-10-124-100/+854
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new layout algorithm which tries to do a more optimal fit if all the configuration previews can fit on the current screen without scrolling. (However, it still doesn't scale up these previews to fit all available space, that's coming in a later CL). It also delays rendering previews and performing layout until the layout is actually painted, and improves the error rendering a bit. It's also more deliberate in how preview renderings are scheduled, performing them in visual order etc. There's a new brief animation when you switch to a preview. Finally, there are some preview zoom controls now. Change-Id: Iea503a3fd57dfcaea7656e47b946bfcfea3eecb1
* | Merge "Lazy loading (and reloading) of project resources."Xavier Ducrohet2012-10-103-70/+34
|\ \
| * | Lazy loading (and reloading) of project resources.Xavier Ducrohet2012-10-103-70/+34
| | | | | | | | | | | | Change-Id: I4a725d523ae14ba8b487076e230fe9d622d5d281
* | | 38325: onClick XML attribute with @string resource not recognisedTor Norbye2012-10-101-2/+18
|/ / | | | | | | | | | | | | | | | | | | Don't flag onClick handlers as missing when they are using resource name indirections. Also make the Go To Declaration hyperlink work for tools:context links to activities. Change-Id: Ie26cefd2cebef32e955e3031da707654f3dc7e06
* | Merge "SDK fix for bug 21589: disable type rename refactoring."Raphael Moll2012-10-091-0/+21
|\ \
| * | SDK fix for bug 21589: disable type rename refactoring.Raphael Moll2012-10-081-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a simplified workaround for bug 21589, we disable the Android Type Rename refactoring if the current rename options enable the "update fully qualified names in non-java files" and the file patterns mentions "xml". It may generate false negatives (e.g. if the pattern doesn't cover the AndroidManifest.xml or the layouts that would have been renamed) but it seems safer than corrupting the XML file. Change-Id: I5e7ba3c76c0e643225d03cf0016bf431497818e7
* | | Merge "ADT Refactoring: 2 minor fixes."Raphael Moll2012-10-098-33/+45
|\ \ \ | |/ /
| * | ADT Refactoring: 2 minor fixes.Raphael Moll2012-10-068-33/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes 2 minor issues in the "android type rename" refactoring: - the oldName vs newName was inverted in _some_ of the refactorings. It was still properly working due to pure luck. - I've added an heuristic: if for example an <activity> uses the fully qualified name for its class name attribute, then the refactoring should not collapse it to the short notation (".MyClass"). Make it respect whether the developper choose to expand or not the class name. This still does not fix SDK bug 21589. Change-Id: I2f189508979710a6fab5c2f6db360c3776a5930e
* | | Merge "ADT Refactoring: merge duplicate packages."Raphael Moll2012-10-0916-36/+35
|\ \ \ | |/ /
| * | ADT Refactoring: merge duplicate packages.Raphael Moll2012-10-0616-36/+35
| | | | | | | | | | | | | | | | | | | | | | | | This is a pure-refactor that merges adt.internal.refactoring into adt.internal.refactorings (note the 's' on the 2nd one). Makes more sense to not have 2 packages for the same thing. Change-Id: I1dae60d18222e556f5140be579d4f84bb1bf7cd4
* | | Merge "Find mismatches between EditText inputType and name"Tor Norbye2012-10-082-4/+8
|\ \ \
| * | | Find mismatches between EditText inputType and nameTor Norbye2012-10-052-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a lint check which looks at the id of an EditText, and if it looks like it has a specific purpose (e.g. password or e-mail or number or phone etc) then it checks that the corresponding inputType matches. Change-Id: Ib40d3e47c88ea01ccbad61f3a24d9b9a4e79d5c6
* | | | Merge "Check notification and action bar icons"Tor Norbye2012-10-081-2/+2
|\ \ \ \ | |/ / /
| * | | Check notification and action bar iconsTor Norbye2012-10-051-2/+2
| |/ / | | | | | | | | | | | | | | | | | | These icons should not use color (and in the case of notification icons, be white). Change-Id: I32b9422735830a01bb069b90a5ad5a76d7aeb5de
* | | Merge "38277: editor doesn't autocomplete visibility inside <include> tag"Tor Norbye2012-10-081-12/+17
|\ \ \
| * | | 38277: editor doesn't autocomplete visibility inside <include> tagTor Norbye2012-10-081-12/+17
| | | | | | | | | | | | | | | | Change-Id: Ifbace2c9b51442ea6fc376db33cdd9cd7112a446
* | | | Merge "Synchronize layout metadata across layout configurations"Tor Norbye2012-10-083-205/+318
|\ \ \ \ | |/ / /
| * | | Synchronize layout metadata across layout configurationsTor Norbye2012-10-083-205/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you choose a preview layout to use for a ListView or GridView, or if you choose a fragment layout to use for a <layout> tag, until now that setting has only applied to the exact layout you are currently editing. This changeset makes the setting also get synchronized to all the other layout variations (-land, -xlarge etc) of the layout, such that you don't have to find yourself tweaking this setting each time you open some new variation of the layout after changing preview settings. (Also deletes a bunch of the old comment-based metadata code.) Change-Id: I712213920a8956901da157eb94611b2372368fcc
* | | | Merge "Fix create new layout configuration bugs"Tor Norbye2012-10-081-11/+10
|\ \ \ \ | |/ / /
| * | | Fix create new layout configuration bugsTor Norbye2012-10-081-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two bugs: (1) It would fail if you added a configuration into a folder that already existed (2) It would duplicate the on-disk contents of the layout rather than the currently edited (not yet saved) contents of the layout Change-Id: I63b2f80e61d62cdd6f41c9ac19b9cb57b0548319
* | | | Merge "Include adapter binding support for included layouts"Tor Norbye2012-10-086-19/+92
|\ \ \ \ | |/ / /
| * | | Include adapter binding support for included layoutsTor Norbye2012-10-056-19/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds support for looking up adapter binding metadata (such as which layout to use for a list view) for layouts that included by other layouts (and potentially nested even deeper than that). This hasn't worked in the past because the adapter binding relied on getting a UiViewElementNode, supplied as a view cookie by the element parser. However, since we also provide the parser used for included context (a simply KXml parser), it now looks up the tools attributes and puts them in a map as a view cookie (for the tags known to have adapter view bindings) and uses this later in the project callback to look up a suitable adapter binding. (Also tweak error message, and switch from rendered previews to builtin icons for the imageview and imagebutton palette items.) Change-Id: I99e8b10efb172a1918b74b11123d11c275e1f004
* | | | Merge "Multi configuration editing fixes"Tor Norbye2012-10-0811-109/+229
|\ \ \ \ | |/ / /
| * | | Multi configuration editing fixesTor Norbye2012-10-0411-109/+229
| |/ / | | | | | | | | | Change-Id: Id7c544611cfd74ed4d6aa1f307321ae0522e2dff
* | | Add workaround for the Eclipse+Mountain Lion bugTor Norbye2012-10-055-0/+91
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Mountain Lion, the property sheet's property editor inline text editor is broken. This is due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=388574 The bug has been fixed for Eclipse 4.3, but right now it's a very poor user experience; you click to edit, and nothing happens. This changeset adds a workaround: *If* the bug is triggered (an exception is thrown during property editor activation), then the customizer dialog is shown instead (equivalent to clicking on the "..." button next to the property). The dialog code is modified to show an error message on the bottom explaining why the dialog was shown instead (since this behavior is annoying, we should explain to users why we are doing), and it explains that the bug should be fixed in Eclipse 4.3, so if anyone in the future is running Eclipse 4.2 with this behavior and 4.3 is available, they will have an incentive to upgrade. Change-Id: I338a26c39aca0042075d7a12527b723d9783509c
* | Multi-Configuration Layout EditingTor Norbye2012-10-0327-232/+4578
| | | | | | | | | | | | | | | | This changeset adds support for previewing other configurations (as well as including contexts) for a layout, with live updates. Change-Id: Iff3523d6f5749b3287716e563330fb18c8576611
* | Change the global monitor to handle non android project.Xavier Ducrohet2012-10-038-59/+70
| | | | | | | | | | | | | | | | | | | | | | Project listeners don't receive notifications on non-android projects. file/folder listener have a boolean to tell them what the project is. Raw listeners have to check it manually so the only user now does so. Change-Id: I7068176099d28d979d31070854a2a646bca1204e
* | Fix possible collision in pre-dexed lib filenames.Xavier Ducrohet2012-10-021-2/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously all predexed libraries used the same filename as their source but all predexed libs would go in the same folders, possibly conflicting with each others. This fixes it by making the predexed lib filename use the (hashed) path of the original library. Also added some extra logging to indicate when a predexed lib is used. Change-Id: I7c248f647ee0531334d7fa4f1e943ea0932699d4
* | Fix dependency on changed Java projects.Xavier Ducrohet2012-10-011-3/+4
| | | | | | | | Change-Id: I82d0937e6016cc64550468915a79f08b234cae60
* | ManifestMerger: ability to inject attributes.Raphael Moll2012-09-281-1/+2
| | | | | | | | Change-Id: Icbebe1dd3c8cf51f7d38b585a78264d01977e943
* | Fix issue with generation of R classes for libraries.Xavier Ducrohet2012-09-274-26/+65
| | | | | | | | | | | | | | | | | | | | | | When a clean action happen, the order of compilation of the project isn't dictated by the dependencies between the project. It is therefore important to detect changed in R.txt for each library and recompile the project when that happens. Also fixed a potential NPE when building libraries! Change-Id: I6a87e9c3a4984e5aa6401270cf83eaea74044c9f
* | Improve aapt error messageTor Norbye2012-09-273-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | If anything goes wrong with aapt, we emit an error message that we could not execute aapt and to check the install location. However, if the file exists but isn't executable, or if a parsing error happens in the new SymbolLoader/Writer, the error message is misleading. This changeset makes the error message more specific if it looks like the root cause isn't a missing aapt installation. Change-Id: Ifb09a2dd736f6a93c0f167162826e1ad6e3d2a63
* | Merge "Never generate R class for libraries inside libraries."Xavier Ducrohet2012-09-261-1/+2
|\ \
| * | Never generate R class for libraries inside libraries.Xavier Ducrohet2012-09-261-1/+2
| | | | | | | | | | | | | | | | | | Bad ADT, bad! Change-Id: Id1e0ee1c0001faf16b5551674d037f009222015b
* | | Add detector for fragments missing idsTor Norbye2012-09-262-0/+22
| | | | | | | | | | | | | | | | | | See issue 35959 for background. Change-Id: I8042b42e4649163cf8e6974d074ac05777685766