Changeset 9645


Ignore:
Timestamp:
2005-04-12T11:20:28+12:00 (19 years ago)
Author:
kjdon
Message:

assigned options previously sometimes went to the top of the list, sometimes they didn't and it was a bit confusing, so all options now belong to their original plugin owner, and stay at teh same place in the list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/Plugin.java

    r9302 r9645  
    6767        //DebugStream.println("Rebuilding existing argument: " + argument.getName());
    6868        known_arguments.put(argument.getName(), argument);
    69         if (argument.isAssigned() || base_plugin == null) {
    70         // if the arg is assigned, the current plugin now becomes its owner, and we add it to the front of the ArrayList of args. But otherwise, it will retain its old owner, and we will add it in the correct place from the base plugin
     69        if (base_plugin == null) {
     70        // otherwise they will all be added in the next step
    7171        argument.setOwner(name);
    7272        add(argument);
     
    9797            existing_argument.setMinimum(base_argument.getMinimum());
    9898            existing_argument.setMaximum(base_argument.getMaximum());
    99             if (!existing_argument.isAssigned()) {
    100             // here we give it back its original owner and add it to the list. If it is assigned, these two things were done already
    101             existing_argument.setOwner(base_argument.getOwner());
    102             add(existing_argument);
    103             }
     99            existing_argument.setOwner(base_argument.getOwner());
     100            add(existing_argument);
    104101           
    105102        }
Note: See TracChangeset for help on using the changeset viewer.