Commit Graph

206 Commits

Author SHA1 Message Date
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
Android (Google) Code Review
1d7be8653c Merge change 3622 into donut
* changes:
  Move the custom widgets for avd/targets/apk-config into internal.widgets
2009-06-09 15:13:44 -07:00
Android (Google) Code Review
b72302d19b Merge change 3597 into donut
* changes:
  Add missing file and remove unused imports
2009-06-09 15:13:40 -07:00
Android (Google) Code Review
12dcaef692 Merge change 3546 into donut
* changes:
  SDK Updater: fix repo URL
2009-06-09 14:22:49 -07:00
Android (Google) Code Review
bc61b566c8 Merge change 3545 into donut
* changes:
  SDK Updater: fix for new archives.
2009-06-09 14:22:40 -07:00
Xavier Ducrohet
0d33d5a5cc Move the custom widgets for avd/targets/apk-config into internal.widgets 2009-06-09 13:49:51 -07:00
Xavier Ducrohet
553f9c00fd Add missing file and remove unused imports
(git commit -a missed it)
2009-06-09 11:56:46 -07:00
Raphael
986d8a082e SDK Updater: fix repo URL 2009-06-08 21:52:05 -07:00
Raphael
fea501be73 SDK Updater: fix for new archives.
Fix for detecting MacOS platforms correctly.

Fix to account for new archives with a root folder
(the root folder is ignored).

Display why archives are not compatible (print
which OS was not compatible.)
2009-06-08 21:47:04 -07:00
Xavier Ducrohet
66c2833c5d Add menu + bigger icons for MacOS. Also added name to shell (macos also) 2009-06-08 18:35:29 -07:00
Android (Google) Code Review
34fb7ecf1b Merge change 3345 into donut
* changes:
  SDK Updater: Add optional license elements to XML schema.
2009-06-08 13:27:35 -07:00
Android (Google) Code Review
defc3d14e1 Merge change 3407 into donut
* changes:
  SDK updater: refactor install into Archive.
2009-06-08 13:24:37 -07:00
Raphael
4d18cb21f2 SDK updater: refactor install into Archive. 2009-06-05 19:46:34 -07:00
Android (Google) Code Review
5589930805 Merge change 3342 into donut
* changes:
  Add revision to Android targets.
2009-06-05 17:02:04 -07:00
Xavier Ducrohet
9d5a88398e Add revision to Android targets.
The add-on use the "revision" property of the manifest (if it does not
exists, it looks for the old deprecated "version" property).
The platform uses the ro.build.version.incremental which is only an integer
for builds from the build servers.
Local builds contain <buildtype>.<username>.<date>.<time>. For those will
use the date.
2009-06-05 16:59:53 -07:00
Raphael
21c57d743a SDK Updater: Add optional license elements to XML schema. 2009-06-05 14:01:10 -07:00
Raphael
f5803d7d18 SDK Updater: add comments to the XML Schema.
This patch also moves the checksumType at the bottom
so that the main sdk-repository element definition
be the first thing in the file.
2009-06-05 10:59:56 -07:00
Android (Google) Code Review
79508571c0 Merge change 3195 into donut
* changes:
  Change the SDK, DDMS and Traceview to work with the new SWT libraries.
2009-06-04 15:00:45 -07:00
Xavier Ducrohet
c5a89e256c Change the SDK, DDMS and Traceview to work with the new SWT libraries.
The SDK now contains 32 and 64 bit version of SWT. DDMS and Traceview
use the archquery java app to check the architecture of the VM to decide
which version of SWT should be used to run the apps.
2009-06-04 14:50:43 -07:00
Raphael
f555bd3bff SDK Updater: Unzip archives.
This adds the following:
- unzip archives
- if dest dir already exists (typicaly update case),
  unzips in a temp dir then swap dirs then delete
  the old install. In case of error, the old archive
  has not been lost.
- computes stats for download: percentage, speed, time left.
- compute percent for install, on top of progress bar.

The install code will need to move somewhere
out of the window. I think I'll put in the Archive
itself with the window just looping on all archives
and doing some progress bar bookeeping.
2009-06-03 23:08:05 -07:00
Raphael
5ae0e07701 SDK Updater: Refactor, polish and complete the progress dialog.
This splits the former ProgressTask in 2 parts:
ProgressDialog is just the SWT dialog and ProgressTask
is the task handling.

This helps avoiding confusing SWT Designer each time
I do a change in the logic. Plus it seems cleaner anyway.

The other thing this CL does is implement the pause/close
I originally wanted: the pause button is greyed once used
by the user whilst the task completes. After, it becomes
a "Close" button if there's a result text displayed.
Closing the window using the close box is now the same as
using the pause/close button (to avoid closing the dialog
with a running thread.)
2009-06-03 00:19:09 -07:00
Raphael
b997c230db SDK Updater: fix download URL, fix checksum computation. 2009-06-02 22:12:01 -07:00
Android (Google) Code Review
6eaf0e1afe Merge change 2868 into donut
* changes:
  SDK Updater: Placeholder pages for about and settings.
2009-06-02 12:25:47 -07:00
Android (Google) Code Review
3c502eb060 Merge changes 2853,2885 into donut
* changes:
  Misc updates on the Sdklib.
  Export all ADT packages.
2009-06-02 11:56:59 -07:00
Raphael
36e11cb354 SDK Updater: Placeholder pages for about and settings.
These pages are now in the SdkManager project
with a mechanism to instantiate them from the UI on demand.
2009-06-02 11:40:29 -07:00
Xavier Ducrohet
b10ffbaf3d Misc updates on the Sdklib.
- moved some code around
- made the constant in IAndroidTarget actual constant (they were not final)
2009-06-01 17:16:07 -07:00