Commit Graph

131 Commits

Author SHA1 Message Date
Xavier Ducrohet
955e08b520 Skins can now provide their own hardware support (via AVDs) 2009-06-29 08:01:02 -07:00
Xavier Ducrohet
4551d28399 Details dialog for AVD from the avd selector. 2009-06-29 06:20:15 -07:00
Raphael
1a2584be47 SDK Updater: Store local source properties when installing.
When installing an archive, a "source.properties" file is saved
in the directory that contains all the information from the
source (Source URL, package attributes, archive attributes.)

When loading local packages, these properties are used to
recreate the local package attributes if present. This is
also used to indentify local extra packages.
2009-06-26 14:37:01 -07:00
Raphael
0ec4e5a717 SDK Updater: UI to add new sources URL. 2009-06-26 10:55:30 -07:00
Raphael
6183584988 SDK Updater: Cleanup a bunch of todos 2009-06-25 20:00:05 -07:00
Raphael
426ecc9efd SDK Updater: logic to load/save user sources and to delete them. 2009-06-25 18:06:00 -07:00
Raphael
7b2bb7452f SDK Updater: Update buttons state in local/remote page
based on selection.
2009-06-25 15:21:09 -07:00
Raphael
0d9a6278b4 Fix api change following a rebase. 2009-06-18 21:42:36 -07:00
Android (Google) Code Review
3962412784 Merge change 4685 into donut
* changes:
  SDK Updater: use separate license node in XML. Support extra packages.
2009-06-18 21:24:38 -07:00
Raphael
48c6578bb6 SDK Updater: use separate license node in XML. Support extra packages. 2009-06-18 16:40:12 -07:00
Xavier Ducrohet
ef2f55d0b7 Add support to delete AVD in the new AvdSelector.
Also: change button order in the update chooser dialog.
2009-06-18 16:01:05 -07:00
Android (Google) Code Review
630f7df118 Merge change 4575 into donut
* changes:
  SDK Updater: Better guess for the addon folder name.
2009-06-18 12:01:58 -07:00
Android (Google) Code Review
3f351dd5df Merge change 4555 into donut
* changes:
  Force UTF-8 encoding for SDK files.
2009-06-18 10:42:43 -07:00
Raphael
691beb35a1 SDK Updater: Better guess for the addon folder name.
- Always unzip the archives first and get their root zip dir.
- Try to reusing an existing addon folder first.
- Or the root zip dir.
- Or come up with a better name for the addon folder.
2009-06-17 21:28:51 -07:00
Xavier Ducrohet
fa0286d4d3 Force UTF-8 encoding for SDK files.
- project .properties files
- AVD ini files (<name>.ini and config.ini)
- add-on manifest
2009-06-17 17:51:22 -07:00
Raphael
fb2a1430c9 SDK Updater: fix accept callback to update Install Selected button. 2009-06-17 15:39:52 -07:00
Raphael
97d3769f36 SDK Updater: display icons for local packages. 2009-06-17 14:55:57 -07:00
Raphael
340a79b590 SDK Updater: fix repository.xml to read as binary, not text
to let the XML decoder handle the charset decoding.
2009-06-17 13:35:39 -07:00
Xavier Ducrohet
2f06069269 First step of a more standalone AvdSelector.
- New/Delete/Info/Refresh/Manager buttons.
- Ability to set any kind of AVD filter
- Self-refresh: Selector knows the AvdManager and can refresh itself.
- Manager mode or simple (selection or checkboxes)
- Manager mode displays broken AVDs.

Updated the SdkUpdate AVD page and the various use of the Selector in ADT.
2009-06-17 11:40:19 -07:00
Raphael
d05f6ef99b SDK Updater: fix install of new packages from remote page. 2009-06-17 11:30:38 -07:00
Android (Google) Code Review
678a781bb5 Merge change 4440 into donut
* changes:
  Properly create Image for the icons so that they are transparent.
2009-06-17 10:12:18 -07:00
Raphael
4d68551ef3 SDK Updater: remove UpdaterData.Display 2009-06-16 19:21:53 -07:00
Xavier Ducrohet
1721fae552 Properly create Image for the icons so that they are transparent. 2009-06-16 19:16:00 -07:00
Raphael
eecf776ac4 SDK Updater: select specific archives in the remote page
also triggers the license/install overview dialog.
2009-06-16 16:17:09 -07:00
Raphael
6a20ac0953 SDK Updater: automatically accept packages with no license. 2009-06-16 12:12:08 -07:00
Android (Google) Code Review
128308e01b Merge change 4297 into donut
* changes:
  SDK Updater: different icon theme for the repository items.
