OSDN Git Service

android-x86/sdk.git
13 years agomerge from tools_r9
The Android Open Source Project [Wed, 12 Jan 2011 16:53:45 +0000 (08:53 -0800)]
merge from tools_r9

Change-Id: If87bb7e1e0adfe107c1a26132d63f7d779a06a3b

13 years agoMerge "Choose a good locale when opening a file for the first time." into tools_r9
Xavier Ducrohet [Wed, 12 Jan 2011 03:14:38 +0000 (19:14 -0800)]
Merge "Choose a good locale when opening a file for the first time." into tools_r9

13 years agoChoose a good locale when opening a file for the first time.
Xavier Ducrohet [Wed, 12 Jan 2011 02:57:05 +0000 (18:57 -0800)]
Choose a good locale when opening a file for the first time.

Because the selection of the full config to use for display
is complicated (due to having to find something that matches
the configuration of the edited file), this is a bit more
complex than simply changing the select in updateLocales().

In fact the selection made there when there is no stored config
is pointless. Instead it's decided later by findAndSetCompatibleConfig
which find the proper combination of device and locale*

* this is actually broken since we added the nightmode and dock mode.
We need to include those in the list of config we try out. I'll fix
this in a later patch.

Change-Id: I83599dc7f0d1a921f9568b6de5c065ca1e82e103

13 years agoMerge "Reorder animation submenu" into tools_r9
Tor Norbye [Wed, 12 Jan 2011 02:19:09 +0000 (18:19 -0800)]
Merge "Reorder animation submenu" into tools_r9

13 years agoReorder animation submenu
Tor Norbye [Wed, 12 Jan 2011 02:05:57 +0000 (18:05 -0800)]
Reorder animation submenu

List local animations first, followed by the Create button, followed
by the frameworks animation submenu. Also drop the recent-item.

Change-Id: I238ab85f319383c138ce8e63fd19c7f97a23ea5e

13 years agoMerge "Don't reopen a layout if it's already opened." into tools_r9
Xavier Ducrohet [Wed, 12 Jan 2011 01:23:30 +0000 (17:23 -0800)]
Merge "Don't reopen a layout if it's already opened." into tools_r9

13 years agoMerge "Use res/animator rather than res/anim for the Play Animation code" into tools_r9
Tor Norbye [Wed, 12 Jan 2011 01:21:10 +0000 (17:21 -0800)]
Merge "Use res/animator rather than res/anim for the Play Animation code" into tools_r9

13 years agoDon't reopen a layout if it's already opened.
Xavier Ducrohet [Wed, 12 Jan 2011 01:16:56 +0000 (17:16 -0800)]
Don't reopen a layout if it's already opened.

This is for the case where a layout is opened
and Eclipse tell its editor to re-open it because it was
double clicked again in the package explorer due to the
MatchingStrategy having returned true.

Change-Id: I404494b990215bcdff163a382ecb411e2efb9b51
Misc: reorder configs for the WXGA device config.

13 years agoUse res/animator rather than res/anim for the Play Animation code
Tor Norbye [Tue, 11 Jan 2011 22:50:59 +0000 (14:50 -0800)]
Use res/animator rather than res/anim for the Play Animation code

We should be using ResourceType.ANIMATOR rather than ResourceType.ANIM
for the designtime playable animations. Simple tweak to make the
"Create Animation" dialog able to create files into res/animator/,
though this needs to be improved (with proper animator/interpolator
root elements etc).

Change-Id: I70a504fbd946da3ff161f9cf953b878a41886fee

13 years agoMerge "This is tools r9 in tools_r9. DO NOT MERGE." into tools_r9
Xavier Ducrohet [Tue, 11 Jan 2011 22:39:28 +0000 (14:39 -0800)]
Merge "This is tools r9 in tools_r9. DO NOT MERGE." into tools_r9

13 years agoThis is tools r9 in tools_r9. DO NOT MERGE.
Xavier Ducrohet [Tue, 11 Jan 2011 22:37:48 +0000 (14:37 -0800)]
This is tools r9 in tools_r9. DO NOT MERGE.

Change-Id: I4d6d8cd74abd2cb3b9087ac4f30b761d803e15e3

13 years agoMerge "Wrap error text" into tools_r9
Tor Norbye [Tue, 11 Jan 2011 22:37:04 +0000 (14:37 -0800)]
Merge "Wrap error text" into tools_r9

13 years agoMerge "Modified traceview .classpath."
Xavier Ducrohet [Tue, 11 Jan 2011 22:36:09 +0000 (14:36 -0800)]
Merge "Modified traceview .classpath."

