diff options
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java index d10b981..a9336b2 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/AdtPlugin.java @@ -580,16 +580,21 @@ public class AdtPlugin extends AbstractUIPlugin { if (sPlugin != null) { bundle = sPlugin.getBundle(); } else { + AdtPlugin.log(IStatus.WARNING, "ADT Plugin is missing"); //$NON-NLS-1$ return null; } } // attempt to get a file to one of the template. - String path = AndroidConstants.WS_SEP + filepath; + String path = filepath; + if (!path.startsWith(AndroidConstants.WS_SEP)) { + path = AndroidConstants.WS_SEP + path; + } + URL url = bundle.getEntry(path); if (url == null) { - AdtPlugin.log(IStatus.INFO, "Bundle file URL not found at path '%s'", path); + AdtPlugin.log(IStatus.INFO, "Bundle file URL not found at path '%s'", path); //$NON-NLS-1$ } return url; |