2009-06-16 11:54:40 -07:00
Raphael
53033b80ba SDK Updater: use tri-state icon for each potential
archive: accepted, refused or unknown.
2009-06-16 00:08:49 -07:00
Raphael
eb74e4a8d5 SDK Updater: different icon theme for the repository items. 2009-06-15 23:27:01 -07:00
Raphael
624222750d SDK Updater: addon id is name+vendor, lower case 2009-06-15 16:35:41 -07:00
Raphael
e073146af3 SDK Updater: update all existing local archives, license click through. 2009-06-15 13:48:50 -07:00
Xavier Ducrohet
63c20f1cd7 Fix the reload of pages after installation of packages. 2009-06-12 18:13:27 -07:00
Raphael
18a6ab32be SDK Updater: provide a "force http" setting.
Note that the setting operates on every source by converting
the https:// links into http:// before fetching the sources
or the archives.

This also reorganize some things: the RepoSourceAdapter now
takes the UpdaterData as parameter (so both Adapters work the
same) and the label/contentProviders are nested classes instead
of static classes. Cleanup some stuff that was no longer useful
such as the RepoSources.TaskFactory (it's in UpdaterData already).

With this change I can install from the dl site over http at home!
2009-06-11 21:45:07 -07:00
Raphael
f3eed7385c SDK Updater: SettingsController that handles the settings.
There is not any longer any logic in the SettingsPage,
it is handled now by a "SettingsControllers" which is
available via UpdaterData. The page only takes care of
notifying the controller via a callback when settings
have changed in the UI.
2009-06-11 18:14:11 -07:00
Raphael
38ea6d2afe SDK Updater: remove UpdaterData() constructor.
We don't really need for SWT Designer.
Also fix the main window icon to show it again.
2009-06-11 15:55:42 -07:00
Raphael
0266592783 SDK Updater: icons for packages in remote page.
One of the rationales behind this was to show
incompatible archives using some icon.

This moves all SDK Updater icons in internal/repository/icons
and create an ImageFactory available to the remote page via
the UpdaterData.
2009-06-11 15:40:39 -07:00
Xavier Ducrohet
201f83164f Centralized the local data, and create new listener mechanism to access it.
Created a permanent SdkManager in UpdaterData (alongside a new AvdManager).
Pages can request a reload (for example on install/delete of a local package),
and other pages are notified of SDK changes to update their display (local
packages, local AVDs, available packages, etc...)

Removed references to UpdaterWindow from the pages (moved some actions
like installArchives and refreshSources into UpdaterData).

Added a new page for the AVDs. Pretty basic for now (only the current AVD
display).

Clicking refresh on the Local pages causes a reload which triggers a
refresh of the listeners pages which properly reloads the AVD page.
2009-06-11 14:51:26 -07:00
Android (Google) Code Review
e1c1ac8b0e Merge change 3869 into donut
* changes:
  SDK Updater: implement tree check callback on remote page.
2009-06-11 11:56:08 -07:00
Android (Google) Code Review
c390708d03 Merge change 3868 into donut
* changes:
  ADT #1909458: fix 'android update project': "build.xml is too old"
2009-06-11 11:55:36 -07:00
Android (Google) Code Review
134c84ab62 Merge change 3856 into donut
* changes:
  SDK Updater: fix install in new directory.
2009-06-11 10:24:54 -07:00
Raphael
616643f673 SDK Updater: implement tree check callback on remote page. 2009-06-10 23:08:53 -07:00
Raphael
bd13b6ce02 ADT #1909458: fix 'android update project': "build.xml is too old" 2009-06-10 21:33:38 -07:00
Android (Google) Code Review
3aa7f5d637 Merge change 3848 into donut
* changes:
  SDK Updater: Revamp ITaskMonitor to be able to create sub monitors.
2009-06-10 19:49:47 -07:00
Raphael
9888f2038e SDK Updater: fix install in new directory.
Also change the getenv hack so that multiple sources
can be specified, separated by ;
2009-06-10 19:35:50 -07:00
Raphael
b399193542 SDK Updater: Revamp ITaskMonitor to be able to create sub monitors.
This allows us to nest tasks that share the same
progress task dialog..
2009-06-10 18:33:45 -07:00
Android (Google) Code Review
04d87fc25f Merge change 3770 into donut
* changes:
  Add SdkManager#reloadSdk().
2009-06-10 17:11:57 -07:00
Android (Google) Code Review
64638a165f Merge change 3743 into donut
* changes:
  ADT #1856119: 'android update project' can now update sub-projects.
2009-06-10 15:30:15 -07:00
Xavier Ducrohet
086594ceab Add SdkManager#reloadSdk(). 2009-06-10 14:49:02 -07:00
Raphael
8e8886e363 SDK Updater: handle HTTP proxy settings, load & save. 2009-06-10 11:39:25 -07:00
Raphael
61df13dec4 ADT #1856119: 'android update project' can now update sub-projects. 2009-06-10 11:34:08 -07:00
Raphael
9be7c5b712 SDK Updater: Support local archives
- Change Archive to have a "isLocal" mode.
  - In local mode, Archive.getLocalOsPath gives the install folder.
  - In remote mode, Archive.getUrl gives the download URL.
- Implement delete on local archive.
- Started refreshing all sources. Need to revamp the progress
  dialog to share it accross methods first.
2009-06-09 22:09:34 -07:00