13 years agoWrap error text
Tor Norbye [Tue, 11 Jan 2011 21:36:23 +0000 (13:36 -0800)]
Wrap error text

Wide lines in the error label for rendering errors were not
wrapped. Annoying when you're trying to copy & paste a path out of it
to examine the file in question, etc.

Change-Id: I29b5a8cb25e26dbf8e5a5314bb82c400352e6760

13 years agoMerge "Reformat changes.txt" into tools_r9
Tor Norbye [Tue, 11 Jan 2011 21:32:49 +0000 (13:32 -0800)]
Merge "Reformat changes.txt" into tools_r9

13 years agoMerge "Remove error(tag, throwable) from LayoutLog." into tools_r9
Xavier Ducrohet [Tue, 11 Jan 2011 21:31:57 +0000 (13:31 -0800)]
Merge "Remove error(tag, throwable) from LayoutLog." into tools_r9

13 years agoReformat changes.txt
Tor Norbye [Tue, 11 Jan 2011 03:45:35 +0000 (19:45 -0800)]
Reformat changes.txt

Make the changes.txt wrap such that it's easier to read long lines.

Change-Id: I037751470aab172fc486530bad645beb2ed487a2

13 years agoMerge "Additions to changes.txt" into tools_r9
Tor Norbye [Tue, 11 Jan 2011 21:28:57 +0000 (13:28 -0800)]
Merge "Additions to changes.txt" into tools_r9

13 years agoAdditions to changes.txt
Tor Norbye [Tue, 11 Jan 2011 03:20:45 +0000 (19:20 -0800)]
Additions to changes.txt

Change-Id: Ib94abd4c1006a88e3e3db6b9e7e0e528ffb52316

13 years agoRemove error(tag, throwable) from LayoutLog.
Xavier Ducrohet [Tue, 11 Jan 2011 21:12:23 +0000 (13:12 -0800)]
Remove error(tag, throwable) from LayoutLog.

We should never only log an exception with no associated
message.
Also, I've found several case in the layoutlib where there
is a message in place of the tag.

This new API makes it more clear that there's both a tag and a message
since both are required for error()

Change-Id: I6d5f45c07b1cb8df96311d930170526bb729fae6

13 years agoMerge "Reformat changes.txt"
Tor Norbye [Tue, 11 Jan 2011 21:08:30 +0000 (13:08 -0800)]
Merge "Reformat changes.txt"

13 years agoMerge "Additions to changes.txt"
Tor Norbye [Tue, 11 Jan 2011 21:07:45 +0000 (13:07 -0800)]
Merge "Additions to changes.txt"

13 years agoMerge "Changes to widget text and id format" into tools_r9
Tor Norbye [Tue, 11 Jan 2011 21:03:34 +0000 (13:03 -0800)]
Merge "Changes to widget text and id format" into tools_r9

13 years agoChanges to widget text and id format
Tor Norbye [Tue, 11 Jan 2011 01:27:49 +0000 (17:27 -0800)]
Changes to widget text and id format

This changeset changes the default text and id attributes of newly
dropped widgets in the following ways:

1. Use the node class name rather than the id as the initial text.  In
   other words, the default label for a button is "Button" rather than
   "@+id/Button01".  This is a more common convention in other GUI
   builders, and you typically don't want the actual label to be
   "@+id"-something, you want it to be "@string"-something, so the @id
   prefix is slightly confusing for beginners.

2. The id uses method name capitalization rather than class name
   capitalization, e.g. "checkBox" rather than "CheckBox". This seems
   to be the convention I see in handwritten layouts, which makes
   sense given that the reference will be compiled to and referenced
   as a Java field.

