added explanatory comment to parametersetup-dialog-change
@@ -30,7 +30,6 @@ import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Map;
-
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JCheckBox;
@@ -46,7 +45,6 @@ import javax.swing.event.DocumentListener;
import javax.swing.event.HyperlinkEvent;
import javax.swing.event.HyperlinkListener;
import javax.swing.text.JTextComponent;
-
import net.sf.mzmine.main.MZmineCore;
import net.sf.mzmine.parameters.Parameter;
import net.sf.mzmine.parameters.ParameterSet;
@@ -314,6 +312,7 @@ public class ParameterSetupDialog extends JDialog implements ActionListener, Doc
JComponent component = parametersAndComponents.get(p.getName());
+ // if a parameter is a HiddenParameter it does not necessarily have component
if (component != null)
up.setValueFromComponent(component);
}
