OSDN Git Service

android-x86/sdk.git
13 years agoMerge "Merge d4166974 from master. do not merge. Fix issue with resource repository...
Xavier Ducrohet [Fri, 20 May 2011 23:10:59 +0000 (16:10 -0700)]
Merge "Merge d4166974 from  do not merge. Fix issue with resource repository when using libraries" into tools-adt_r11

13 years agoMerge d4166974 from master. do not merge.
Xavier Ducrohet [Fri, 20 May 2011 22:44:49 +0000 (15:44 -0700)]
Merge d4166974 from master. do not merge.
Fix issue with resource repository when using libraries

Change-Id: I45c8af34020f047f08a53ddd6ada3a8be4061a52

13 years agoMerge "Update changes.txt" into tools-adt_r11
Tor Norbye [Fri, 20 May 2011 00:15:42 +0000 (17:15 -0700)]
Merge "Update changes.txt" into tools-adt_r11

13 years agoUpdate changes.txt
Tor Norbye [Thu, 19 May 2011 20:52:31 +0000 (13:52 -0700)]
Update changes.txt

Change-Id: I30fde6f00a967dd3cee5c02b4f4fb95409a125a0

13 years agoMerge "Merge 3586fef5 from master. do not merge." into tools-adt_r11
Xavier Ducrohet [Thu, 19 May 2011 21:20:07 +0000 (14:20 -0700)]
Merge "Merge 3586fef5 from  do not merge." into tools-adt_r11

13 years agoMerge "Merge 677a2489 from master. do not merge." into tools-adt_r11
Xavier Ducrohet [Thu, 19 May 2011 21:19:55 +0000 (14:19 -0700)]
Merge "Merge 677a2489 from  do not merge." into tools-adt_r11

13 years agoMerge 3586fef5 from master. do not merge.
Xavier Ducrohet [Thu, 19 May 2011 18:29:32 +0000 (11:29 -0700)]
Merge 3586fef5 from master. do not merge.

Add method to LayoutLibrary to query layoutlib api level and rev.

Change-Id: Ib34251b690c18167f69a5b389fcabddbf8bb0aa1

13 years agoMerge 677a2489 from master. do not merge.
Xavier Ducrohet [Thu, 19 May 2011 00:11:35 +0000 (17:11 -0700)]
Merge 677a2489 from master. do not merge.

Add revision number to the layoutlib.

Change-Id: Icfceb6b6328ed445ecc1bdefe7fc14192ba39328

13 years agoMerge "Migrate render target settings to released versions" into tools-adt_r11
Tor Norbye [Thu, 19 May 2011 15:58:33 +0000 (08:58 -0700)]
Merge "Migrate render target settings to released versions" into tools-adt_r11

13 years agoMigrate render target settings to released versions
Tor Norbye [Tue, 17 May 2011 23:34:16 +0000 (16:34 -0700)]
Migrate render target settings to released versions

When loading the project's render target setting (which as of ADT 11
is per project rather than per layout), check to see if it has a code
name, and if so, see if the user has the final version of the platform
installed as well. If so, migrate the render target to the final
version instead since the user probably did not intentionally want to
stay with the pre-release version after installing the final version.

Change-Id: I4cdfbb9670a042cf342d2c371ef123eff3959ff2

13 years agoMerge "Improve the choice of default configuration" into tools-adt_r11
Tor Norbye [Thu, 19 May 2011 15:54:12 +0000 (08:54 -0700)]
Merge "Improve the choice of default configuration" into tools-adt_r11

13 years agoImprove the choice of default configuration
Tor Norbye [Tue, 17 May 2011 22:49:50 +0000 (15:49 -0700)]
Improve the choice of default configuration

When you open a new layout, the layout editor needs to pick an initial
configuration for the layout.  Currently, the choice of layout is
based on the project API level (such that it picks tablet screen and
landscape orientation for API 11, and phone and portrait for lower
APIs).

This changeset adds another factor: the currently used configuration.
If you have another layout visible and you open a new layout, then the
configuration for the current layout will be used for the new layout
(if it is a compatible match).

Change-Id: I66302e7ffb13c9b66e6fd0f7f347ebf4df142f77

13 years agoMerge "Fix merge error" into tools-adt_r11
Tor Norbye [Thu, 19 May 2011 15:44:01 +0000 (08:44 -0700)]
Merge "Fix merge error" into tools-adt_r11

13 years agoFix merge error
Tor Norbye [Thu, 19 May 2011 15:42:33 +0000 (08:42 -0700)]
Fix merge error

Change-Id: I8b21078fe6486e2ee40ec5beb50de4046e1623f7

13 years agoMerge "Add Request Focus to textfields" into tools-adt_r11
Tor Norbye [Thu, 19 May 2011 00:21:52 +0000 (17:21 -0700)]
Merge "Add Request Focus to textfields" into tools-adt_r11

13 years agoAdd Request Focus to textfields
Tor Norbye [Mon, 2 May 2011 22:57:02 +0000 (15:57 -0700)]
Add Request Focus to textfields

