}\r
\r
if (usingAlternateXml) {\r
- String info = "This repository requires a more recent version of the Tools. Please update.";\r
+\r
+ // Is the manager running from inside ADT?\r
+ // We check that com.android.ide.eclipse.adt.AdtPlugin exists using reflection.\r
+\r
+ boolean isADT = false;\r
+ try {\r
+ Class<?> adt = Class.forName("com.android.ide.eclipse.adt.AdtPlugin"); //$NON-NLS-1$\r
+ isADT = (adt != null);\r
+ } catch (ClassNotFoundException e) {\r
+ // pass\r
+ }\r
+\r
+ String info;\r
+ if (isADT) {\r
+ info = "This repository requires a more recent version of ADT. Please update the Eclipse Android plugin.";\r
+ mDescription = "This repository requires a more recent version of ADT, the Eclipse Android plugin.\nYou must update it before you can see other new packages.";\r
+\r
+ } else {\r
+ info = "This repository requires a more recent version of the Tools. Please update.";\r
+ mDescription = "This repository requires a more recent version of the Tools.\nYou must update it before you can see other new packages.";\r
+ }\r
+\r
mFetchError = mFetchError == null ? info : mFetchError + ". " + info;\r
- mDescription = "This repository requires a more recent version of the Tools.\nYou must update it before you can see other new packages.";\r
}\r
\r
monitor.incProgress(1);\r