Minor adaption

This commit is contained in:
Marcel Kronfeld 2011-05-04 12:04:45 +00:00
parent be6c587cac
commit ef1b2a066d
2 changed files with 4 additions and 7 deletions

View File

@ -16,12 +16,11 @@ public class PropertyMutationMixer implements java.io.Serializable {
public String m_WeightsLabel = "-";
public boolean m_NormalizationEnabled = true;
public PropertyMutationMixer(InterfaceMutation[] d, boolean selectAllOrNone) {
public PropertyMutationMixer(InterfaceMutation[] d) {
this.m_Weights = new double[d.length];
for (int i = 0; i < d.length; i++) this.m_Weights[i] = 1/((double)d.length);
this.m_AvailableTargets = d;
if (selectAllOrNone) this.m_SelectedTargets = d.clone();
else this.m_SelectedTargets = null;
this.m_SelectedTargets = null;
}
public PropertyMutationMixer(PropertyMutationMixer d) {
this.m_DescriptiveString = d.m_DescriptiveString;

View File

@ -401,12 +401,10 @@ public class PropertyMutationMixerEditor extends JPanel implements PropertyEdito
/********************************* java.beans.PropertyChangeListener *************************/
public void addPropertyChangeListener(PropertyChangeListener l) {
if (m_Support == null) m_Support = new PropertyChangeSupport(this);
m_Support.addPropertyChangeListener(l);
}
public void removePropertyChangeListener(PropertyChangeListener l) {
if (m_Support == null) m_Support = new PropertyChangeSupport(this);
m_Support.removePropertyChangeListener(l);
}
/** This will wait for the GenericObjectEditor to finish