3. In the case of conflicts, don't use a leading 0; in other words,
   rather than button01, button02, button03 we have button1, button2,
   button3. It's unlikely that the user will have ten or more unnamed
   widgets (and if they do the leading zero still isn't needed.)  The
   code which looks for name conflicts now also performs case
   insensitive comparisons.

Change-Id: Ie7f2c5dd8e9852acec2c2e154ee20142b8ece9a6

13 years agoMerge "Make the error text participate in select all and copy" into tools_r9
Tor Norbye [Tue, 11 Jan 2011 20:47:48 +0000 (12:47 -0800)]
Merge "Make the error text participate in select all and copy" into tools_r9

13 years agoMake the error text participate in select all and copy
Tor Norbye [Mon, 10 Jan 2011 14:56:18 +0000 (06:56 -0800)]
Make the error text participate in select all and copy

When there are rendering errors, the error messages are listed in a
StyledText widget which opens up at the bottom of the layout editor.

This changeset makes it possible to copy & paste the error message. It
does this by:

- Making the global Select All action operate on the error label when
  the error label has focus

- Make the global Copy action operate on the error label if the error
  label has selected text (which could have been made selected either
  by the Select All action above, or by a manual mouse selection)

Change-Id: Ia7f267737a0d43a54dce8cf6b5f5802aef038881

13 years agoMerge "Merge into f9297748 r9: Handle Animator and Interpolator resources." into...
Xavier Ducrohet [Tue, 11 Jan 2011 18:09:47 +0000 (10:09 -0800)]
Merge "Merge into f9297748 r9: Handle Animator and Interpolator resources." into tools_r9

13 years agoMerge into f9297748 r9: Handle Animator and Interpolator resources.
Xavier Ducrohet [Tue, 11 Jan 2011 05:45:45 +0000 (21:45 -0800)]
Merge into f9297748 r9: Handle Animator and Interpolator resources.

Change-Id: I85242fb436e7de99887bd60b320a16a051bddc51

13 years agoMerge "Handle Animator and Interpolator resources."
Xavier Ducrohet [Tue, 11 Jan 2011 18:07:27 +0000 (10:07 -0800)]
Merge "Handle Animator and Interpolator resources."

13 years agoHandle Animator and Interpolator resources.
Xavier Ducrohet [Tue, 11 Jan 2011 05:45:45 +0000 (21:45 -0800)]
Handle Animator and Interpolator resources.

Change-Id: I2feb8c02cef56a6b444f354f457e2470c7b1ed26

13 years agoReformat changes.txt
Tor Norbye [Tue, 11 Jan 2011 03:45:35 +0000 (19:45 -0800)]
Reformat changes.txt

Make the changes.txt wrap such that it's easier to read long lines.

Change-Id: Idc9ce68987d41c53a4e87d2fdc1c23573b0ebc20

13 years agoAdditions to changes.txt
Tor Norbye [Tue, 11 Jan 2011 03:20:45 +0000 (19:20 -0800)]
Additions to changes.txt

Change-Id: I5bc76938bffe654f50e35a7b3c7e2aaf8f97f2f8

13 years agoMerge "Use ResourceChooser for Strings"
Tor Norbye [Tue, 11 Jan 2011 03:09:53 +0000 (19:09 -0800)]
Merge "Use ResourceChooser for Strings"

13 years agoUse ResourceChooser for Strings
Tor Norbye [Mon, 10 Jan 2011 23:21:26 +0000 (15:21 -0800)]
Use ResourceChooser for Strings

When editing the text property (via "Edit Text..."), show the
ResourceChooser (assigned to ResourceType.STRING) instead of the more
generic ReferenceChooser.

Some minor tweaks to incorporate feedback on an earlier CL.

Change-Id: I935456075910acd59cedbfeb4cb43680038e412d

13 years agoreconcile standalone tools_r9 into master
Jean-Baptiste Queru [Mon, 10 Jan 2011 22:54:11 +0000 (14:54 -0800)]
reconcile standalone tools_r9 into master

Change-Id: I822ae7661ec1a4f2995176bf592c7bbbf83e57bb

13 years agoMerge "Update changes.txt."
Raphael Moll [Mon, 10 Jan 2011 22:39:32 +0000 (14:39 -0800)]
Merge "Update changes.txt."

13 years agoMerge "Add "Play Animation" menu"
Tor Norbye [Mon, 10 Jan 2011 22:22:20 +0000 (14:22 -0800)]
Merge "Add "Play Animation" menu"

13 years agoMerge "Disallow Java keywords in resource names"
Tor Norbye [Mon, 10 Jan 2011 22:21:21 +0000 (14:21 -0800)]
Merge "Disallow Java keywords in resource names"

13 years agoMerge "Use Reference Chooser rather than String dialog for "Edit Text""
Tor Norbye [Mon, 10 Jan 2011 22:21:05 +0000 (14:21 -0800)]
Merge "Use Reference Chooser rather than String dialog for "Edit Text""

13 years agoMerge "Allow blank strings for the text property input"
Tor Norbye [Mon, 10 Jan 2011 22:20:47 +0000 (14:20 -0800)]
Merge "Allow blank strings for the text property input"

13 years agoUpdate changes.txt.
Raphael Moll [Sat, 8 Jan 2011 06:48:26 +0000 (22:48 -0800)]
Update changes.txt.

Change-Id: Id616f7afd275a218324959ff9d52d1b4529f7cd1

13 years agoDisallow Java keywords in resource names
Tor Norbye [Mon, 10 Jan 2011 19:49:21 +0000 (11:49 -0800)]
Disallow Java keywords in resource names

If you create a resource file that is a Java keyword, Bad Stuff
happens - it doesn't even make it into the R file.

This modifiers the resource name validator (used among other places in
the New XML File wizard) to disallow these names along with a suitable
error message.

Change-Id: Ic807bb9194d316f227bf3435509632374113563d

13 years agoAdd "Play Animation" menu
Tor Norbye [Mon, 10 Jan 2011 19:08:52 +0000 (11:08 -0800)]
Add "Play Animation" menu

Adds a new dynamically populated context menu named "Play Animation", which
contains 4 sections:

- First, the most recently played animation name. This is initially
  empty, but once you've played an animation, the most recently one is
  listed there.

- "Create...". This is a shortcut which opens the "New Android XML
  File" wizard, pre-configured to point at the current project and
  with the Animation category selected.

- "Android Builtin >". This is a submenu (also lazily populated) which
  lists all the builtin Android framework animations alphabetically.

- The animations in the current project, if any, listed
  alphabetically.

Selecting any of the project or framework animation names will cause
the animation to be played once. During the animation, selection and
hover overlays are temporarily hidden.

This is just a start; we should play/rewind/stop buttons, maybe a loop
toggle button, etc somewhere on the screen when you've selected an
aniation. We should also try to filter out animations (especially
framework ones) that have no effect on the current selection.
Finally, error messages need to be handled better since we are reusing
the render session from the editor.

Change-Id: If113b02d458972b5cc2cb253dd9e6c312b8302a9

13 years agoMerge "More fine grained layoutlib Capability for animation support."
Xavier Ducrohet [Mon, 10 Jan 2011 19:13:30 +0000 (11:13 -0800)]
Merge "More fine grained layoutlib Capability for animation support."

13 years agoMerge "Update changes.txt. Do not merge." into tools_r9
Raphael Moll [Mon, 10 Jan 2011 18:52:22 +0000 (10:52 -0800)]
Merge "Update changes.txt. Do not merge." into tools_r9

13 years agoMerge "Merge: Cleanup ArrayList usage in SDK Manager." into tools_r9
Raphael Moll [Mon, 10 Jan 2011 18:52:08 +0000 (10:52 -0800)]
Merge "Merge: Cleanup ArrayList usage in SDK Manager." into tools_r9

13 years agoMerge "Merge: SdkManager: suggest which platform to install to fix a broken addon...
Raphael Moll [Mon, 10 Jan 2011 18:52:01 +0000 (10:52 -0800)]
Merge "Merge: SdkManager: suggest which platform to install to fix a broken addon." into tools_r9

13 years agoMerge "Merge: Support broken addons in SDK Manager UI." into tools_r9
Raphael Moll [Mon, 10 Jan 2011 18:51:48 +0000 (10:51 -0800)]
Merge "Merge: Support broken addons in SDK Manager UI." into tools_r9

13 years agoMerge "Merge: SDK Manager: specify proxy on no-UI command-line." into tools_r9
Raphael Moll [Mon, 10 Jan 2011 18:51:40 +0000 (10:51 -0800)]
Merge "Merge: SDK Manager: specify proxy on no-UI command-line." into tools_r9

13 years agoMerge "Merge: Load and apply proxy settings from config file in UpdateNoWindow, allow...
Raphaël Moll [Mon, 10 Jan 2011 18:51:32 +0000 (10:51 -0800)]
Merge "Merge: Load and apply proxy settings from config file in UpdateNoWindow, allowing headless updates to work behind a proxy." into tools_r9

13 years agoMerge "Merge: Set 'https' proxy system properties using the 'http' settings, allowing...
Raphaël Moll [Mon, 10 Jan 2011 18:51:22 +0000 (10:51 -0800)]
Merge "Merge: Set 'https' proxy system properties using the 'http' settings, allowing downloads via an HTTPS proxy to work." into tools_r9

13 years agoMerge "Merge: Minor method rename in SdkManager UI." into tools_r9
Raphael Moll [Mon, 10 Jan 2011 18:51:09 +0000 (10:51 -0800)]
Merge "Merge: Minor method rename in SdkManager UI." into tools_r9

13 years agoMerge "Add Pair<,> to SdkLib.utils" into tools_r9
Raphael Moll [Mon, 10 Jan 2011 18:51:02 +0000 (10:51 -0800)]
Merge "Add Pair<,> to SdkLib.utils" into tools_r9

13 years agoMerge "Merge: SDK Manager: Rework install logic." into tools_r9
Raphael Moll [Mon, 10 Jan 2011 18:50:48 +0000 (10:50 -0800)]
Merge "Merge: SDK Manager: Rework install logic." into tools_r9

13 years agoMerge "Merge: SDK Manager: Split install logic out of the Archive class." into tools_r9
Raphael Moll [Mon, 10 Jan 2011 18:50:36 +0000 (10:50 -0800)]
Merge "Merge: SDK Manager: Split install logic out of the Archive class." into tools_r9

13 years agoUse Reference Chooser rather than String dialog for "Edit Text"
Tor Norbye [Mon, 10 Jan 2011 03:43:23 +0000 (19:43 -0800)]
Use Reference Chooser rather than String dialog for "Edit Text"

Fix 13880: Dialog opened by contextual properties menu item should be
the reference chooser.

Change-Id: I88d994271217c96985a0e18c84efc16a232c2bd4

13 years agoMore fine grained layoutlib Capability for animation support.
Xavier Ducrohet [Sun, 9 Jan 2011 22:21:03 +0000 (14:21 -0800)]
More fine grained layoutlib Capability for animation support.

Make the distinction between playing animation, animating
view insert/delete/move inside the same viewgroup and animating
move across layouts.

Change-Id: Ia9a6e4e53425a66a74ddd39796b04ed8c78d4a5a

13 years agoUpdate changes.txt. Do not merge.
Raphael Moll [Sat, 8 Jan 2011 06:41:28 +0000 (22:41 -0800)]
Update changes.txt. Do not merge.

Change-Id: Ibab7af837652986a5037c745a0093c6a592274f5

13 years agoMerge: Cleanup ArrayList usage in SDK Manager.
Raphael Moll [Fri, 7 Jan 2011 21:48:13 +0000 (13:48 -0800)]
Merge: Cleanup ArrayList usage in SDK Manager.

Change-Id: Id03b96aa420a0aa83771c60880887577fd8c020e

13 years agoMerge: SdkManager: suggest which platform to install to fix a broken addon.
Raphael Moll [Fri, 7 Jan 2011 08:41:14 +0000 (00:41 -0800)]
Merge: SdkManager: suggest which platform to install to fix a broken addon.

The SDK Manager now has the notion of a "broken installed package".
The BrokenPackage can specify that:
- it requires a certain minimal platform to be installed,
and/or:
- it requires a specific exact platform to be installed.

The later constraint is expressed by IExactApiLevelDependency and
allows UpdaterLogic to find which platform would fix an addon which
is missing its base platform.

Change-Id: I0215900f499014038ba9470b5fcff4c60a24c536

13 years agoMerge: Support broken addons in SDK Manager UI.
Raphael Moll [Sun, 2 Jan 2011 21:36:40 +0000 (13:36 -0800)]
Merge: Support broken addons in SDK Manager UI.

Change-Id: I21cbd773a941d5b74676d154c42be959497b2f5f

13 years agoMerge: SDK Manager: specify proxy on no-UI command-line.
Raphael Moll [Thu, 6 Jan 2011 19:12:53 +0000 (11:12 -0800)]
Merge: SDK Manager: specify proxy on no-UI command-line.

This adds 2 flags to specify the http/https proxy host/port on
the command line when using the console-base "no-ui" SDK update.
The command-line proxy values override settings if defined.

Also revamped the argument help display to support larger
command-line long argument sizes and mandate that arguments
can have one of ther short or long argument name optional.

Change-Id: I013a1e5e9aa8e71f2f3e5f807a0363af86092ac1

13 years agoMerge: Load and apply proxy settings from config file in UpdateNoWindow, allowing...
Christopher Orr [Wed, 5 Jan 2011 16:38:15 +0000 (17:38 +0100)]
Merge: Load and apply proxy settings from config file in UpdateNoWindow, allowing headless updates to work behind a proxy.

Change-Id: I9d3973ff1e6f17765098670e0cabe852d1352d1f

13 years agoMerge: Set 'https' proxy system properties using the 'http' settings, allowing downlo...
Christopher Orr [Wed, 5 Jan 2011 16:32:20 +0000 (17:32 +0100)]
Merge: Set 'https' proxy system properties using the 'http' settings, allowing downloads via an HTTPS proxy to work.

Change-Id: Ic2ad4c0b4565c1a7148a7635c3f745b52448b986

13 years agoMerge: Minor method rename in SdkManager UI.
Raphael Moll [Fri, 31 Dec 2010 01:18:08 +0000 (17:18 -0800)]
Merge: Minor method rename in SdkManager UI.

Change-Id: I723a97aaff7f67507007806391b494998d99f058

13 years agoAdd Pair<,> to SdkLib.utils
Raphael Moll [Sat, 8 Jan 2011 06:14:50 +0000 (22:14 -0800)]
Add Pair<,> to SdkLib.utils

Needed by following merges from open_master yet
the original Change I5c37e4b4 depends on ADT files
which aren't in tools_r9 yet.

Change-Id: I6434951a1ef5a0fbf4130685fcd007d3b7a3b5fd

13 years agoMerge: SDK Manager: Rework install logic.
Raphael Moll [Wed, 29 Dec 2010 22:57:38 +0000 (14:57 -0800)]
Merge: SDK Manager: Rework install logic.

This should get rid of the annoying behavior on Windows
that prevent the "folder swap" operation due to the folders
being locked. Cf public issue 4410.

High level summary of the issue and the fix: the old behavior
was to unzip in a temp folder, then rename the old folder to
another temp file and finally rename the new folder at the
desired location. This fails typically when there is a file
indexer (e.g. anti-virus) scanning the new folder so we can't
move that folder.
The new logic is to try to move the old folder first into a
temp folder. If the fail move, we have a lock on the old folder
and ask the user to fix it manually. They probably have a file
opened and it's a legit issue to report. Once that succeeded
we can directly unzip the archive into the final destination
without using a temp unzip location, thus avoiding the common
"indexer in progress" issue.
In case the unzip operation fails, we try to copy (not move) the
old folder back.

Change-Id: I4fd862147cf7e0813eeef77a8332c0ce4f97a836

13 years agoAllow blank strings for the text property input
Tor Norbye [Sat, 8 Jan 2011 05:59:18 +0000 (21:59 -0800)]
Allow blank strings for the text property input

The input-dialog for setting the text property was requiring the
string to be non-empty, or it would reject the input. That's not right
- it should be possible to set the text to blank (which is common for
text fields for example), since blank will clear the attribute.

This code was just cut & pasted from the similar code for inputting
id's where the id -should- be nonempty.

The code was also not handling the case where the user cancels the
dialog for custom string properties; we need a null check.

Change-Id: I31a2ae07b99ebc59d15b76f68c514d97294a736b

13 years agoMerge: SDK Manager: Split install logic out of the Archive class.
Raphael Moll [Wed, 29 Dec 2010 04:12:55 +0000 (20:12 -0800)]
Merge: SDK Manager: Split install logic out of the Archive class.

Change-Id: I75a616dfcb957b915f68679dbe3371d7abf2b3bc

13 years agoMerge "Fix layout device list."
Xavier Ducrohet [Fri, 7 Jan 2011 22:14:56 +0000 (14:14 -0800)]
Merge "Fix layout device list."

13 years agoMerge "Cleanup ArrayList usage in SDK Manager."
Raphael Moll [Fri, 7 Jan 2011 21:57:07 +0000 (13:57 -0800)]
Merge "Cleanup ArrayList usage in SDK Manager."

13 years agoFix layout device list.
Xavier Ducrohet [Fri, 7 Jan 2011 21:49:49 +0000 (13:49 -0800)]
Fix layout device list.

Change-Id: Idb6b0f654cd11225faceeb5b0541703623a0ee83

13 years agoMerge "Remove skins from sdk.git"
Xavier Ducrohet [Fri, 7 Jan 2011 21:48:40 +0000 (13:48 -0800)]
Merge "Remove skins from sdk.git"

13 years agoCleanup ArrayList usage in SDK Manager.
Raphael Moll [Fri, 7 Jan 2011 21:48:13 +0000 (13:48 -0800)]
Cleanup ArrayList usage in SDK Manager.

Change-Id: If8e3adec4a23456f5f31be96aa959048a698d225

13 years agoSdkManager: suggest which platform to install to fix a broken addon.
Raphael Moll [Fri, 7 Jan 2011 08:41:14 +0000 (00:41 -0800)]
SdkManager: suggest which platform to install to fix a broken addon.

The SDK Manager now has the notion of a "broken installed package".
The BrokenPackage can specify that:
- it requires a certain minimal platform to be installed,
and/or:
- it requires a specific exact platform to be installed.

The later constraint is expressed by IExactApiLevelDependency and
allows UpdaterLogic to find which platform would fix an addon which
is missing its base platform.

Change-Id: If429ea39f0ddc19c0cb906bf6766df310de28981

13 years agoMerge "SdkManager: suggest which platform to install to fix a broken addon."
Raphael Moll [Fri, 7 Jan 2011 20:49:23 +0000 (12:49 -0800)]
Merge "SdkManager: suggest which platform to install to fix a broken addon."

13 years agoRemove skins from sdk.git
Xavier Ducrohet [Fri, 7 Jan 2011 19:37:50 +0000 (11:37 -0800)]
Remove skins from sdk.git

They are now in development.git

Change-Id: I9b8ec2c65892cb7635b6be77a7c8929f62d018b8

13 years agoMerge "Fix copyright and clarify silent logger"
Tor Norbye [Fri, 7 Jan 2011 19:37:28 +0000 (11:37 -0800)]
Merge "Fix copyright and clarify silent logger"

13 years agoFix copyright and clarify silent logger
Tor Norbye [Fri, 7 Jan 2011 19:26:57 +0000 (11:26 -0800)]
Fix copyright and clarify silent logger

Fix missing header in previous checkin.

Also remove the silent logger from the render() method, and create the
silent logger in the palette preview drag where it's more obvious why
the rendering is quiet.

Change-Id: I80d2be0c40d00589182988262f1d0f2e64ee4dd4

13 years agoMerge "Update changelog."
Xavier Ducrohet [Fri, 7 Jan 2011 17:48:52 +0000 (09:48 -0800)]
Merge "Update changelog."

13 years agomerge from open-source master
The Android Open Source Project [Fri, 7 Jan 2011 15:16:46 +0000 (07:16 -0800)]
merge from open-source master

Change-Id: Ifc4f16a95242f41faf8b2c37ef5aea8f2b4c14d5

13 years agoMerge "Support for editing id, text, string and reference properties"
Tor Norbye [Fri, 7 Jan 2011 15:13:23 +0000 (07:13 -0800)]
Merge "Support for editing id, text, string and reference properties"

13 years agoSupport for editing id, text, string and reference properties
Tor Norbye [Wed, 5 Jan 2011 22:41:49 +0000 (14:41 -0800)]
Support for editing id, text, string and reference properties

We have context menu items for editing the properties of the currently
selected view, but it is only available for boolean and enumerated
properties.

This changeset makes it possible to edit these properties in three
ways:

1. It adds in all the other properties to the Property context menu,
   but instead of pullright menus, the actions have "..." as a suffix,
   and when selected will open a dialog asking for the new value.
   (This is similar to how custom layout width/height values are
   handled.)

   If the attribute represents a reference-type, then the Reference
   Chooser (also used by the property sheet) is shown, and if not just
   a plain text field.

   (This context-menu feature was requested by external users.)

2. It adds the "ID" property as a top level item that can be edited
   directly via an "Edit ID..." menu item, right next to the "Layout
   Width" and "Layout Height" properties which are also special-cased
   at the top level.

3. For Views that have a "Text" property, this property is also added
   at the top level to be able to set it quickly and conveniently.  As
   soon as we get inline editing we can consider whether this is still
   needed.

In addition, the changeset extracts constants for the various ids used
for action identity, and makes a common function for setting a
particular node attribute.

Change-Id: Ib86a8a5412c39117fe250ce5788d8457a0e3fbe8

13 years agomerge from open-source master
The Android Open Source Project [Fri, 7 Jan 2011 15:05:16 +0000 (07:05 -0800)]
merge from open-source master

Change-Id: I9e5cedfe59a747f271cf373f806e5d9ada822b6c

13 years agoMerge "Move the "Show Included In" menu item"
Tor Norbye [Fri, 7 Jan 2011 14:54:39 +0000 (06:54 -0800)]
Merge "Move the "Show Included In" menu item"

13 years agoMove the "Show Included In" menu item
Tor Norbye [Wed, 5 Jan 2011 20:24:58 +0000 (12:24 -0800)]
Move the "Show Included In" menu item

The "Show Included In" context menu was grouped as part of the
view-specific actions (setting width, height, orientation,
etc). That's not really a good place since this option is really about
the view as a whole. This changeset moves the item down to the bottom
of the context menu, next to the "Show In" action (which lets you show
the content in another Eclipse view.)

The code was tweaked a bit to be computed lazily (e.g. the contents of
the include list is not computed until the actual Show Included menu
is opened.)

Change-Id: Ic18997271e9ffde491a1a63e337ff015d762a20a

13 years agomerge from open-source master
The Android Open Source Project [Fri, 7 Jan 2011 14:42:21 +0000 (06:42 -0800)]
merge from open-source master

Change-Id: I3ff0e78c9ab1596df068921bce7fe92f9a2f9db5

13 years agomerge from open-source master
The Android Open Source Project [Fri, 7 Jan 2011 14:29:18 +0000 (06:29 -0800)]
merge from open-source master

Change-Id: Id5239533e7825bd0379b5afb142bb46c8d363f4b

13 years agoMerge "Replace Sdk.makeRelativeTo()"
Tor Norbye [Fri, 7 Jan 2011 14:19:46 +0000 (06:19 -0800)]
Merge "Replace Sdk.makeRelativeTo()"

13 years agoReplace Sdk.makeRelativeTo()
Tor Norbye [Fri, 7 Jan 2011 03:09:06 +0000 (19:09 -0800)]
Replace Sdk.makeRelativeTo()

IPath#makeRelativeTo(IPath) was not supported on Eclipse 3.4, so we
had a local version of it in our sourcebase, as
Sdk#makeRelativeTo(IPath,IPath). However, our version only works
correctly for directories, not plain files, but I had been using it
for files as well.

Now that we no longer need to support Eclipse 3.4, remove our local
version and use the builtin path conversion method.

(Fixed some invalid javadoc too)

Change-Id: I233875e1ecc758eb1ed333686b319b138eb47c4a

13 years agoMerge "Accumulate rendering errors and ensure they are always shown"
Tor Norbye [Fri, 7 Jan 2011 14:14:14 +0000 (06:14 -0800)]
Merge "Accumulate rendering errors and ensure they are always shown"

13 years agoAccumulate rendering errors and ensure they are always shown
Tor Norbye [Fri, 7 Jan 2011 04:35:20 +0000 (20:35 -0800)]
Accumulate rendering errors and ensure they are always shown

There are some scenarios where rendering failures (such as an NPE in
the layout lib) will not appear in the error display, and it will not
appear in the Error Log.

In addition, we now get fidelity warnings from the layout library
(warning about Android code using graphics operations not supported by
the layout preview), and these should all be displayed to the user
with a proper explanation.

To solve these problems, this changeset replaces the layout logger
with a new logger which:

(1) Writes all exceptions to the AdtPlug.log(Throwable) method, which
results in the full exception being captured in the Error Log

(2) Accumulates all errors, warnings and fidelity warnings

(3) Provides a summary of ALL the problems at the end, such that they
are all displayed (in decreasing order of severity) for the user
rather than the last one clobbering them all.

The logger also records whether exceptions were logged, and if so, the
last line of the error display indicates that further details can be
found in Window > Show View > Error Log.

Finally, the old logger was a member of the GraphicalEditorPart, but
this is a lightweight object so there is no need to cache it, and in
fact we don't want other types of rendering (such as preview
rendering) popping open the error display area.

