| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I258d393b5297d916b58ed3574b77f521968a13c0
|
|\ \
| |/
|/| |
|
| |
| |
| |
| | |
Change-Id: Ic71e0242b34979f621e291c808b6a0ee35b711ff
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- (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
|
|\ \ \ \
| |_|/ /
|/| | |
| | | | |
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."
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- 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
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | | |
Change-Id: Idcc1ae2566e41656327190053e8e0ea22264d31d
|
|\ \ \ \
| |_|_|/
|/| | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| |/ / /
|/| | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
XML completion wasn't done properly for attributes for element
that had a dash (-) in them.
Change-Id: I433f3711e1991246d099246847c7204e04ae3e40
|
|\ \ \
| |/ /
|/| | |
|
|/ /
| |
| |
| | |
Change-Id: I7d589782bf898d1ce09d0e29108566f7560019f1
|
|\ \ |
|
|/ /
| |
| |
| |
| |
| | |
SDK Bug 14162
Change-Id: I22493443e706bda830916ed0fc09741a1d6d1f15
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I3b7fb370e7e4b018d02b3986d81b14e89086c191
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: Ia1b873fc48e87173148572b123d3c0346542f4d9
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: I6f526b920f1d671e016ff8a2cde6f11843283e99
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
|
|\ \ \ \ |
|
|/ / / /
| | | |
| | | |
| | | | |
Change-Id: If9f7d3fc61b5969d84a2cda68dc1ad948c21ae88
|
|\ \ \ \
| |/ / /
| | / /
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: Ieb0aa637c44ff2b9d386b6927c0b8564d1b50621
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
|/ / /
| | |
| | |
| | | |
Change-Id: Ia80bd2c25b5898a6ad99b9404b89c1b41c8290ba
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
Change-Id: I995ac65f1e376b01312d66f82441043971acd16c
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| |/ / /
|/| | |
| | | | |
images and emulators."
|