The standalone MDR now returns the default repository for any repository name passed to the getRepository call.
1.1 --- a/mdr/src/org/netbeans/mdr/NBMDRManagerImpl.java Fri Apr 16 11:47:44 2004 +0000
1.2 +++ b/mdr/src/org/netbeans/mdr/NBMDRManagerImpl.java Fri Apr 16 11:50:15 2004 +0000
1.3 @@ -32,7 +32,7 @@
1.4 /** Returns the default repository. In this implementation the default
1.5 * repository is the only repository managed by this manager. */
1.6 public MDRepository getDefaultRepository() {
1.7 - return getRepository(REPOSITORY_DEFAULT);
1.8 + return getRepository(null);
1.9 }
1.10
1.11 /**
1.12 @@ -43,11 +43,11 @@
1.13 * @return the default repository of <code>null</code>
1.14 */
1.15 public MDRepository getRepository(String name) {
1.16 - if (REPOSITORY_DEFAULT.equals(name)) {
1.17 +// if (REPOSITORY_DEFAULT.equals(name)) {
1.18 return rep;
1.19 - } else {
1.20 - return null;
1.21 - }
1.22 +// } else {
1.23 +// return null;
1.24 +// }
1.25 }
1.26
1.27 public String[] getRepositoryNames() {