m_Editing = false;
if (m_PD == null) {
int x = getLocationOnScreen().x;
int y = getLocationOnScreen().y;
if (PropertyDialog.getParentDialog(this) != null)
m_PD = new PropertyDialog(
PropertyDialog.getParentDialog(this),
m_ClassifierEditor, x, y);
else
m_PD = new PropertyDialog(
PropertyDialog.getParentFrame(this),
m_ClassifierEditor, x, y);
m_PD.setVisible(true);
} else {
m_PD.setVisible(true);
}
} else if (e.getSource() == m_EditBut) {
if (m_List.getSelectedValue() != null) {
m_ClassifierEditor.setClassType(weka.classifiers.Classifier.class);
// m_PD.getEditor().setValue(m_List.getSelectedValue());
m_ClassifierEditor.setValue(m_List.getSelectedValue());
m_Editing = true;
if (m_PD == null) {
int x = getLocationOnScreen().x;
int y = getLocationOnScreen().y;
if (PropertyDialog.getParentDialog(this) != null)
m_PD = new PropertyDialog(
PropertyDialog.getParentDialog(this),
m_ClassifierEditor, x, y);
else
m_PD = new PropertyDialog(
PropertyDialog.getParentFrame(this),
m_ClassifierEditor, x, y);
m_PD.setVisible(true);
} else {
m_PD.setVisible(true);