86f78976ed9cd29c76dea973b6a2b6262f7cd98d |
|
16-Aug-2012 |
Raphael Moll <ralf@android.com> |
ADT: Detect when SDK platforms/addons might have changed. 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
|
279445ad4561895db41309681de8dd1544d0ae22 |
|
26-Jul-2012 |
Tor Norbye <tnorbye@google.com> |
Add support for icon generators in templates This CL adds an <icon> element to the template xml file which allows the template to request the icon generator to be chained to the wizard to generate icons instead of using hardcoded ones. The variable ${copyIcons} will be set in the template context if for some reason the icons were not generated (for example, because the surrounding template infrastructure does not support icon generation.) Example: <globals file="globals.xml.ftl" /> <execute file="recipe.xml.ftl" /> + <icons + type="notification" + name="${activityToLayout(viewClass)}" + background="#ff00ff" + foreground="#ffff00" + shape="square" + trim="true" + padding="5" + /> This CL also removes some obsolete code from the graphic generators and wizards, and changes the default icon used by new projects from the white circle with a blue shape to the default packaging icon (which you can then further customize.) Change-Id: Ia039bf511b9939d01e16265449c1ad6c930279c2
|
802de810020fba3f86282cd1d66597a2a41698e3 |
|
16-Jun-2012 |
Tor Norbye <tnorbye@google.com> |
Preview support in the templates This changeset adds a Preview page to the end of the template wizards which shows the changes to be applied to the project - first the files which were edited (merged), such as the manifest file in the case of a new activity, and second the text files to be created, and third the binary files to be created. In addition, the user can now uncheck any of these changes, if for example the manifest file edit isn't wanted. Furthermore, the now that the changes are computed up front, the phase of applying the changes is run in the background with a progress bar in the New-wizard. There's also some consolidation of the various template wizards to handle things like the upgrade-page and the dependency-page in one place. Infrastructure wise this changes the template instantiation from being based on File manipulation to using the refactoring infrastructure's change support, which should be more reliable. It also fixes a bug where projects were marked as library projects which should not have be. Change-Id: I496761f01c7ec28bf9170e4d1041211e3ebe285b
|