This changeset adds a couple of focus related changes:

1) When the first text field is added into a layout, it is
  automatically requesting focus

2) There is a new context menu item available on textfields to request
   focus. When invoked on a text field, it will both add
   <requestFocus> to itself and remove it from any other text fields
   that have set it in the layout. When invoked on a text field which
   already has focus, it will offer to clear the focus.

3) The Advanced section of the palette also contains the
   <requestFocus> tag.

Change-Id: Ie9e1ab07c4f7ea701e9fac17f6c82e52656bc755

13 years agoMerge "Binary XML editor" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:22:25 +0000 (12:22 -0700)]
Merge "Binary XML editor" into tools-adt_r11

13 years agoMerge "Fix bug in editor open utility" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:15:17 +0000 (12:15 -0700)]
Merge "Fix bug in editor open utility" into tools-adt_r11

13 years agoMerge "Fragment Rendering Support" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:15:03 +0000 (12:15 -0700)]
Merge "Fragment Rendering Support" into tools-adt_r11

13 years agoMerge "Basic fragment support" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:14:43 +0000 (12:14 -0700)]
Merge "Basic fragment support" into tools-adt_r11

13 years agoMerge "Make Go To Declaration work for <fragment> names." into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:14:29 +0000 (12:14 -0700)]
Merge "Make Go To Declaration work for <fragment> names." into tools-adt_r11

13 years agoMerge "Custom View handling improvements" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:14:11 +0000 (12:14 -0700)]
Merge "Custom View handling improvements" into tools-adt_r11

13 years agoMerge "Escape Strings extracted with the Extract String refactoring" into tools-adt_r11
Tor Norbye [Wed, 18 May 2011 19:13:35 +0000 (12:13 -0700)]
Merge "Escape Strings extracted with the Extract String refactoring" into tools-adt_r11

13 years agoBinary XML editor
Haris Peco [Fri, 6 May 2011 23:06:59 +0000 (01:06 +0200)]
Binary XML editor

This change contains the workaround for
http://code.google.com/p/android/issues/detail?id=15003
For details,
see http://code.google.com/p/android/issues/detail?id=15003#c50

Change-Id: I6485d32620a23c17879922155a8cfb6e4290f05e

13 years agoFix bug in editor open utility
Tor Norbye [Mon, 16 May 2011 22:14:24 +0000 (15:14 -0700)]
Fix bug in editor open utility

The code to open a file (called by Go To Declaration, Show Include
etc) handles two scenarios:

(1) The file is in the workspace - open using Eclipse IFile mechanism
(2) The file is outside the workspace - open using the fallback
    external storage (which means you get a plain XML editor)

There's a third scenario: the file is not in the workspace, but is
part of a project in the workspace so it does have a valid IFile.
(This can happen if you import a project but choose not to copy the
contents into the workspace).  This changeset adjusts the code to open
up an editor such that it handles this third scenario and we get our
own XML editors for these types of files.

Change-Id: I040e1b899cd38bbda3fcf3475cc4dfb541d10016

13 years agoFragment Rendering Support
Tor Norbye [Mon, 16 May 2011 21:02:15 +0000 (14:02 -0700)]
Fragment Rendering Support

This changeset adds designtime-previewing of fragments, where
a layout which contains fragments will show the contents of
the fragments inline.

Initially, the fragments are empty, but you can right click on them to
bring up a context menu where you can choose which layout to show at
designtime. This is persisted across IDE sessions, just like the
ListView render preview.

In addition to the generic layout chooser, all layout references found
in the associated Fragment class (usually what you want) are listed
directly in the menu.

Change-Id: Iff3e6e5cbf87a19bdb61e677a63f663ca6e4848b

13 years agoBasic fragment support
Tor Norbye [Sun, 15 May 2011 20:14:19 +0000 (13:14 -0700)]
Basic fragment support

This changeset adds preliminary support for fragments:

* Add <fragment> to the palette, along with a drop handler which pops
  up a class chooser to pick the Fragment class; all project
  implementations of android.app.Fragment and
  android.support.v4.app.Fragment are listed.

* Adds a fragment descriptor such that code completion works for
  <fragment> elements

* Fix project callback such that it does not complain about a missing
  class "fragment".

* Fix outline to display the name of the fragment rather than the
  fragment tag name.

* This changeset also centers the label in MockViews since those are
  still used to render fragments

Conflicts:

eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/descriptors/LayoutDescriptors.java

Change-Id: I6f39f0c29a0cf21799fa8a55406eeae1e3beb57f

13 years agoMake Go To Declaration work for <fragment> names.
Tor Norbye [Thu, 28 Apr 2011 22:51:38 +0000 (15:51 -0700)]
Make Go To Declaration work for <fragment> names.

Conflicts:

eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/LayoutConstants.java

Change-Id: I5260aacb7d7a14141f43d9a65bb4bb87627d17c2

