aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make inline ResourceItem able to generate ResourceValueXavier Ducrohet2011-03-108-140/+181
| | | | | | | | | | | | | | | This change fix the issue that since the simplification of the resource repository, the resource item for inline ID values would not be called to generate a ResourceValue since their list of source file was empty. This moves the creation of the ResourceValue to the ResourceItem so that InlineResourceItem can override it. This required moving findMatchingConfigurable into FolderConfiguration which is a much better place for it anyway. Change-Id: I36d6b148528c593ea432c9fd0ac8d542cbe2a26e
* Merge "ADT: fix unittests."Xavier Ducrohet2011-03-091-5/+6
|\
| * ADT: fix unittests.Xavier Ducrohet2011-03-091-5/+6
| | | | | | | | Change-Id: I258d393b5297d916b58ed3574b77f521968a13c0
* | Merge "Fix potential NPE in AvdCreationDialog"Raphael Moll2011-03-091-2/+1
|\ \ | |/ |/|
| * Fix potential NPE in AvdCreationDialogRaphael Moll2011-03-081-2/+1
| | | | | | | | Change-Id: Ic71e0242b34979f621e291c808b6a0ee35b711ff
* | Merge "Deactive BinaryXml ContentType."Raphael Moll2011-03-091-2/+3
|\ \
| * | Deactive BinaryXml ContentType.Raphael Moll2011-03-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | This breask the BinaryXml Editor feature. However it fixes the issue 15003, which is more important: http://code.google.com/p/android/issues/detail?id=15003 Change-Id: Iac0fb6ef38b7d6e60da1c8526ce9f58db2e7994b
* | | Merge "Resource management refactoring and clean-up."Xavier Ducrohet2011-03-0937-1934/+1648
|\ \ \
| * | | Resource management refactoring and clean-up.Xavier Ducrohet2011-03-0837-1934/+1648
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - (I)ResourceRepository is now a common class instead of an interface. This contains most of the code to control a repository (which was extracted from ProjectResources) ProjectResources extends it adding minor features such as library support, and inline ID definition. FrameworkResources extends it adding support for public resources (which used to be duplicated and dispersed in weird places). Changed the way resources are reloaded on resource change event. Instead of marking the resources as modified (using Resource.touch()), the resources are now parsed as the files are processed during the resource delta visitor. This makes more sense as there are now other listeners to the resource changes (hyperlinks) that access the resource list in their listeners, which wouldn't work previously. This also makes the code cleaner as the previous method had to query the repo for items and return a list of new ones, which was kinda crappy. The new code is much simpler, as is the post update process. - ResourceItem is now the base class for resource items. It includes all the small methods that were added by all the child classes or interfaces. Project/ConfigurableResourceItem are merged into the based class. IIdResourceItem and IdResourceItem are gone and replaced by a simpler InlineResourceItem. FrameworkResourceItem is a simple override for framework resources. - Also improved the API of a bit for the resource repository, making more use of unmodifiable lists and emptyList/Map() Change-Id: Ie3ac1995213fed66153c7e7ecbdd170ec257be62
* | | | Merge "- Fix a NPE when arguments are not properly understood by ↵Bill Napier2011-03-093-4/+8
|\ \ \ \ | |_|/ / |/| | | | | | | MonkeyRunner - Add the ability to pass Boolean types for Intent extras (extras={'a':True, 'b':False}) - Fix an improper flag being passed to am start - Pass the key and value to am start instead of just the value."
| * | | - Fix a NPE when arguments are not properly understood by MonkeyRunnerVijay Yellapragada2011-03-093-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add the ability to pass Boolean types for Intent extras (extras={'a':True, 'b':False}) - Fix an improper flag being passed to am start - Pass the key and value to am start instead of just the value. Change-Id: Ifd0c69ccb4c2755a49efca2d3f8b3befa212a69f
* | | | Merge "Make the feature require Eclipse 3.5"Xavier Ducrohet2011-03-085-8/+10
|\ \ \ \
| * | | | Make the feature require Eclipse 3.5Xavier Ducrohet2011-03-085-8/+10
| | |/ / | |/| | | | | | | | | | Change-Id: Idcc1ae2566e41656327190053e8e0ea22264d31d
* | | | Merge "ADT: differentiate icons in from editors."Raphael Moll2011-03-0813-41/+86
|\ \ \ \ | |_|_|/ |/| | |
| * | | ADT: differentiate icons in from editors.Raphael Moll2011-03-0813-41/+86
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In ElementDescriptor, provide 2 icon methods: - getIcon() returns a generic icon whatever the descriptor. This is used by the XML content assist. - getFormIcon() return an icon specific to the descriptor. This is used by the form editor in the block/detail tree. The icons are the same auto-generated stuff than before. A changeset with specific 'pretty' icons would be more than welcome. Change-Id: Ib0ff8298101462a7dd7e8e92f671eb0171e46c48
* | | Merge "Add more logging to ADT for file open and binary XML."Xavier Ducrohet2011-03-073-36/+97
|\ \ \
| * | | Add more logging to ADT for file open and binary XML.Raphael Moll2011-03-073-36/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also in the plugin.xml, associate our editors to the "pure" XML contentType. This should prevent Eclipse from trying to use our editors for an invalid unsupported type. It doesn't fix the fact the contentType isn't properly discovered. Change-Id: Ife053c74a936d105537c49b54f3abc987001bca7
* | | | Merge "Add logging to precompiler builder."Xavier Ducrohet2011-03-071-16/+20
|\ \ \ \
| * | | | Add logging to precompiler builder.Xavier Ducrohet2011-03-071-16/+20
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some reports of NPE in the builders on mDerivedProgressMonitor which means startupOnInitialize would fail to finish. This adds a log in the method should an exception be thrown. Change-Id: I90170b0dcc3c97a772b5d72111db9dbbbf2ee277
* | | | Merge "ADT Manifest: fix XML attribute completion."Raphael Moll2011-03-071-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | ADT Manifest: fix XML attribute completion.Raphael Moll2011-03-051-1/+1
| |/ / | | | | | | | | | | | | | | | | | | XML completion wasn't done properly for attributes for element that had a dash (-) in them. Change-Id: I433f3711e1991246d099246847c7204e04ae3e40
* | | Merge "DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)"Raphael Moll2011-03-071-2/+3
|\ \ \ | |/ / |/| |
| * | DISABLED 2 lines that break the SDK build (bios.bin in sdk/tools.atree)Raphael Moll2011-03-071-2/+3
|/ / | | | | | | Change-Id: I7d589782bf898d1ce09d0e29108566f7560019f1
* | Merge "Don't erase SDCard when editing existing AVD."Raphael Moll2011-03-045-163/+328
|\ \
| * | Don't erase SDCard when editing existing AVD.Raphael Moll2011-03-045-163/+328
|/ / | | | | | | | | | | SDK Bug 14162 Change-Id: I22493443e706bda830916ed0fc09741a1d6d1f15
* | Merge "Add logging to help track down issue #15003 in the wild"Tor Norbye2011-03-043-1/+69
|\ \
| * | Add logging to help track down issue #15003 in the wildTor Norbye2011-03-043-1/+69
| | | | | | | | | | | | Change-Id: I3b7fb370e7e4b018d02b3986d81b14e89086c191
* | | Merge "Fix NPE in SdkManager: parsed props can be null."Raphael Moll2011-03-041-1/+1
|\ \ \
| * | | Fix NPE in SdkManager: parsed props can be null.Raphael Moll2011-03-041-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ia1b873fc48e87173148572b123d3c0346542f4d9
* | | | Merge "Add qemu emulator bios files"David Turner2011-03-041-0/+2
|\ \ \ \ | |/ / / |/| | |
| * | | Add qemu emulator bios filesBruce Beare2011-02-241-0/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I6f526b920f1d671e016ff8a2cde6f11843283e99 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | | | Merge "Fix Windows SDK build."David 'Digit' Turner2011-03-041-1/+1
|\ \ \ \
| * | | | Fix Windows SDK build.David 'Digit' Turner2011-03-041-1/+1
|/ / / / | | | | | | | | | | | | Change-Id: If9f7d3fc61b5969d84a2cda68dc1ad948c21ae88
* | | | Merge "x86 and arm emulators have distinct paths"David Turner2011-03-041-1/+2
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | x86 and arm emulators have distinct pathsBruce Beare2011-02-241-1/+2
| | | | | | | | | | | | | | | Change-Id: Ieb0aa637c44ff2b9d386b6927c0b8564d1b50621 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | | Merge "Make XML code completion case insensitive"Tor Norbye2011-03-032-3/+61
|\ \ \
| * | | Make XML code completion case insensitiveTor Norbye2011-03-032-3/+61
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | If you've typed "android:textsi" on a TextView, you currently get no matches. This changeset makes the code completion case insensitive (the way it is in Java) such that it for example will match "android:textSize". Change-Id: I0f698c2a4ee983d6c0fbcce272b851b2710c9a61
* | | Merge "Add palette variations of widgets"Tor Norbye2011-03-0323-188/+615
|\ \ \
| * | | Add palette variations of widgetsTor Norbye2011-03-0323-188/+615
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset adds new items to the palette which are just variations of an existing widget but with different initial attributes. In particular: * Instead of just LinearLayout there are two versions of it: LinearLayout (Vertical) and LinearLayout (Horizontal) * The ProgressBar has 3 variations: Large, Small, and Horizontal. The horizontal ProgressBar looks like the SeekBar, without at thumb, so the SeekBar is moved next to the progress bar. * There is a new palette category, "Text Fields", which contains a number of different initializations of the EditText's "inputType" attribute - for textual and numeric passwords, for names and e-mail and postal addresses, for phone numbers, for negative and decimal numbers, etc. * Since LinearLayout is so common, the outline handles it specially to ensure that we show a horizontal or a vertical icon depending on the orientation attribute of the specific element rather than the generic descriptor icon. There are various changes to the palette icon preview and drag preview etc to handle these changes. In particular, the category initialization code had to be rewritten to be able to handle variations (since for example the text field appears in multiple categories, so the old assumption that each view had an assigned category was no longer true.) This changeset also extracts a constant for the "android:" literal used in many places in the code, and renames the existing "android" namespace constant. Change-Id: Ibbc3dbd34c551594421c3de034cdccea6a66eba0
* | | Merge "Remove trailing comma that was causing compile problems."Bill Napier2011-03-031-1/+1
|\ \ \
| * | | Remove trailing comma that was causing compile problems.Bill Napier2011-03-031-1/+1
|/ / / | | | | | | | | | Change-Id: Ia80bd2c25b5898a6ad99b9404b89c1b41c8290ba
* | | Merge "Allow loading MonkeyImages from a local filesystem."Bill Napier2011-03-032-2/+40
|\ \ \ | |/ / |/| |
| * | Allow loading MonkeyImages from a local filesystem.Bill Napier2011-02-282-2/+40
| | | | | | | | | | | | Change-Id: I995ac65f1e376b01312d66f82441043971acd16c
* | | Merge "More refactoring work: Convert hierarchy, and change type"Tor Norbye2011-03-0273-228/+4932
|\ \ \
| * | | More refactoring work: Convert hierarchy, and change typeTor Norbye2011-02-2873-228/+4932
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of work on the "Change Layout" refactoring to improve conversion to a Relative Layout. First, add a "Flatten Hierarchy" option which can take an entire hierarchy of layout widgets and flatten it down to a single top level RelativeLayout where the constraints attempt to reflect the original layout. (This isn't always possible, since some layout managers offer features not possible to express in RelativeLayout, such as a LinearLayout with multiple different weights) but it often works or is at least a good start. (This work is ongoing, but since my changeset is getting large I want to check in this snapshot since the functionality is better than what is in the trunk.) This changeset also adds a new refactoring: Change Widget Type. This can be applied to a selection of elements, and it will convert the widget type to the new target widget type. It will also remove any attributes that are not valid for the new layout. It also improves the wizards which display the possible target types. For Change Widget Type, it will first offer "related" widgets, so for an AnalogClock it will first offer Digital Clock, for a checkbox it will offer a checked text view and a radio button, etc. In addition, it will list Views and Layouts that it finds in any library jars (except for the builtin Android ones), and any custom view classes in the project. There is also now some preliminary support for refactoring unit tests. These tests must be run as Eclipse plugin tests, since they utilize the XML model (and the XML model cannot be mocked). The test infrastructure reads source XML files, applies the refactoring change list to them, and diffs the output with the known expected output (also stored as result XML files in the test project). Finally, there are a number of fixes and improvements to the shared refactoring code. Change-Id: I0974653e530dfb4feb625e0eef8257c29d50614b
* | | | Merge "Add drop-down menu button to the palette control"Tor Norbye2011-03-025-38/+74
|\ \ \ \
| * | | | Add drop-down menu button to the palette controlTor Norbye2011-03-015-38/+74
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a menu button to the palette label line, as is done in most Eclipse windows, which brings up the context menu for the palette. This makes the palette modes etc a bit more discoverable. (I played with adding a few dedicated toggle buttons there as well, but it looked a bit odd because the palette toolbar is a few pixels higher than the layout actions bar in the canvas, so visually things looked misaligned; we'll need to address that before adding proper action buttons in the palette title panel.) Change-Id: I18906ee7c2ebede96f167925ee27a7064715fa8b
* | | | Merge "Fix Palette preview image scaling on Windows"Tor Norbye2011-03-011-0/+7
|\ \ \ \
| * | | | Fix Palette preview image scaling on WindowsTor Norbye2011-02-281-0/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using palette previews with a scaling factor (e.g. the small or tiny palette modes), the preview images look bad on Windows. This appears to be because SWT on Windows has a different set of defaults for antialiasing and interpolation. This checkin turns on antialiased high interpolation for image painting in the palette (when the palette is scaled) to address the first issue listed in 15071: Layout editor rendering issues in ADT 10 Change-Id: Ie3c619d9105d9d30b1bbe5fb91c195c0f65fee97
* | | | Merge "AVD and ADT eclipse plugin to support processor-specific platform ↵Xavier Ducrohet2011-03-0122-90/+453
|\ \ \ \ | |/ / / |/| | | | | | | images and emulators."