use of eu.esdihumboldt.hale.ui.scripting.groovy.InstanceTestValues in project hale by halestudio.
the class RegexAnalysisParameterPage method setDefaultData.
private void setDefaultData(Cell unfinishedCell) {
InstanceTestValues instanceTestValues = new InstanceTestValues();
Entity entity = CellUtil.getFirstEntity(unfinishedCell.getSource());
if (entity != null) {
EntityDefinition edef = entity.getDefinition();
if (edef instanceof PropertyEntityDefinition) {
PropertyEntityDefinition property = (PropertyEntityDefinition) edef;
Object object = instanceTestValues.get(property);
if (object != null) {
String sampleData = object.toString();
_inputText.setText(sampleData);
}
}
}
}
Aggregations