13 years agoCustom View handling improvements
Tor Norbye [Fri, 13 May 2011 20:25:15 +0000 (13:25 -0700)]
Custom View handling improvements

First and foremost, allow custom views to accept children such that
you can drag & drop children into the custom view in the outline.

Second, prevent an NPE which can occur if you drag into a layout where
the root element is a custom view.

Third, handle <view> (not <View>) better: provide a custom icon, and
inline the view class name in the outline label.

Fourth, allow double clicks (in addition to ctrl-click which is already
supported) on the custom views in the palette to allow jumping to the
custom view code.

Change-Id: I13c2bf2f4169185c9fcc893ce487f2abdac46802

Conflicts:

eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/descriptors/LayoutDescriptors.java

13 years agoEscape Strings extracted with the Extract String refactoring
Tor Norbye [Fri, 13 May 2011 00:11:25 +0000 (17:11 -0700)]
Escape Strings extracted with the Extract String refactoring

Escape any single or double quotes inside the string
value definition in strings.xml:
  This'll work   =>  "This'll work"
  Escape '"      =>  Escape \'\"

Change-Id: I21cb506e10e837feb0e435a21cb50aaa5342f0fa

13 years agoMerge "Merge a109773a from master. do not merge." into tools-adt_r11
Xavier Ducrohet [Tue, 17 May 2011 18:45:38 +0000 (11:45 -0700)]
Merge "Merge a109773a from  do not merge." into tools-adt_r11

13 years agoMerge a109773a from master. do not merge.
Xavier Ducrohet [Tue, 17 May 2011 01:37:22 +0000 (18:37 -0700)]
Merge a109773a from master. do not merge.

Update layoutlib api level to 6.

This will make earlier ADT versions force the user to update.

Change-Id: I20158fb894ba0a88d981301a003e7f09719bab43

13 years agoMerge "Merge 580ecb7a from master. do not merge." into tools-adt_r11
Xavier Ducrohet [Tue, 17 May 2011 17:47:34 +0000 (10:47 -0700)]
Merge "Merge 580ecb7a from  do not merge." into tools-adt_r11

13 years agoMerge 580ecb7a from master. do not merge.
Xavier Ducrohet [Mon, 16 May 2011 23:00:10 +0000 (16:00 -0700)]
Merge 580ecb7a from master. do not merge.

Add baseline/margins to ViewInfo.

Also make it so that older layoutlib that are using API5 return the
value through reflection (done in LayoutLibrary.)

Change-Id: Ied102625430b53f9b5e62aa738c8c598054cc266

13 years agoMerge "Merge 'Remove "Android Tools > Convert to Android Project"' into tools-adt_r11...
Raphael Moll [Tue, 17 May 2011 16:36:31 +0000 (09:36 -0700)]
Merge "Merge 'Remove "Android Tools > Convert to Android Project"' into tools-adt_r11" into tools-adt_r11

13 years agoMerge 'Remove "Android Tools > Convert to Android Project"' into tools-adt_r11
Raphael Moll [Mon, 16 May 2011 20:47:42 +0000 (13:47 -0700)]
Merge 'Remove "Android Tools > Convert to Android Project"' into tools-adt_r11

The feature to convert a Java Project into an
Android Project is broken. It's also quite irrelevant
now since project are better created using the NPW.

SDK Bug: 3259855

(cherry picked from commit 7f8f80cfe2a29b7ebaf139fb4228ad31192fb8a9)

Change-Id: Ifb5e93d2dcf6853136cd4add5e4af6b14fafec35

13 years agoMerge "Add emulator-arm to SDK, including Windows SDK." into tools_r11
Raphael Moll [Wed, 4 May 2011 21:35:08 +0000 (14:35 -0700)]
Merge "Add emulator-arm to SDK, including Windows SDK." into tools_r11

13 years agoAdd emulator-arm to SDK, including Windows SDK.
Raphael Moll [Wed, 4 May 2011 21:32:41 +0000 (14:32 -0700)]
Add emulator-arm to SDK, including Windows SDK.

Also fixes the fact the Windows SDK wasn't building emulator-arm
nor emulator-x86.

SDK BUG: 4377649

Change-Id: I1450a8c73e0078e69ccd28b220bf37ecd0a6fd5c

13 years agoMerge "Merge "emulator: qemud: shut-up debug messages."" into tools_r11
Raphaël Moll [Wed, 4 May 2011 21:14:50 +0000 (14:14 -0700)]
Merge "Merge "emulator: qemud: shut-up debug messages."" into tools_r11

13 years agoMerge "Merge "SdkManager: handle missing platforms/ and add-ons/ folders."" into...
Raphael Moll [Wed, 4 May 2011 21:14:30 +0000 (14:14 -0700)]
Merge "Merge "SdkManager: handle missing platforms/ and add-ons/ folders."" into tools_r11

13 years agoMerge "emulator: qemud: shut-up debug messages."
David 'Digit' Turner [Mon, 2 May 2011 11:34:26 +0000 (13:34 +0200)]
Merge "emulator: qemud: shut-up debug messages."

