The standalone MDR now returns the default repository for any repository name passed to the getRepository call. BLD200404181800
authormmatula@netbeans.org
Fri, 16 Apr 2004 11:50:15 +0000
changeset 1508676de1c21752
parent 1507 5d642d6f702f
child 1509 a6e95c938728
The standalone MDR now returns the default repository for any repository name passed to the getRepository call.
mdr/src/org/netbeans/mdr/NBMDRManagerImpl.java
     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() {