Commit Graph

101 Commits

Author SHA1 Message Date
Xavier Ducrohet
e9b9596bd6 Remove duplicate initialization in AdtPlugin.
The is a remnant of the old #start() method of the Editors Plugin class.
2009-05-14 13:31:11 -07:00
Xavier Ducrohet
c15ed2d771 Fix a double issue regarding interrupted builds due to pre-existing errors.
First, the ApkBuilder didn't cancel its run if the project had markers from JDT.
Second, the try/catch on ApkBuilder#build didn't properly test the
CoreException status severity (used getCode instead of getSeverity), so it did
not detect cancels being thrown by #abortOnBadSetup and displayed the error
in the console instead.
2009-05-13 18:03:14 -07:00
Xavier Ducrohet
20d4ecf2d7 ADT: remove an obsolete import from the manifest. 2009-05-13 17:41:07 -07:00
Xavier Ducrohet
770dfc5ed4 ADT: Refactoring classes dealing with android resources out of the editor.
Basically:
editors.resources.manager -> resources.manager
editors.resources.configurations -> resources.configurations

This is to make it less confusing between the "Resources editors" and the
class parsing/handling Android resources (either in a project or in the
framework).
Also moved the ResourceExplorerView out of the resources editors, and clean
up a few other misc classes.
2009-05-13 17:36:25 -07:00
Xavier Ducrohet
5bb7e1e0cd ADT: Move more packages into internal:
editors -> adt.internal.editors.

This also marks the final refactoring of combining previous editors/common
plugin under the adt package.
2009-05-13 17:23:00 -07:00
Xavier Ducrohet
9ed226af6a ADT: Move more packages into internal.
common.project -> adt.internal.project
adt.resources -> adt.internal.resources
adt.wizards.* -> adt.internal.wizards
adt.ui -> adt.internal.ui
2009-05-13 17:13:15 -07:00
Xavier Ducrohet
4cc22e5ebf ADT: Move more packages into internal
project.*
refactorings.*

Also: moved the export wizard from project.export to wizards.export, moved some
actions out of project into the new internal package actions.
2009-05-13 17:03:26 -07:00
Xavier Ducrohet
f127736264 ADT: Remove StreamHelper and integrate it in AdtPlugin.
StreamHelper was used before by AdtPlugin, DdmsPlugin and EditorsPlugin. It's now
only used by AdtPlugin, so the only 2 methods in it can go in AdtPlugin.
I merged the externalized string in the messages.properties file used by AdtPlugin.
2009-05-13 16:46:31 -07:00
Xavier Ducrohet
9eedccd52c Moved more ADT packages into internal.
adt.build
adt.launch.*
adt.preferences

Also started combining adt and common.
2009-05-13 16:37:55 -07:00
Xavier Ducrohet
2c83a9f10c Update ADT to use the refactored sdklib from previous patch. 2009-05-13 15:10:20 -07:00
Raphael
0b62151cda ADT #1715616: "New Android Test Project" wizard.
Also updates eclipse/changes.txt
2009-05-08 14:06:44 -07:00
Raphael
1bb52f2587 Fix ADT junit test for AndroidManifestParser following API change. 2009-05-05 13:41:59 -07:00
Raphael
816ba073c6 ADT #1825491: Provide default choices for <uses-library>
We currently hardcode a list in the PlatformTarget and propagate
it to the UI via the AndroidTargetParser. This way we can later
decide to actually get the info from some kind of manifest.
2009-05-04 15:37:40 -07:00
Raphael
beb3214b46 ADT #1823896: Ability to add an "extra" action to the AVD Selector.
Used to display the AVD Manager from the Device Chooser/Launch config.
Used to delete AVDs from the AVD Manager.

In AVD Manager, also hide the Cancel button since actions are
immediate and not cancelable.
2009-05-01 13:58:31 -07:00
Raphael
e940a1cad7 ADT #1823896: AVD Manager button in the AVD Selector.
Device chooser: avd manager callback + avd list refresh.
Device chooser: dialog title.
Device launcher tab: avd manager callaback + avd list refresh.
2009-04-30 17:14:58 -07:00
Xavier Ducrohet
7bfac3d8c7 Display the AVD manager wizard during launches where no compatible AVDs exist. 2009-04-30 14:20:33 -07:00
Android (Google) Code Review
9e2993ed2e Merge change 770 into donut
* changes:
  ADT 1603194: Android Package browser for Instrumentation nodes.