This change is already under development/tools/emulator/system/qemud/qemud.c

However, this sdk/.../qemud.c source file was first deleted, then reverted,
with the change in between. So apply it here too.

(cherry picked from commit dbf6055b33f2c9442f8436926082d4deb3540e8f)

Change-Id: I91613cfee2ee326904b0f2345cef5b972de609bf

13 years agoMerge "SdkManager: handle missing platforms/ and add-ons/ folders."
Raphael Moll [Mon, 2 May 2011 21:24:26 +0000 (14:24 -0700)]
Merge "SdkManager: handle missing platforms/ and add-ons/ folders."

A while ago, when we were dealing with monolithics SDKs,
the strategy was that we wanted to make sure that
the 'android' command was invoked from a properly setup
SDK folder. Consequently the SdkManager required at least
the platforms/ and add-ons/ folders to be present, even if
empty.

I don't think that behavior is really necessary anymore.
The 'android' tool is invoked with knowledge from its tools
folder, so we can safely assume the top parent is "the SDK
folder" and create these directories if they are missing.

We do however try to create them as early as possible if
they are missing, so that the tool aborts early if we can't
create them. The other alternative would be to just try to
create them when we're actually installing a package.

(cherry picked from commit a77c147c9e7ed3ef0c99cb2cdf986603e6d229cf)

Change-Id: I6da1710b1a1844931bdb99d840ae575f53a9b947

13 years agoMerge "Merge "Update changes.txt for ADT 11"" into tools_r11
Tor Norbye [Wed, 4 May 2011 20:13:59 +0000 (13:13 -0700)]
Merge "Merge "Update changes.txt for ADT 11"" into tools_r11

13 years agoMerge "Merge "Add code completion support for drawables, animations and colors""...
Tor Norbye [Wed, 4 May 2011 20:13:51 +0000 (13:13 -0700)]
Merge "Merge "Add code completion support for drawables, animations and colors"" into tools_r11

13 years agoMerge "Merge "Misc fixes"" into tools_r11
Tor Norbye [Wed, 4 May 2011 20:13:42 +0000 (13:13 -0700)]
Merge "Merge "Misc fixes"" into tools_r11

13 years agoMerge "Merge "Improve custom view search and filtering"" into tools_r11
Tor Norbye [Wed, 4 May 2011 20:13:31 +0000 (13:13 -0700)]
Merge "Merge "Improve custom view search and filtering"" into tools_r11

13 years agoMerge "Update changes.txt for ADT 11"
Tor Norbye [Fri, 29 Apr 2011 01:41:09 +0000 (18:41 -0700)]
Merge "Update changes.txt for ADT 11"

(cherry picked from commit 3dcfd76ce0f20f602f43ed0061a5ef99fe4c50d3)

Change-Id: I7945fae86ad7ff95f1bae3166e7e1bc32bfdc32f

13 years agoMerge "Add code completion support for drawables, animations and colors"
Tor Norbye [Fri, 22 Apr 2011 04:25:15 +0000 (21:25 -0700)]
Merge "Add code completion support for drawables, animations and colors"

This changeset adds in descriptor metadata and XML editors for:
- Drawables (res/drawable/)
- Animations (res/anim/)
- Animators (res/animator/)
- Colors (res/color)

These types have also been added to the New XML File wizard.

There is some specialized completion support for animators:
- Completing on the propertyName property of <objectAnimator> will
  offer the various integer and float properties in views