Change-Id: Ia00978a725cb7e7ec2dcfbf9e868df2a5136efc0

13 years agomerge from open-source master
The Android Open Source Project [Fri, 7 Jan 2011 03:36:29 +0000 (19:36 -0800)]
merge from open-source master

Change-Id: Ifc8965806394560e4dd8da14c1789140998ea51f

13 years agoMerge "Fix NON-NLS tokens"
Tor Norbye [Fri, 7 Jan 2011 03:27:28 +0000 (19:27 -0800)]
Merge "Fix NON-NLS tokens"

13 years agomerge from open-source master
The Android Open Source Project [Fri, 7 Jan 2011 03:23:21 +0000 (19:23 -0800)]
merge from open-source master

Change-Id: Ib519ff7834dfb55894a199ffcfa6f63a6c34764e

13 years agoMerge "Improve the Outline contents"
Tor Norbye [Fri, 7 Jan 2011 03:19:59 +0000 (19:19 -0800)]
Merge "Improve the Outline contents"

13 years agoImprove the Outline contents
Tor Norbye [Wed, 5 Jan 2011 02:28:43 +0000 (18:28 -0800)]
Improve the Outline contents

1. Make the outline use StyledStrings such that we can use different
colors for different elements in the outline. Use the decorations
color for the element type that follows the id.

2. For elements that define a "text" property, include the text (or a
prefix of it if it is long) in the outline. Thus, for a Button you
might see something like "Button01 - "Submit Order").

3. For elements that define a "src" property, show the
source. Therefore, for an ImageView you might see "ImageView - logo".

4. For <include> elements, show the name of the included layout.

Change-Id: Ibd4c8339ea0e03c969ccaec1a67bc64436ed67af

13 years agoUpdate changelog.
Xavier Ducrohet [Fri, 7 Jan 2011 02:02:13 +0000 (18:02 -0800)]
Update changelog.

Change-Id: I8ac24138cbf8bfc6d9dd44aaa1fde4d8485d8416

13 years agomerge from open-source master
The Android Open Source Project [Fri, 7 Jan 2011 01:01:25 +0000 (17:01 -0800)]
merge from open-source master

Change-Id: I570f71a2e5550a8f1558f9fc83b4ee1321e703a6

13 years agoMerge "Support broken addons in SDK Manager UI."
Raphael Moll [Fri, 7 Jan 2011 00:51:53 +0000 (16:51 -0800)]
Merge "Support broken addons in SDK Manager UI."