2009-04-30 11:59:01 -07:00
Raphael
1a93c942f0 ADT 1603194: Android Package browser for Instrumentation nodes. 2009-04-29 17:36:39 -07:00
Xavier Ducrohet
70fc6e96af Make sure that any exception during the final packaging properly put an error marker on the project (since build failed. 2009-04-29 14:38:30 -07:00
Raphael
b7327498cb ADT #1820114: Provide a quick UI to edit AVD.
This is temporary and will be replaced once we get the standalone AVD UI.
2009-04-29 11:29:55 -07:00
Android (Google) Code Review
594999277e Merge change 627 into donut
* changes:
  Fix a bunch of issues related to packaging the content of libs (NPE with files with no extension, not ignoring ignorable folders). Also fixed an issue when parsing Manifest with <uses-sdk />
2009-04-28 11:02:14 -07:00
Xavier Ducrohet
1ec5e2f4bb Move ADT to 0.9.1 2009-04-27 19:02:03 -07:00
Xavier Ducrohet
d1e88a3fcb Fix a bunch of issues related to packaging the content of libs (NPE with files with no extension, not ignoring ignorable folders). Also fixed an issue when parsing Manifest with <uses-sdk /> 2009-04-27 18:52:49 -07:00
Xavier Ducrohet
fe3af81580 Fix the opt-in window for usage stat so that it works when running from ADT. 2009-04-27 15:05:06 -07:00
Raphael
aa8c266ed0 Split development/.gitignore into separate gitignore files per project.
Added missing gitignore for layoutlib_utils.
Changed mkstubs build path to use prebuilt/asm-3.1 instead of asm-3.1 project.
2009-04-26 18:12:36 -07:00
Raphael Moll
faffd247ee AI 147264: am: CL 147262 ADT #1761055: Pre-select node types when adding node in manifest & resource based on context
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 147264
2009-04-21 15:49:49 -07:00
Xavier Ducrohet
a4bdb32554 AI 146847: am: CL 146845 Fix detecting "home" activities when parsing the Android Manifest
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146847
2009-04-18 12:23:40 -07:00
Xavier Ducrohet
2013a91fad AI 146784: am: CL 146783 Update New project wizard with the less confusing "Build Target" label.
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146784
2009-04-18 12:05:57 -07:00
Xavier Ducrohet
62ca2ce538 AI 146739: am: CL 146689 Broken AVDs are now loaded by default, and we provide a way to fix one (new) type of error (wrong paths to the system image)
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146739
2009-04-17 11:18:24 -07:00
Xavier Ducrohet
268c824eb1 AI 146736: am: CL 146674 "Target" nomenclature fixes
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146736
2009-04-17 11:08:12 -07:00
Raphael Moll
06803ce63d AI 146634: am: CL 146631 ADT #1793333: fix Widget disposed in SdkTargetSelector.
This happens when you open the Windows > Prefs > Android panel
  while an SDK is initially loading or when you change the
  SDK in the pref panel. The target change listener was not
  properly removed since the field was not properly disposed.
  This also removed the multiple selection handling in the
  SdkTargetSelector, which we never use. In the unlikely event
  we want to use it later, it would be trivial to add it back.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146634
2009-04-16 16:02:29 -07:00
Raphael Moll
568b71576e AI 146597: am: CL 146595 ADT #1794560: prevent from loading more than one SDK at once.
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146597
2009-04-16 12:59:01 -07:00
Xavier Ducrohet
5df2a49717 AI 146352: am: CL 146351 Fix aidl 2 issues: aidl file change for parcelable didnt trigger a recompilation. Folder creation failed if parent folder didn't exist.
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146352
2009-04-15 11:43:56 -07:00
Raphael Moll
6ba21b98a1 AI 146336: am: CL 146335 ADT: Rework the Manifest class browser.
For ADT #1603194, it is desirable to select the Instrumentation
  Runner class from the android.jar. The class browser was filtering
  it out. The class browser has been changed like this:
  - include all source & jar package roots
  - a checkbox let the user toggle between searching only sources
  (of the project) or anything in the classpath (thus include jars.)
  The default is to include everything for the instrumentation and only
  the source for other browsers.
  Also improved a bit the filter by not iterating over the hierarchy
  and filtering out abstract classes (which was not needed before.)
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146336
2009-04-15 11:15:19 -07:00
Raphael Moll
e8d5ba4bd5 AI 146250: am: CL 146238 ADT #1761064: Properly refresh UiTreeBlock when SDK is reloaded.
The fix I did last week was just refreshing the UiRootNode
  but it turns out we need to refresh the DescriptorFilters too
  (since they are null when there's no SDK.) So the old fix was
  wrong, what we need is to generate a new tree model when the
  SDK is reloaded.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146250
2009-04-14 16:57:57 -07:00
Raphael Moll
9afdd15ac6 AI 146249: am: CL 146237 ADT #1789339: Manifest editor now displays all extra sub-elements.
Bug description is to add support for <uses-configuration>.
  Currently the Manifest editor already supports <uses-sdk> (which is an
  element node, not an attribute) by exposing it as a manifest attribute.
  That doesn't scale. So instead just provide a tree for all <manifest>
  child elements that are not handled in other pages. Currently that
  contains uses-sdk and uses-configuration but the nice part of it is that
  it will pick up automatically any new manfiest sub elements in the future.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146249
2009-04-14 16:55:07 -07:00
Xavier Ducrohet
3ff0768af1 AI 146248: am: CL 146233 Update Eclipse feature licenses to mention embedded jar files licences.
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146248
2009-04-14 16:52:16 -07:00
Xavier Ducrohet
666cfd70e0 AI 146247: am: CL 146229 Fix aidl error parsing (BUG #1789273)
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146247
2009-04-14 16:48:35 -07:00
Raphael Moll
6e00361920 AI 146035: am: CL 146034 ADT #1786173: NPW should not overwritte user-customized path
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 146035
2009-04-13 18:48:47 -07:00
Xavier Ducrohet
83d648605c AI 145520: am: CL 145229 Make the mismatch API level/minSdkVersion a warning instead of an error.
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 145520
2009-04-09 14:45:56 -07:00
Raphael Moll
7ccced6c20 AI 145487: am: CL 145204 ADT #1761137: collect_sources_for_sdk.sh fails on the Mac
It's really time to let the hackish bash/sed version go away,
  especially since it's really really slow, and provide a
  better python version instead.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 145487
2009-04-09 14:27:04 -07:00
Raphael Moll
d4ee68f401 AI 145402: am: CL 145004 ADT #1761064: Properly refresh manifest activity list on framework reload.
Issue: when the SDK gets (re)loaded, the uiRootNode changes
  in the UiTreeBlock. However the TreeViewer is using a
  content provider which root node was not updated. The fix is
  to make the content provider dynamically ask for the root
  node to the tree block. Instead of depending on the class
  directly, a new interface is passed for this.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 145402
2009-04-09 13:09:46 -07:00
Raphael Moll
c3e4be85ab AI 145099: am: CL 144940 ADT #1722971: Fix refactoring menu contribution for Eclipse 3.3/3.4 on Linux/Mac.
The fix is that a menu contribution should redefine the menu that it is
  contributing too. In this case it seems the JDT is not yet loaded or at
  least hasn't defined the menu that we're contributing too, so we need to
  define it. This definition is extracted from the jdt.ui/plugin.xml from
  3.4 in order to define the same group names in the same order.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 145099
2009-04-08 13:39:28 -07:00
Xavier Ducrohet
89f2842e04 AI 145098: am: CL 144938 Fix the classpath container cache for project targeting add-ons (bug #1775936).
Also renamed the container for add-ons to include the base platform name (so that at least a version is displayed).
  Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 145098
2009-04-08 13:36:48 -07:00
Xavier Ducrohet
45b80973b3 AI 145096: am: CL 144921 Fix add-on javadoc display in Eclipse (bug #1775744)
Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 145096
2009-04-08 13:31:14 -07:00
Raphael Moll
8ec960039f AI 144489: am: CL 144487 ADT: Add "New String" refactoring to the other Resource Chooser.
Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 144489
2009-04-03 13:35:57 -07:00
Raphael Moll
f23d59c068 AI 144488: am: CL 144486 ADT: Call the Extract String Refactoring to create a new XML String
ID when selecting a string reference.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 144488
2009-04-03 13:31:58 -07:00
Xavier Ducrohet
bb10b2afb6 AI 144382: am: CL 144366 Activity Launcher filters out unlauncheable activity (bug #1736754)
Activities that do not have an action, or that are set to not be exported cannot be launched from 'am start...' so they should not be considered when finding an activity to launch.
  Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 144382
2009-04-02 22:22:29 -07:00
Brett Chabot
6bc8491396 AI 144322: am: CL 144320 ADT: Fix debugger launch connection when debugging Android JUnit
Original author: brettchabot
  Merged from: //branches/cupcake/...

Automated import of CL 144322
2009-04-02 15:37:39 -07:00
Raphael Moll
d63db799ea AI 144284: am: CL 144283 ADT: Enhance Resource Chooser with ability to create new XML strings.
That's a first pass. There's a fair bit of refactoring
  involved, so it's split in two CLs. Next CL will add more
  functionality.
  Original author: raphael
  Merged from: //branches/cupcake/...

Automated import of CL 144284
2009-04-02 13:42:45 -07:00