- Completion for the interpolator property shows the framework
  interpolators immediately and on top (instead of having to complete
  the individual resource paths @android: and anim/ first

There is also a new quickfix and marker resolution for the AAPT error
which complains about an unbound prefix. This will insert a
xmlns:android="http://schemas.android.com/apk/res/android" attribute
declaration on the root element.

This CL also includes a fix to make the New XML File Wizard preselect
the current project in more scenarios.

NOTE: This changeset adds new XML editors for these resource types.
It does not attempt to update previous editor bindings for files of
the given type, so to test this you may need to use "Open With" in the
package explorer to pick the right file type.

A subsequent CL will try to migrate settings over to these editors,
but that work will tie into another effort: merging all these
different editors into a single editor class that does its own content
type switching and different viewparts for the other tabs.

(cherry picked from commit aaa917c9c5e6f974ca20b94adfd53d1bf01bb54e)

Change-Id: Iddc2405c4802d43126d9b2172f86869de80bef10

13 years agoMerge "Misc fixes"
Tor Norbye [Mon, 2 May 2011 20:40:02 +0000 (13:40 -0700)]
Merge "Misc fixes"

This changeset fixes a couple of misc problems I ran into:

(1) Save the current file when double clicking on an included view.
    When double clicking on an included view, the included view is
    opened in a "Show Included" context where the including file is
    surrounding the include. This will read the surrounding file from
    disk, and if we don't save the file when opening the file then
    it's possible to see a stale view (best case) or it won't work at
    all if the include tag itself isn't in the saved version of the
    file.

(2) Fix a bug in the "Select Same Type" context menu action where the
    list was cleared before reading out the item to be selected.

(3) Filter out a few more properties from the Extract Style
    refactoring dialog, and include margin attributes

(cherry picked from commit 2047b3b061e179faf6d613540a34cc7e6d492176)

Change-Id: I3c1c9d3094b7488ddf45abe6df4d686949eb8fd0

13 years agoMerge "Improve custom view search and filtering"
Tor Norbye [Sat, 30 Apr 2011 00:30:01 +0000 (17:30 -0700)]
Merge "Improve custom view search and filtering"

This change improves the code which identifies custom views in the
project.

It will now filter out a number of "false" matches:
- Classes that were only defined in a javadoc (these are included in
  Eclipse type hierarchy search results)
- Anonymous classes
- Classes that extend View, but do not define one of the 3 base View
  constructors:
    View(Context context)
    View(Context context, AttributeSet attrs)
    View(Context context, AttributeSet attrs, int defStyle)
  We can only instantiate custom views with one or more of these
  constructor signatures at designtime.

It also fixes two additional bugs:

- It changes the search flags passed to the search engine which makes
  it now find custom views that are static innerclasses.
- It fixes a bug in handling view descriptors which made the custom
  view palette not work at all in some projects (in some case the
  descriptor would be null, which caused an NPE which caused the whole
  palette initialization to bail.) This is the bug which made me dig
  through the custom view code and discover the above problems too.

(cherry picked from commit 916b78d9e78cb446d72de6cba30f2f395728f612)

Change-Id: I5a80e86dccb8b7fd339919e79e7ed59cd6357819

13 years agoreconcile tools_r7 into master - no actual change
The Android Open Source Project [Fri, 22 Apr 2011 01:37:45 +0000 (18:37 -0700)]
reconcile tools_r7 into master - no actual change

Change-Id: Ie78147bad738f0c05d9c0869fa18c4a419afaef8

13 years agoreconcile tools_r10 into master - no actual change
The Android Open Source Project [Fri, 22 Apr 2011 01:30:08 +0000 (18:30 -0700)]
reconcile tools_r10 into master - no actual change

Change-Id: I96548afd392c79ef1b0decafdaa5b03703209120

13 years agoMerge "When possible use File.setExecutable instead of doing an exec of chmod."
Xavier Ducrohet [Thu, 21 Apr 2011 23:37:45 +0000 (16:37 -0700)]
Merge "When possible use File.setExecutable instead of doing an exec of chmod."

13 years agoWhen possible use File.setExecutable instead of doing an exec of chmod.
Xavier Ducrohet [Thu, 21 Apr 2011 23:17:12 +0000 (16:17 -0700)]
When possible use File.setExecutable instead of doing an exec of chmod.

Change-Id: I2b2f79bb07e277a1f2caa62b4100cbd8f7e8328d

13 years agoMerge "When unarchiving install, files that need +x don't need +w too."
Xavier Ducrohet [Thu, 21 Apr 2011 18:41:10 +0000 (11:41 -0700)]
Merge "When unarchiving install, files that need +x don't need +w too."

13 years agoWhen unarchiving install, files that need +x don't need +w too.
Xavier Ducrohet [Thu, 21 Apr 2011 17:54:50 +0000 (10:54 -0700)]
When unarchiving install, files that need +x don't need +w too.

Change-Id: I860c28fa979a1d8673abd9690014b8b28c6e8d7e

13 years agoMerge "Enforce at most one child on ScrollViews, and add LinearLayouts"
Tor Norbye [Wed, 20 Apr 2011 23:53:47 +0000 (16:53 -0700)]
Merge "Enforce at most one child on ScrollViews, and add LinearLayouts"

13 years agoEnforce at most one child on ScrollViews, and add LinearLayouts
Tor Norbye [Fri, 1 Apr 2011 01:16:58 +0000 (18:16 -0700)]
Enforce at most one child on ScrollViews, and add LinearLayouts

This changeset fixes issue

15899: Scroll view can only have one child and editor should enforce
       this.

First, it modifies the view rules for ScrollView and HorizontalView to
refuse to add children to the view if there is already a child
there. It also updates the drawing code to not offer drop previews
other than the target highlighting rectangle.

Second, it modifies the New XML File wizard to insert a vertical
LinearLayout as the new child when a ScrollView or
HorizontalScrollView is created. (This was already done by the view
rules when the scroll views were dragged in from the palette.)

Change-Id: Ide825cbf28b46177983d6c5f2ea8c2848147c711

13 years agoMerge "Custom listview layouts"
Tor Norbye [Wed, 20 Apr 2011 23:50:01 +0000 (16:50 -0700)]
Merge "Custom listview layouts"

13 years agoCustom listview layouts
Tor Norbye [Tue, 12 Apr 2011 06:05:47 +0000 (23:05 -0700)]
Custom listview layouts

This changeset adds support for user-configured layouts in ListViews
and ExpandableListViews.

There is a new "Preview List Content" pullright menu when you right
click on a ListView in the layout canvas. The menu contains links to
configure
- the layout to use for list view items
- the layout to use as a header
- the layout to use as a footer
- as well as a number of pre-configured framework layouts for common
  arrangements like 2-item list, 1-item list, checked list, etc.

The selected layout is persisted as an inline comment in the layout
XML. (Current bug: When you drag elements around in the layout,
comment nodes are not preserved, meaning you will lose your list view
render type as well.)

This changeset also adds "Clear" to the resource chooser, which makes
it possible to clear a previously set value (until this, choosing
nothing would simply abort the selection.) This makes it possible to
remove a chosen header/footer.

Change-Id: I611b00f627c5773f3fe2443a6e16c29388687b36

13 years agoMerge "Move getParser(name) into IProjectCallback."
Xavier Ducrohet [Wed, 20 Apr 2011 21:45:12 +0000 (14:45 -0700)]
Merge "Move getParser(name) into IProjectCallback."

13 years agoMove getParser(name) into IProjectCallback.
Xavier Ducrohet [Mon, 18 Apr 2011 23:16:07 +0000 (16:16 -0700)]
Move getParser(name) into IProjectCallback.

Change-Id: I316f03a9903e90eac0cb8059469c1de5b679dac5

13 years agoMerge "Fix menu editor such that it works for empty files"
Tor Norbye [Wed, 20 Apr 2011 19:40:37 +0000 (12:40 -0700)]
Merge "Fix menu editor such that it works for empty files"

13 years agoFix menu editor such that it works for empty files
Tor Norbye [Wed, 20 Apr 2011 16:48:15 +0000 (09:48 -0700)]
Fix menu editor such that it works for empty files

Some users have reported the IDE hanging when they create menu
resource files.  This happens if they create a "plain" file and name
it XML, rather than using the "New Android XML File" or "New XML File"
templates.  The reason this happens is that the initialization code in
the MenuEditor ends up with unbounded recursion where the
initialization code triggers itself.

Change-Id: Icfbc295bbf5cecac216fdff5144cbdb62211da6a

13 years agoMerge "Fix duplicate dependencies reported by SDK installer."
Raphael Moll [Wed, 20 Apr 2011 01:31:18 +0000 (18:31 -0700)]
Merge "Fix duplicate dependencies reported by SDK installer."

13 years agoFix duplicate dependencies reported by SDK installer.
Raphael Moll [Tue, 19 Apr 2011 22:55:25 +0000 (15:55 -0700)]
Fix duplicate dependencies reported by SDK installer.

The issue was simply that when finding dependencies
we have several rules that overlap and we just need
to take the union of what we find. For example an
add-on needs to comply with both the IPlatformDependency
and the IExactApiLevelDependency, which is why it was
erroneously listed twice.

SDK Bug: http://code.google.com/p/android/issues/detail?id=16239

Change-Id: Idb0895a0d2aa063d0a3a7f5d6a2c9ddd6959e0f6

13 years agoMerge "Make sure 'gen' folder is never derived."
Xavier Ducrohet [Tue, 19 Apr 2011 19:36:52 +0000 (12:36 -0700)]
Merge "Make sure 'gen' folder is never derived."

13 years agoMake sure 'gen' folder is never derived.
Xavier Ducrohet [Tue, 19 Apr 2011 18:56:11 +0000 (11:56 -0700)]
Make sure 'gen' folder is never derived.

That would delete it when cleaning the project which is not
good since it takes a while to refresh and to recreate it
through the ResourceManagerBuilder.

Change-Id: I4c050bdc37b8aa78abf7463baf8d19115b032fb2

13 years agoMerge "Cache resource resolver and manifest info"
Tor Norbye [Mon, 18 Apr 2011 22:01:58 +0000 (15:01 -0700)]
Merge "Cache resource resolver and manifest info"

13 years agoCache resource resolver and manifest info
Tor Norbye [Fri, 15 Apr 2011 21:28:27 +0000 (14:28 -0700)]
Cache resource resolver and manifest info

This changeset adds caching of the ResourceResolver in the layout
editor such that it can be reused for successive rendering requests as
long as the configuration does not change.

It also adds caching of the manifest icon and label; these are
invalidated whenever the manifest file is updated and saved.

Change-Id: Idbf77fd96fa60a4ac24e06bbecae882829a8b812

13 years agoMerge "Suggest application and activity name in New Project wizard"
Tor Norbye [Mon, 18 Apr 2011 21:47:32 +0000 (14:47 -0700)]
Merge "Suggest application and activity name in New Project wizard"

13 years agoMerge "SDK Manager: fix extra package update detection." into tools_r10
Raphael Moll [Mon, 18 Apr 2011 21:26:26 +0000 (14:26 -0700)]
Merge "SDK Manager: fix extra package update detection." into tools_r10

13 years agoMerge "Add getViewBaseline to the LayoutLibrary class."
Xavier Ducrohet [Mon, 18 Apr 2011 21:04:34 +0000 (14:04 -0700)]
Merge "Add getViewBaseline to the LayoutLibrary class."

13 years agoSuggest application and activity name in New Project wizard
Tor Norbye [Mon, 18 Apr 2011 16:55:52 +0000 (09:55 -0700)]
Suggest application and activity name in New Project wizard

This changeset tweaks the "New Android Project" wizard such that the
Application name and the Activity name fields are automatically
populated with some reasonable defaults.

This is done by syncing the project name while it is being edited to
the application name and to the activity name (plus "Activity").
Also, if the application name is manually edited it will also be
synced to the activity name.

Note that as soon as a text field is manually edited, it will no
longer be updated when the project name is edited.

Furthermore, selecting a target in the SDK target chooser will set the
API level of the chosen target as the minimum SDK in the min SDK value
field.

Change-Id: I2391eda334c6c422cce707971d340124742cbb52

13 years agoAdd getViewBaseline to the LayoutLibrary class.
Xavier Ducrohet [Mon, 18 Apr 2011 20:14:47 +0000 (13:14 -0700)]
Add getViewBaseline to the LayoutLibrary class.

Change-Id: I29caadc8cb31c4a3aab0863a4fec16534b9bc900

13 years agoSDK Manager: fix extra package update detection.
Raphael Moll [Sat, 19 Feb 2011 01:02:29 +0000 (17:02 -0800)]
SDK Manager: fix extra package update detection.

(cherry picked from commit fcb38f8f3ee58bbac65340c4878f8ab66431ddb6)

Change-Id: I44eeeb06dd406beb8ab53288da7b1eca3f74edad

13 years agoMerge "Change logging API used by ITaskMonitor."
Raphael Moll [Sat, 16 Apr 2011 01:03:23 +0000 (18:03 -0700)]
Merge "Change logging API used by ITaskMonitor."

13 years agoChange logging API used by ITaskMonitor.
Raphael Moll [Fri, 15 Apr 2011 23:34:28 +0000 (16:34 -0700)]
Change logging API used by ITaskMonitor.

ITaskMonitor is used by the SDK Manager to display
status information and progress bar for asynchronous
tasks (e.g. fetching sources, downloading and installing
packages).

This changes the way text is logged by the monitor.
There used to be one setResult() method which historically
was designed to report 1 final message (e.g. "Install
completed") but then this was actually used to add
ongoing logging. So in this change the monitor has
3 replacement methods: log, logError and logVerbose,
which gives us more flexibility in controlling what
gets displayed.

As a side effect, this fixes unit-tests from SdkLib
that relied on previous output that changed in a
recent CL.

Change-Id: I0fa41d59db8f5eea478b88208695ef07e246ba30

13 years agoMerge "Ensure that canvas zoom is non-zero"
Tor Norbye [Fri, 15 Apr 2011 22:43:03 +0000 (15:43 -0700)]
Merge "Ensure that canvas zoom is non-zero"

13 years agoMerge "Make Extract Include search in all files"
Tor Norbye [Fri, 15 Apr 2011 22:42:54 +0000 (15:42 -0700)]
Merge "Make Extract Include search in all files"

13 years agoMerge "Use swtmenubar in SDK Manager 2."
Raphael Moll [Fri, 15 Apr 2011 21:42:17 +0000 (14:42 -0700)]
Merge "Use swtmenubar in SDK Manager 2."

13 years agoMerge "swtmenubar library for the SDK."
Raphael Moll [Fri, 15 Apr 2011 21:41:51 +0000 (14:41 -0700)]
Merge "swtmenubar library for the SDK."

13 years agoEnsure that canvas zoom is non-zero
Tor Norbye [Fri, 15 Apr 2011 20:19:51 +0000 (13:19 -0700)]
Ensure that canvas zoom is non-zero

Ensure that the canvas zoom is always greater than zero. This is a
safeguard against a scenario where the "compute best fit" code runs
too early where the SWT window bounds are 0 and the wrong value gets
computed.

Change-Id: I1519270f42c5a848fa0756f2f40cf6af69bb1865

13 years agoMerge "SDK Manager command line install improvements."
Raphael Moll [Fri, 15 Apr 2011 20:06:41 +0000 (13:06 -0700)]
Merge "SDK Manager command line install improvements."

13 years agoMake Extract Include search in all files
Tor Norbye [Fri, 15 Apr 2011 19:32:01 +0000 (12:32 -0700)]
Make Extract Include search in all files

This changeset makes the "Extract Include" refactoring search not just
the configuration-variations of the layout it was invoked on, but it
will look for semantically identical XML fragments in all layouts in
the same project, and will offer to replace each one of them with the
new include.

Change-Id: I03abf9e285d416e91b45eec7e01f518ea8d017d9

13 years agoUse swtmenubar in SDK Manager 2.
Raphael Moll [Thu, 14 Apr 2011 06:55:32 +0000 (23:55 -0700)]
Use swtmenubar in SDK Manager 2.

This is experimental and not completely hooked up.

Change-Id: I4f4892be64f5592d909496e3c9e69c76002397d0

13 years agoswtmenubar library for the SDK.
Raphael Moll [Thu, 14 Apr 2011 06:51:39 +0000 (23:51 -0700)]
swtmenubar library for the SDK.

This little EPL library provides a way for the SDK apps to integrate
with the Mac menu bar -- that is correctly hook into the About and
Preferences menu items.

On other platforms (Windows, Linux), corresponding items are
added to the provided menu.

The library provides both a Carbon and a Cocoa implementation.
However the Cocoa implemented is currently commented out since
we only link with a Carbon-aware version of SWT.jar.

Added a README that explain how to use this.

Change-Id: I4b8457f0269946df056b5dd597c7263da1c4e784

13 years agoMerge "Throw SyncException if local file is not found instead of FileNotFoundException."
Brett Chabot [Fri, 15 Apr 2011 17:25:27 +0000 (10:25 -0700)]
Merge "Throw SyncException if local file is not found instead of FileNotFoundException."

13 years agoThrow SyncException if local file is not found instead of FileNotFoundException.
Brett Chabot [Fri, 15 Apr 2011 01:23:31 +0000 (18:23 -0700)]
Throw SyncException if local file is not found instead of FileNotFoundException.

Bug 16159

Change-Id: I13903487786b61398553a69ad09220defa78d588

13 years agoMerge "Add Baseline utility method to layoutlib's bridge."
Xavier Ducrohet [Fri, 15 Apr 2011 01:21:14 +0000 (18:21 -0700)]
Merge "Add Baseline utility method to layoutlib's bridge."

13 years agoAdd Baseline utility method to layoutlib's bridge.
Xavier Ducrohet [Fri, 15 Apr 2011 00:39:02 +0000 (17:39 -0700)]
Add Baseline utility method to layoutlib's bridge.

Change-Id: I580dad3b15de028b299a0c75e206bb31b5d6d062

13 years agoMerge "Separate MonkeyRunner core logic"
Bill Napier [Thu, 14 Apr 2011 16:56:36 +0000 (09:56 -0700)]
Merge "Separate MonkeyRunner core logic"

13 years agoMerge "Revert 183675b74e5a58211e5d9a90a9ca86546ed3e245"
David 'Digit' Turner [Thu, 14 Apr 2011 14:19:37 +0000 (07:19 -0700)]
Merge "Revert 183675b74e5a58211e5d9a90a9ca86546ed3e245"

13 years agoRevert 183675b74e5a58211e5d9a90a9ca86546ed3e245
David 'Digit' Turner [Thu, 14 Apr 2011 12:13:44 +0000 (14:13 +0200)]
Revert 183675b74e5a58211e5d9a90a9ca86546ed3e245

Unfortunately, we need to keep the duplicate libraries here to prevent
breaking a few internal branches for now.

   Remove obsolete emulator modules

   The corresponding modules have all been moved to development/tools/emulator/system/
   already. Note that we use a global variable Make trick to prevent the same module
   from being built twice, so removing these files doesn't break the builds.

   Another patch should remove the global variable Make trick from
   development/tools/emulator/system after this patch.

Change-Id: I97332216b311608de61919cb75f4b760b249c0d9

13 years agoSeparate MonkeyRunner core logic
Adrian Zakrzewski [Mon, 11 Apr 2011 11:10:53 +0000 (13:10 +0200)]
Separate MonkeyRunner core logic

    Refactored the MonkeyRunner code to separate core logic
    from the jython wrapper. The core logic is now usable
    directly from Java w/o the pollution from jython.
    The existing MonkeyRunner classes are now just a thin
    and dumb wrapper atop the core.

Change-Id: I6ef18ea92e0e9284c1fde949b4efb0e2e7170e57

13 years agoMerge "Bundle ninepatch tests resources in jar."
Brett Chabot [Wed, 13 Apr 2011 22:46:21 +0000 (15:46 -0700)]
Merge "Bundle ninepatch tests resources in jar."

13 years agoMerge "Update monkeyrunner script to find SWT."
Bill Napier [Wed, 13 Apr 2011 15:38:53 +0000 (08:38 -0700)]
Merge "Update monkeyrunner script to find SWT."

13 years agoUpdate monkeyrunner script to find SWT.
Terence Haddock [Mon, 11 Apr 2011 09:12:11 +0000 (11:12 +0200)]
Update monkeyrunner script to find SWT.

Change-Id: I75fca4620dc70ffa71d2255aff989e655be8bc16

13 years agoBundle ninepatch tests resources in jar.
Brett Chabot [Wed, 13 Apr 2011 02:41:25 +0000 (19:41 -0700)]
Bundle ninepatch tests resources in jar.

Change-Id: Ie3efc7f35908b77e6dd9fcffcea3a5d24a8fd45b

13 years agoMerge "Highlight current drop target in the outline"
Tor Norbye [Wed, 13 Apr 2011 01:13:31 +0000 (18:13 -0700)]
Merge "Highlight current drop target in the outline"