aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse
Commit message (Collapse)AuthorAgeFilesLines
* Merge change Ieb4e722b into eclairAndroid (Google) Code Review2009-10-053-4/+6
|\ | | | | | | | | * changes: Add sdklib tests to the adt-tests Unit tests.
| * Add sdklib tests to the adt-tests Unit tests.Xavier Ducrohet2009-10-053-4/+6
| | | | | | | | Change-Id: Ieb4e722b1b5a29cef250e2cb5575a71e09f956c3
* | Merge change I90b4c0e7 into eclairAndroid (Google) Code Review2009-10-056-127/+316
|\ \ | |/ |/| | | | | * changes: Fix Eclipse sample tests.
| * Fix Eclipse sample tests.Brett Chabot2009-10-056-127/+316
| |
* | Fix best match resource selection when there's only one match.Xavier Ducrohet2009-10-051-1/+1
| | | | | | | | | | | | Was using the wrong index. Change-Id: I7d761ffa553f0aeec176a4752185dde238991e5e
* | Merge change I69afafa4 into eclairAndroid (Google) Code Review2009-10-022-28/+220
|\ \ | | | | | | | | | | | | * changes: ADT: Create project from existing sample in New Project Wizard
| * | ADT: Create project from existing sample in New Project WizardRaphael2009-10-022-28/+220
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The UI workflow: - user selects the new "Create project from existingsample" radio button - user selects an SDK target in the NPW - a popup is filled with all available samples This also fixes 2 edge cases: - when the selected sample contains a build|default.propertie that is a base of the currently selected SDK target, don't reset it. - when the user manually changes the project name or the app name for the sample, simply empty the fields and the next selected sample will recompute the adequate names. Any non-empty user input is never overridden. SDK BUG 2121819 Change-Id: I69afafa460b86942046ef6baca3d4c7ee7dbe97d
* | Fix resource resolution in the graphical layout editor.Xavier Ducrohet2009-10-022-57/+56
|/ | | | | | | Resource with qualifiers take precedence over the ones without even if the qualifiers are not present on the requested configuration. Change-Id: I0d19889064e8031179ea6ee13c93a4198fe971fd
* Fix Android Manifest parser.Xavier Ducrohet2009-10-011-9/+10
| | | | | | | While the test is in the java package as the parser, it's in a different plug-in and this prevents accessing package-protected methods. Change-Id: Ib17765095e4da518d62ee65cb9e1987d0e22be6e
* ADT Manifest Editor: Fix for uses-sdk dup that won't go away.Raphael2009-10-012-60/+87
| | | | | | | | | | | | It was a display issue only, meaning the actual XML node was being deleted but the Ui model was not updated properly. The actual cause is that this is a mandatory node, and mandatory nodes must stay as "fake nodes" in the Ui model. However only one such node needs to stay in the hierarchy. SDK BUG 2147112 Change-Id: I68e3d343bb95169865ad8dcad77004cbd51fafc3
* Load default GLE device profiles from the SDK.Xavier Ducrohet2009-09-301-80/+13
| | | | Change-Id: Ife64397692912f892ec81af8237ac31914830be9
* Replace icon template with new style and multiple densities.Xavier Ducrohet2009-09-305-19/+75
| | | | | | | | | | | | | | | | | | The icon in the templates of ADT was medium density only. I added new densities (high and low), as well as updated to the new Eclair style. Also added a version for Ant project. Updated ADT and sdklib to deal with creating new projects with all 3 icons. In case of Ant project, this is done only if the icons are present in the target platforms. For ADT, this is done only if the project target donut or later. Older project still have only one icon located in drawable/ Change-Id: I77069a1e4902ef395d490526aabc40a26e33d4ca
* Add support for xdpi and ydpi in the device config for the GLE.Xavier Ducrohet2009-09-305-45/+121
| | | | Change-Id: Ie905f9b586ac5f58e40e86232fbafeaacf6a0c51
* Merge change I95a34d28 into eclairAndroid (Google) Code Review2009-09-292-562/+626
|\ | | | | | | | | * changes: ADT XML String Refactoring: fix refusing to edit @+id/blah.
| * ADT XML String Refactoring: fix refusing to edit @+id/blah.Raphael2009-09-292-562/+626
| | | | | | | | | | | | | | | | | | | | | | It correctly only refuses to edit @string/blah now. This CL also does a bit of refactoring; I extracted some methods and a class to make it a bit easier to read. BUG 2066460 Change-Id: I95a34d28d6390ab0cc075f05ea83ceec04993ae9
* | Add xdpi and ydpi to layout-configs XML Schema.Raphael2009-09-294-138/+284
|/ | | | | | | | Also validate that whitespace around tokens is accepted. BUG 2138329 Change-Id: Id5af7cf2b0689f05327a0cf0b17a525ceba78a12
* Fix NPE when opening new layout file.Xavier Ducrohet2009-09-285-12/+17
| | | | | | | | | | | | | | | When adding the parsing of the device XML files, I mostly tested with a layout file already opened when Eclipse launched. Well it turns out there's a slightly different code path when opening a file *after* Eclipse has launched. The load of the device UI in the config selected caused a rendering before the XML model was loaded which ended up in an NPE in the recomputeLayout method. Additionnally, I hadn't finalized the code for the GLE2, so this brings it in line with the GLE1. Change-Id: Ic86de6e91ca13793aceecb5706bc963edddb9241
* Fix ADT to use the new sdklib APIXavier Ducrohet2009-09-282-62/+62
| | | | | | | ManifestConstants got renamed AndroidManifest but I forgot to update ADT. Change-Id: I60d40c63a67968c31789e91f14020c61114907ca
* Merge change I097b444e into eclairAndroid (Google) Code Review2009-09-281-0/+35
|\ | | | | | | | | * changes: Fix ApiDemo Layout rendering test
| * Fix ApiDemo Layout rendering testXavier Ducrohet2009-09-281-0/+35
| | | | | | | | | | | | | | | | | | The issue came from a lack of device configuration and missing default versions of some resources. We know use an ADP1 configuration to choose the resources used by the rendering. Change-Id: I097b444e4fdc5572cfc53293a3215f1382f5d49c
* | Merge change I663d4cb7 into eclairAndroid (Google) Code Review2009-09-281-63/+31
|\ \ | | | | | | | | | | | | * changes: Update the project creation (from the command line):
| * | Update the project creation (from the command line):Xavier Ducrohet2009-09-271-63/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make the distinction between the activity class name, manifest entry, fully-qualified name, and tested activity for the template place-holders. Test activity names now directly contain the full name (including the "Test" prefix) instead of the template adding it. This is required by the new 'create test-project' - New action: create test-project This requires a path to the main project. It reads the package, activity name and target from the main project. The activity is read from the manifest and can be in a more complex form than previously expected (for instance .subpackage.MyClass, instead of simply MyClass). This is what required the re-work the activity related template place holders. Options: -m --main Location path of the project to test, relative to the new project [required] -n --name Project name -p --path Location path of the new project [required] Example: for 2 projects MyProject and MyTests located in the same folder, calling from their parent folder. android create test-project -p MyTests -m ../MyProject - build.properties now only gets application.package for older targets as the new one get it directly from XPath - Remove AndroidXPathFactory from the anttasks project as it was already in sdklib which is a dependency. - Removed IntelliJ templates for the SDK. We haven't supported them for a while, and now that IntelliJ has built-in support for Android, it's not that useful anymore. While there is the command line parameters for 'update test-project' it's not yet implemented. Change-Id: I663d4cb7f439bb2abfe866f893e58f4d13aff975
* | | Merge change Ib1b01007 into eclairAndroid (Google) Code Review2009-09-2819-155/+494
|\ \ \ | |_|/ |/| | | | | | | | * changes: Parse add-on supplied layout devices.
| * | Parse add-on supplied layout devices.Xavier Ducrohet2009-09-2719-155/+494
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add-ons are expected to provide a file called devices.xml in their root folder. The XML schema for this file is eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/layout-configs.xsd I slightly fixed the schema so that normal screen size use the token "normal" instead of "medium" to match the resource qualifier. To round up the feature, the following changes are included: - getEnum in the resource qualifier enum has been made public. There's no sense in keeping it private and it'll help with people possibly using valueOf which behaves differently (case sensitive so ScreenSize.valueOf("normal") fails, while getEnum on the same string succeed. - Updated the device configuration UI to deal with missing list of devices while the SDK loads. Change-Id: Ib1b01007d2ae7fd6398172c3549b2686c33d48be
* | | Fix ResourceQualifier tests.Xavier Ducrohet2009-09-282-12/+31
|/ / | | | | | | Change-Id: Ib6109c1bb76dadddeef24aec3af16e178a931651
* | XML Schema for layout configurations.Raphael2009-09-274-0/+744
|/ | | | | | | | | | | | | | | | | | | | | | The only changes to the original XML sample: - the root element is called "layout-configs" (plural for container). - the <default> and <config> elements must be defined in that order: - 0..1 of <default> folowed by - 1..n of <config> It's invalid for the <device> node to be empty. default/config are defined by a <xsd:sequence>, which imposes the strict ordering. At first I used an <xsd:choice> which does not impose any ordering but then it becomes possible to define an empty <device> element. I'd rather live with the strict ordering (which also makes sense anyway) and enforce non-empty <device> elements in the schema. BUG 2138329 Change-Id: I581afb1d72825ae79df00d81c74c80a2a18680ad
* Merge change 26773 into eclairAndroid (Google) Code Review2009-09-245-11/+41
|\ | | | | | | | | * changes: Disable clipping toggle when not supported.
| * Disable clipping toggle when not supported.Xavier Ducrohet2009-09-235-11/+41
| | | | | | | | | | | | | | This is only supported in Eclair+, so the toggle button is disable if the edited file is donut or before. Change-Id: I8bf1f8a8aa3604f269cb226d788c5e1438a5ae0b
* | Merge change 26740 into eclairAndroid (Google) Code Review2009-09-241-3/+13
|\ \ | | | | | | | | | | | | * changes: Add warning on mismatch minSdkVersion.
| * | Add warning on mismatch minSdkVersion.Xavier Ducrohet2009-09-231-3/+13
| |/ | | | | | | | | | | | | | | | | | | This is for both Ant and ADT. For Ant, also added a check for non-integer values when the platform is not a preview. BUG:2118374 Change-Id: Ic8ec533d66a31d9e4b51c9c38b5eaab97bca7414
* | Merge change 26540 into eclairAndroid (Google) Code Review2009-09-231-11/+9
|\ \ | | | | | | | | | | | | * changes: Make the Density enum use the int value from the api Density enum.
| * | Make the Density enum use the int value from the api Density enum.Xavier Ducrohet2009-09-231-11/+9
| |/ | | | | | | Change-Id: I13cace9a3fd7d17171ebe1e8b98c31adfa8509dc
* | Hide APK split UI (not ready yet)Xavier Ducrohet2009-09-231-3/+11
|/ | | | Change-Id: I2ace823139710e836c72cc323427024b54384e38
* Fix possible NPE in DDMS plugin init.Xavier Ducrohet2009-09-221-27/+41
| | | | Change-Id: Ie1649b319948514473e11c27b4ad126ffe2d40ef
* Create Density based resource values when needed.Xavier Ducrohet2009-09-223-33/+55
| | | | | | | This will let the layoutlib know when to scale bitmaps that are not in the native density of the rendering. Change-Id: I08c99666460b5b5a3ed8d0aac7fa1b7c0136fd6b
* Fix the qualifier match algorithm.Xavier Ducrohet2009-09-225-68/+198
| | | | | | Add proper support for density and keyboard state match. Change-Id: I410aba52ee0f0d9df31fa2abdc9485054595263f
* Add support for Keyboard state "Soft"Xavier Ducrohet2009-09-221-1/+2
| | | | Change-Id: Ief65b3988973fb3b3d9edbbb99df9354ffe85663
* Update the SDK/AVD manager toolbar icon tooltip to be consistent.Xavier Ducrohet2009-09-211-1/+1
| | | | Change-Id: Ie4c98537035e11543dd22b870880d52506ca1b99
* Merge change 24500 into eclairAndroid (Google) Code Review2009-09-101-106/+492
|\ | | | | | | | | * changes: ADT GLE: support multiple selection and alternate selection.
| * ADT GLE: support multiple selection and alternate selection.Raphael2009-09-091-106/+492
| | | | | | | | Change-Id: Ia7ce5fb2365898fdcae73eacbaf6d08b091d7586
* | Add preferences to DDMS (plug-in/standalone) for adb time out.Xavier Ducrohet2009-09-083-1/+14
|/ | | | Change-Id: Ia48221e33ee5ffae4f381aa29bd99a62b148108e
* GLE: remove mcc/mnc, add clipping support.Xavier Ducrohet2009-09-084-193/+75
| | | | Change-Id: I9fc2ee167436ba234c6f09b1635f45b34b461c2e
* ADT: Display selection and mouse hover in GLE canvas.Raphael2009-09-042-46/+311
| | | | Change-Id: Icc2f8331a099905d6e1aaa52b36cc17a7190cc4b
* Merge change 24047 into eclairAndroid (Google) Code Review2009-09-041-14/+17
|\ | | | | | | | | * changes: ADT: fix an NPE that can happen when an XML file resource is being refreshed by Eclipse whilst the SDK is not finished loading.
| * ADT: fix an NPE that can happen when an XML file resource is beingRaphael2009-09-041-14/+17
| | | | | | | | | | | | refreshed by Eclipse whilst the SDK is not finished loading. Change-Id: I970255925d98f7b84a726fa37bf1fef3d25ab520
* | Add method profiling support to DDMS.Xavier Ducrohet2009-09-035-124/+135
|/ | | | | | | | | | | | New button allows to start/stop tracing. When clicking stop, DDMS downloads the trace file and starts Traceview. Also refactored some common parts of the HPROF and tracing handlers into a common class. The goal is to have a default, extensible implementation of the HPROF handler that DDMS and the plug-in can reuse. This will reduce duplicated code. Change-Id: Ifc48926c7f6f1c3ea49a4aa94053664be83cbb06
* Merge change 23740 into eclairAndroid (Google) Code Review2009-09-026-33/+161
|\ | | | | | | | | * changes: Add support for opening HPROF files in Eclipse.
| * Add support for opening HPROF files in Eclipse.Xavier Ducrohet2009-09-026-33/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | The action taken on successful HPROF dump can now be configured from the plug-in preference to be either "save to disk" or "open in eclipse". If a plug-in supporting .hprof files (such as Eclipse Memory Analyzer Tool) is present then the file will just be opened in the tool. "save to disk" does not convert the file, "open in eclipse" does convert the hprof file (using hprof-conv present in the SDK) Change-Id: Iceb347abb2af5a2979b6028c22dcbdc3bc7250ca
* | ADT GLE: change error display to a separate sash.Raphael2009-09-023-154/+163
|/ | | | | | | | | | | | This allows GEP to display both the latest error and the latest successful rendering. The error still needs an icon and the canvas will need to be grayed or something. Also the LayoutCanvas will directly use the ILayoutResult and we won't need to custom EditData in UiElementNode so the correspond method is @deprecated (but obviously still supported for GLE1.) Change-Id: Ia3afed836755dbd84a4511eaed0782c85a383ac9
* Merge change 23640 into eclairAndroid (Google) Code Review2009-09-022-2/+0
|\ | | | | | | | | * changes: Remove unused git files.