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
This commit is contained in:
Xavier Ducrohet
2009-04-08 13:36:48 -07:00
committed by The Android Open Source Project
parent 3489bba692
commit 89f2842e04
4 changed files with 57 additions and 33 deletions

View File

@@ -124,6 +124,10 @@ final class AddOnTarget implements IAndroidTarget {
return String.format("%1$s (%2$s)", mName, mVendor);
}
public String getClasspathName() {
return String.format("%1$s [%2$s]", mName, mBasePlatform.getName());
}
public String getDescription() {
return mDescription;
}

View File

@@ -96,6 +96,11 @@ public interface IAndroidTarget extends Comparable<IAndroidTarget> {
*/
String getFullName();
/**
* Returns the name to be displayed when representing all the libraries this target contains.
*/
String getClasspathName();
/**
* Returns the description of the target.
*/

View File

@@ -104,6 +104,10 @@ final class PlatformTarget implements IAndroidTarget {
public String getFullName() {
return mName;
}
public String getClasspathName() {
return mName;
}
/*
* (non-Javadoc)