Changeset 9302


Ignore:
Timestamp:
2005-03-07T16:36:13+13:00 (19 years ago)
Author:
mdewsnip
Message:

Fix to the nasty bug where plugin options are not remembered.

File:
1 edited

Legend:

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

    r9126 r9302  
    2929import java.io.*;
    3030import java.util.*;
     31import org.greenstone.gatherer.DebugStream;
    3132import org.greenstone.gatherer.util.StaticStrings;
    3233import org.w3c.dom.*;
     
    112113            argument_element.setAttribute(StaticStrings.ASSIGNED_ATTRIBUTE, StaticStrings.FALSE_STR);
    113114            argument_element.setAttribute(StaticStrings.CUSTOM_ATTRIBUTE, StaticStrings.FALSE_STR);
    114             new_argument.setElement(argument_element);
    115115            // All done. Add it.
    116116            // if we are not in the first collection opened, then this
    117117            /// will belong to a different document, so need to import
    118118            // it.
    119             element.appendChild(element.getOwnerDocument().importNode(argument_element, true));
     119            Node new_element = element.getOwnerDocument().importNode(argument_element, true);
     120            new_argument.setElement((Element) new_element);
     121            element.appendChild(new_element);
    120122            add(new_argument);
    121123        }
Note: See TracChangeset for help on using the changeset viewer.