/** * Sets the path of properties taken to get to the custom property to iterate * over. * * @param newPropertyPath an array of PropertyNodes */ @Override public void setPropertyPath(PropertyNode[] newPropertyPath) { super.setPropertyPath(newPropertyPath); m_baseExperiment.setPropertyPath(newPropertyPath); }
/** * Sets the path of properties taken to get to the custom property to iterate * over. * * @param newPropertyPath an array of PropertyNodes */ @Override public void setPropertyPath(PropertyNode[] newPropertyPath) { super.setPropertyPath(newPropertyPath); m_baseExperiment.setPropertyPath(newPropertyPath); }
m_Exp.setPropertyPath(propertyPath); m_Exp.setPropertyPath(propertyPath);
/** * Gets the user to select a property of the current resultproducer. * * @return APPROVE_OPTION if the selection went OK, otherwise the selection * was cancelled. */ protected int selectProperty() { final PropertySelectorDialog jd = new PropertySelectorDialog(null, m_Exp.getResultProducer()); jd.setLocationRelativeTo(this); int result = jd.showDialog(); if (result == PropertySelectorDialog.APPROVE_OPTION) { System.err.println("Property Selected"); PropertyNode[] path = jd.getPath(); Object value = path[path.length - 1].value; PropertyDescriptor property = path[path.length - 1].property; // Make an array containing the propertyValue Class<?> propertyClass = property.getPropertyType(); m_Exp.setPropertyPath(path); m_Exp.setPropertyArray(Array.newInstance(propertyClass, 1)); Array.set(m_Exp.getPropertyArray(), 0, value); // Pass it to the arrayeditor m_ArrayEditor.setValue(m_Exp.getPropertyArray()); m_ArrayEditor.getCustomEditor().repaint(); System.err.println("Set new array to array editor"); } else { System.err.println("Cancelled"); } return result; }
m_Exp.setPropertyPath(propertyPath); m_Exp.setPropertyPath(propertyPath);
/** * Gets the user to select a property of the current resultproducer. * * @return APPROVE_OPTION if the selection went OK, otherwise the selection * was cancelled. */ protected int selectProperty() { final PropertySelectorDialog jd = new PropertySelectorDialog(null, m_Exp.getResultProducer()); jd.setLocationRelativeTo(this); int result = jd.showDialog(); if (result == PropertySelectorDialog.APPROVE_OPTION) { System.err.println("Property Selected"); PropertyNode[] path = jd.getPath(); Object value = path[path.length - 1].value; PropertyDescriptor property = path[path.length - 1].property; // Make an array containing the propertyValue Class<?> propertyClass = property.getPropertyType(); m_Exp.setPropertyPath(path); m_Exp.setPropertyArray(Array.newInstance(propertyClass, 1)); Array.set(m_Exp.getPropertyArray(), 0, value); // Pass it to the arrayeditor m_ArrayEditor.setValue(m_Exp.getPropertyArray()); m_ArrayEditor.getCustomEditor().repaint(); System.err.println("Set new array to array editor"); } else { System.err.println("Cancelled"); } return result; }
@Override public void propertyChange(PropertyChangeEvent e) { m_Exp.setResultProducer((ResultProducer) m_RPEditor.getValue()); m_Exp.setUsePropertyIterator(false); m_Exp.setPropertyArray(null); m_Exp.setPropertyPath(null); m_GeneratorPropertyPanel.setExperiment(m_Exp); repaint(); } });
@Override public void propertyChange(PropertyChangeEvent e) { m_Exp.setResultProducer((ResultProducer) m_RPEditor.getValue()); m_Exp.setUsePropertyIterator(false); m_Exp.setPropertyArray(null); m_Exp.setPropertyPath(null); m_GeneratorPropertyPanel.setExperiment(m_Exp); repaint(); } });
m_advanceIteratorFirst.setEnabled(true); exp.setPropertyPath(propPath); exp.setPropertyArray(propArray); exp.setUsePropertyIterator(iteratorOn);
m_advanceIteratorFirst.setEnabled(true); exp.setPropertyPath(propPath); exp.setPropertyArray(propArray); exp.setUsePropertyIterator(iteratorOn);