aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Select AVD to run an app based on minSdkVersionSiva Velusamy2012-09-111-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The list of AVD's capable of running a particular application should be determined based on the application's minSdkLevel rather than the current build target. Change-Id: Id6428652ebe0ceb8e1a81e90e2146f1aab44c975
* | | | Merge "35959: ADT Layout Editor should fill id field for Fragments"Tor Norbye2012-09-111-2/+0
|\ \ \ \
| * | | | 35959: ADT Layout Editor should fill id field for FragmentsTor Norbye2012-09-111-2/+0
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Fragment tags should include an ID, as described in http://developer.android.com/guide/components/fragments.html Change-Id: I23001a6082db879443b289ef6fc3218b1525627a
* | | | Merge "NPW Sample Wizard: list extras with a "sample" directory."Raphael Moll2012-09-112-48/+99
|\ \ \ \ | |/ / / |/| | |
| * | | NPW Sample Wizard: list extras with a "sample" directory.Raphael Moll2012-09-112-48/+99
| |/ / | | | | | | | | | | | | | | | | | | | | | Some extras have just a single "sample" directory instead of having a samples/<sample_name> directory. Support this and list them as valid samples. Change-Id: I25bc59db0b9853d98385cca98f70bf261558fd8b
* | | Attempt to work around XML editor state bugTor Norbye2012-09-111-4/+19
|/ / | | | | | | | | | | See https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421 Change-Id: I2b0c351bd85b7eb36bfca1fa975fffa8634a7445
* | Collapse layout properties by defaultTor Norbye2012-09-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset collapses the layout property category by default in the property sheet. If you for example select a button in a RelativeLayout, the entire property sheet would be filled with the various layout parameters in a RelativeLayout, which meant you'd need to collapse or scroll immediately anyway. Even in other layouts, you typically only see properties such as width and height there, which can usually be better manipulated in the layout actions bar. This just makes the property sheet more useful since it shows the other common attributes closer to the top. Change-Id: I27d27f0453ac1b6897b80b0001e56e8690198bbb
* | Merge "Default action for view rules."Tor Norbye2012-09-056-17/+231
|\ \
| * | Default action for view rules.Tor Norbye2012-09-046-17/+231
| | | | | | | | | | | | | | | | | | | | | | | | For now, text-oriented widgets declare their default action to be to set the text attribute. Also hook up the default rename keybinding to setting the id. Change-Id: I14e8e06d0842759b1ac05e7e9494deb30b3cc40f
* | | Merge "Refactor SDK Manager into "core" vs "ui" packages."Raphael Moll2012-09-052-2/+2
|\ \ \ | |/ / |/| |
| * | Refactor SDK Manager into "core" vs "ui" packages.Raphael Moll2012-09-042-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just a refactor to move classes around. No functionality is actually changed. The sdkman2 package contains classes that are now sorted between "ui" and "core" packages. The core stuff has no UI dependency and can be used in unit tests, whereas the ui stuff needs SWT somehow. In a later CL some of the UI stuff will be changed to make it easier to mock for testing. Change-Id: I86606df7992de6ca6ae1df95f7b712cbba4fd3b6
* | | Merge "Suppress errors for missing markers"Tor Norbye2012-09-041-2/+5
|\ \ \
| * | | Suppress errors for missing markersTor Norbye2012-09-041-2/+5
| |/ / | | | | | | | | | Change-Id: I2d34f5a4ebeaff0a75abc7cdbb41132d860c95eb
* | | Improve render exception error messagesTor Norbye2012-08-316-11/+218
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When exceptions are encountered during layout rendering, the user experience isn't very good - the exceptions are sent to the IDE log, and the layout editor view adds the error message from the exception (which can sometimes be something like just "2", which is the case for an ArrayIndexOutOfBoundsException for example). This changeset improves this a bit: * First, when the error message is just an exception error message, it's prefixed by a message stating that an exception was raised during layout rendering. * Second, the first exception encountered is now shown in the layout editor itself. Only the frames that are part of the android view hierarchy is shown; all the frames from layoutlib and on down into the IDE are omitted. Frames that are probably part of the user's code (meaning they're not in the android.* or java.* namespaces) are hyperlinkable. * This also includes exceptions encountered during class initialization. In this case, the tip message that View#isInEditMode can be used to do conditional code is displayed in bold. This changeset also fixes some bugs in the SourceRevealer such that it can handle constructors, and such that it will use the line number to pinpoint a line within a method (as long as the line number is in the correct range). Change-Id: I43b635eb24b8e0e64988958c56bdb7dbc1af7221
* | Avoid "Marker id: 123456789 not found" errorsTor Norbye2012-08-312-5/+18
| | | | | | | | | | | | | | | | | | | | We have some code which runs asynchronously to add or clean up error markers. In some cases this code runs after a project has been closed or deleted, which results in errors. Guard these marker access points with an IResource.isAccessible() check (which performs both exists(), and for projects, isOpen()). Change-Id: Ie4884db13b1e00236c1c219d95c3544fcdee9610
* | Close XML editors when files are deleted or projects are closedTor Norbye2012-08-316-194/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing hooks for closing the editor when the underlying file is deleted was not working correctly, and was inefficient (since each editor added their own global resource listener, so every editor would find out about every other editor's file changes). Instead, this generalizes the single editor listener which was used to initialize editor types such that it also listens for deletion, and then finds any open editor mapped to that file. It also hooks up to the pre-close events for projects and closes all files related to the project as well. This will hopefully fix this issue as well: 20836: Can't delete a layout XML via Package Explorer > Delete if it has an error Finally, it removes a bunch of now obsolete logging code for an issue which seems to be permanently fixed. Change-Id: I90b38984639a605755f2d67ca2413cc925f730d1
* | Merge "Add Translation dialog"Tor Norbye2012-08-306-6/+686
|\ \
| * | Add Translation dialogTor Norbye2012-08-306-6/+686
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds a dialog to the locale menu in the configuration chooser which makes it easy to add a new language into the set of languages used by the project. Also add some null annotations. Change-Id: I70ea2f623e6c56684e7b2a51b391f472bf31529b
* | | Fix keybindings in manifest editor (issue 36540)Tor Norbye2012-08-302-2/+53
|/ / | | | | | | | | | | | | Unbind the text editor keybindings when any page other than the text editor itself is shown. Change-Id: I1681de20113b3c0627a23872100632f8d28bb698
* | Minor tweaks and typosTor Norbye2012-08-282-2/+2
| | | | | | | | Change-Id: I46630c51a4f055222fb614d73419cb28272b87de
* | Fix property sheet value completionTor Norbye2012-08-279-219/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset fixes the value completion such that you can add custom values into properties that also have enum fields. Rather than have separate completion routines for properties based on whether they contain an enum, a flag, a reference, etc., have a single completer which considers all the various formats and combines the results. In addition to combining results, this now also offers completion on dimensions, and offers theme attribute values for references as well. Change-Id: Idbc1799a34b3a3f14ea567654953925bf12afb8f
* | Add target SDK setting to the New Project wizardTor Norbye2012-08-2711-309/+710
| | | | | | | | | | | | | | | | | | | | | | Since the first page is getting too large, rather than add one more, split some of the contents into a second page. In addition, the new project dialog was missing a workset chooser like the old wizard had, so add one in on the new page now that we have plenty room for it. Some other tweaks as well based on input from Xav. Change-Id: I4dd2334b2f5af623cba4bbb3a6d2d0b053d1763f
* | Merge "31340: ADT default for opening editors in textual mode"Tor Norbye2012-08-272-0/+29
|\ \
| * | 31340: ADT default for opening editors in textual modeTor Norbye2012-08-272-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you reopen a file you've already opened in the past, ADT will open the file on the same page (graphical or XML) that you left it at. However, new files are always opened graphically. This changeset will change this such that if you manually switch to XML, new files opened from that point open in XML, and if you switch to graphical mode, new files are opened in graphical mode. This will hopefully help those users who prefer to work in XML mode without negatively impacting those who prefer to work in graphical mode. Change-Id: Ib229b22c31899c1cd9520e6ab48f5902d2782844
* | | Merge "Inline devices if there is only one manufacturer"Tor Norbye2012-08-271-5/+7
|\ \ \
| * | | Inline devices if there is only one manufacturerTor Norbye2012-08-271-6/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the device pulldown shows a single item, "Generic", which itself contains the various generic devices. This CL tweaks the display code such that if there is just a single manufacturer, the items are inlined in the top level menu. Change-Id: If150becaa7dfe225f9ec8e861be1d67ede4f30c4
* | | Merge "Clean up device listeners"Tor Norbye2012-08-271-3/+31
|\ \ \
| * | | Clean up device listenersTor Norbye2012-08-241-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The configuration composite listens for device changes, but the listeners were not unregistered when the layouts were closed. Also, initDevices() could be called more than once, which made the same listener be registered more than once. Change-Id: Ia679cf1b5b5a394748034277ef002af0107ba3e1
* | | | Merge "Don't create a new title string for first activity in prj"Tor Norbye2012-08-273-1/+9
|\ \ \ \ | |/ / /
| * | | Don't create a new title string for first activity in prjTor Norbye2012-08-233-1/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an activity is created as part of the New Project wizard, don't ask the user for an activity title; instead, use the project's name (@string/app_name). Since I had to rev the format (to pass the is-new-project context I also cleaned up the compatibility to-string handling of booleans that should no longer be necessary.) This fixes issue 36624: App name issue Change-Id: I6b88b850e0147307db8a9e1585d670e31c261b4c
* | | Use simple markup for bold and monospace in lint issuesTor Norbye2012-08-232-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | The explanation text for issues can now contain some simple markup such as * around sentences for bold and ` for monospace. In the HTML report this is converted to HTML markup using <b> and <code> spans, as well as <a> for http:// links. Change-Id: I875a55a0ab9a61c2e8bb493ad94d5e4d51dd1072
* | | Warn about non-recent targetSdkVersionsTor Norbye2012-08-233-4/+20
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset changes the default targetSdkVersion written into new projects from being hardcoded to "15" to being the same level as the build target's API level. It also adds a new lint check which looks at the targetSdkVersion and complains if it's not the same as the highest known version (currently 16). The issue explanation points to the javadocs for the android.os.Build.VERSION_CODES class for details on how to upgrade the app. Change-Id: I00c2bd7cd8fa239b9fd1de9b2d35ff9faf87d25f
* | Don't ask about Hirarchical Parent Activity in new projectsTor Norbye2012-08-212-2/+18
| | | | | | | | | | | | | | | | | | | | | | This changeset hides the "Hierarchical Parent" setting from the activity panel in the New Project Wizard. It also adds "Optional" as a text field hint (where SWT supports it) on this field when it's present (and on any other text fields whose tempalte metadata states that they allow empty strings). Change-Id: Id3334357b62fdaedcc8eb2ac08dac9a1f005efc6
* | Add a default icon for templates without iconsTor Norbye2012-08-213-18/+41
| | | | | | | | Change-Id: Ic069160c1f6551238f50a13b3d206431a7284f5f
* | Fix nullability annotationsTor Norbye2012-08-215-14/+17
| | | | | | | | | | | | | | | | | | | | | | Eclipse 3.8/4.2 requires that any method which overrides another method with a @NonNull parameter (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=381443). This changeset adds @NonNull on various overriding methods in newly added code such that Eclispe 4.2 doesn't show errors. Change-Id: Ice4a4b4dc31ba68c4e0911bb37c15da090076a0d
* | Merge "Make @TargetApi quickfix use VERSION_CODES instead of ints"Tor Norbye2012-08-212-21/+76
|\ \
| * | Make @TargetApi quickfix use VERSION_CODES instead of intsTor Norbye2012-08-092-21/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The quickfix to insert a @TargetApi annotation for an API violation will now insert import android.os.Build; (if necessary) ... @TargetApi(Build.VERSION_CODES.GINGERBREAD) etc. Other than the fact that we're using the above format in our templates, this also has the advantage that code completion and show documentation (F2) with the caret on the field will show the compatibility information for that release, which isn't the case for raw integers. Change-Id: I233473bf6df706dc73bc692af7ee059287bc22f1
* | | Use org.eclipse.platform's version for ping/sdkstats.Siva Velusamy2012-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, we use the version of the ResourcePlugin as a way to identify the version of Eclipse. However, both Eclipse 4.2 and 3.8 have the same 3.8 version of the resources plugin. The version of org.eclipse.platform seems like it will resolve this issue. Change-Id: Ib9325873b9b37b3b02b25b991cf13e469cedcfd0
* | | Merge "junit: Rework support for parallel junit launch."Siva Velusamy2012-08-203-121/+138
|\ \ \
| * | | junit: Rework support for parallel junit launch.Siva Velusamy2012-08-173-121/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A previous commit (2c57cbea0d663b) introduced support for running Junit tests concurrently on all connected devices. It relied on changing the TestIdentifier to store device information, and having a single listener that listens to test events from all devices. The change to TestIdentifier caused issues with some users of ddmlib in cases where the device info is not available all the time. This patch reverts all the changes in ddmlib, and moves the knowledge of what device tests are being run to the listener layer in ADT. So now we have a per device test listener that knows only about tests run on that device. Change-Id: Iffedcb38cdf21e349fbe38ecf9a654060b469b04
* | | | Unify all loggers in the sdk tools.Xavier Ducrohet2012-08-1710-28/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed ILogger from ide_common Removed ISdkLog (and implementations) from sdklib Moved all existing code to com.android.utils.ILogger which is located in common. Change-Id: Icd674d4b8d10f6ae8b60a83acb43cc53c7a52137
* | | | ADT: Detect when SDK platforms/addons might have changed.Raphael Moll2012-08-1513-6/+103
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new functionality in SdkManager to keep track of the existing platforms/addons folder and detect later whether they might have changed. The check is a quick sanity check done on the presence of the target directory, its last-modified timestamp as well as the one of the source.properties. Whenever an SDK Manager instance updates an existing target or add/removes a new one, a change will be detected. Non-goal: this does not trigger when a user manually modifies the content of a target (e.g. its data files). A method is added in AdtPlugin to reload the SDK if the above method detects the targets have potentially changed. This is then used when there's a user interaction with something that depends on the latest state of the SDK, namely: opening XML files (layout, manifest, etc.) or opening a wizard (AVD manager, new project, new template.) These wizards already register for sdk/target change listeners and are notified asynchronously if the SDK has changed and is refreshed. Change-Id: Ia343c26321c0cb39c28a7c5d570c94e543344401
* | | Merge "ADT: run external SDK Manager."Raphael Moll2012-08-142-60/+213
|\ \ \
| * | | ADT: run external SDK Manager.Raphael Moll2012-08-102-60/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the user invokes the SdkManagerAction (via the icon toolbar) this now runs the external SDK Manager (instead of the direct Java version). If the SDK isn't set properly, this triggers the SDK check in AdtPlugin. This check tries to display some help to setup the SDK -- typically opening preferences. If for some reason this check were to suggest to run the sdk manager there's a fallback to using the internal version. Also when starting the sdk manager as an external app on windows there's a 2-3 seconds delay before the SDK Manager window appears. To give some feedback to the user that the action is on-going a jface progress dialog is shown that will automatically close 3 seconds later. Change-Id: I1aae5dbc5ede6299fc95f81d8c3a94288861d55c
* | | | More refactoring.Xavier Ducrohet2012-08-13120-196/+197
|/ / / | | | | | | | | | | | | | | | | | | Move stuff out of sdklib into common and ide_common. Remove androidprefs and move the one class into common. Change-Id: I71d126a13cf2ba413692e29616f4968a37d7b33a
* | | Fix build.Roman Nurik2012-08-101-1/+1
| | | | | | | | | | | | | | | | | | Broken by Ic5992773207c92426a9f37409536d74b81dd645b Change-Id: Ifd19f71c1ebfa1a3aaf8f812eccbadaee27c8f90
* | | Merge "Disable padding for action bar icons created from clipart."Roman Nurik2012-08-101-0/+1
|\ \ \
| * | | Disable padding for action bar icons created from clipart.Roman Nurik2012-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This disables the automatic padding (target rectangle) used by the asset studio when using clipart as the source image. Change-Id: Ic5992773207c92426a9f37409536d74b81dd645b
* | | | Force device list updates in the GLE to happen on the UI threadMichael Wright2012-08-091-8/+17
| |/ / |/| | | | | | | | Change-Id: Ia9624f02c0ca62891b2c35c7d6bfe78130141e1b
* | | Merge "Fix fragment handling in templates"Tor Norbye2012-08-092-2/+11
|\ \ \