@Nullable public IAndroidTarget findTargetByName(@NotNull String name) { for (IAndroidTarget target : getTargets()) { if (target.getName().equals(name)) { return target; } } return null; }
@Nullable private String getOldPlatformToolsFolderPath() { String platformLocation; if (myWrapee.isPlatform()) { platformLocation = myWrapee.getLocation(); } else { IAndroidTarget parent = myWrapee.getParent(); platformLocation = parent != null ? parent.getLocation() : null; } if (platformLocation == null) { return null; } return platformLocation + SdkConstants.FD_TOOLS + File.separator; }
@Nullable public IAndroidTarget findTargetByApiLevel(@NotNull String apiLevel) { IAndroidTarget candidate = null; for (IAndroidTarget target : getTargets()) { if (AndroidSdkUtils.targetHasId(target, apiLevel)) { if (target.isPlatform()) { return target; } else if (candidate == null) { candidate = target; } } } return candidate; }
@Override public String getPath(int pathId) { String path = myAlternativePaths.get(pathId); if (path != null) { return path; } return myWrapee.getPath(pathId); }
@Override public boolean equals(Object obj) { if (!(obj instanceof MyTargetWrapper)) { return false; } MyTargetWrapper other = (MyTargetWrapper) obj; return myWrapee.equals(other.myWrapee); }
@Override public Integer getProperty(String name, Integer defaultValue) { return myWrapee.getProperty(name, defaultValue); }
@Override public String getProperty(String name) { return myWrapee.getProperty(name); }
@Override public String[] getPlatformLibraries() { return myWrapee.getPlatformLibraries(); }
@Override public IOptionalLibrary[] getOptionalLibraries() { return myWrapee.getOptionalLibraries(); }
@Override public String getVendor() { return myWrapee.getVendor(); }
@Override public String getShortClasspathName() { return myWrapee.getShortClasspathName(); }
@Override public int getUsbVendorId() { return myWrapee.getUsbVendorId(); }
@Override public ISystemImage getSystemImage(String abiType) { return myWrapee.getSystemImage(abiType); }
@Override public IAndroidTarget getParent() { return myWrapee.getParent(); }
@Override public boolean isPlatform() { return myWrapee.isPlatform(); }
@Override public int getRevision() { return myWrapee.getRevision(); }
@Override public String getVersionName() { return myWrapee.getVersionName(); }
@Override public AndroidVersion getVersion() { return myWrapee.getVersion(); }
@Override public String getDescription() { return myWrapee.getDescription(); }
@Override public Boolean getProperty(String name, Boolean defaultValue) { return myWrapee.getProperty(name, defaultValue); }
@Override public Map<String, String> getProperties() { return myWrapee.getProperties(); }
@Override public String hashString() { return myWrapee.hashString(); }
@Override public ISystemImage[] getSystemImages() { return myWrapee.getSystemImages(); }
@Override public String getFullName() { return myWrapee.getFullName(); }
@Override public boolean canRunOn(IAndroidTarget target) { return myWrapee.canRunOn(target); }
@Override public boolean hasRenderingLibrary() { return myWrapee.hasRenderingLibrary(); }
@Override public int compareTo(IAndroidTarget o) { return myWrapee.compareTo(o); }
@Override public String[] getSkins() { return myWrapee.getSkins(); }
@Override public int hashCode() { return myWrapee.hashCode(); }
@Override public String getDefaultSkin() { return myWrapee.getDefaultSkin(); }