private Label labelText_property;
private Text text_property;
+
+ private Label labelText_ratioTo;
+ private Text text_ratioTo;
// private TextWithLabelElement text_structure;
// private TextWithLabelElement text_property;
comboStructuralModifier = formFactory.createDefinedTermComboElement(TermType.StructureModifier, formElement, "Structural Modifier", entity.getStructureModifier(), style);
+ if (labelText_ratioTo != null){
+ labelText_ratioTo.dispose();
+ }
+ labelText_ratioTo = new Label(formElement.getLayoutComposite(), SWT.NONE);
+ labelText_ratioTo.setText("Ratio to");
+ if (text_ratioTo != null){
+ text_ratioTo.dispose();
+ }
+ text_ratioTo = new Text(formElement.getLayoutComposite(), SWT.WRAP);
+ text_ratioTo.setEditable(false);
+ text_ratioTo.setText( CharacterNodeDetailElement.getRatioToText(entity));
+ text_ratioTo.setLayoutData(LayoutConstants.FILL());
+ text_ratioTo.setForeground(ColorResources.getColor(Resources.BLACK));
+
supportsQuantitativeData = formFactory.createCheckbox(formElement, "Supports Quantitative Data", entity.isSupportsQuantitativeData(), style);
supportsCategoricalData = formFactory.createCheckbox(formElement, "Supports Categorical Data", entity.isSupportsCategoricalData(), style);
return entity.getStructure()!=null?StoreUtil.getPath(entity.getStructure()):"[no structure]";
}
+ public static String getRatioToText(Character entity) {
+ return entity.getRatioToStructure()!=null?StoreUtil.getPath(entity.getRatioToStructure()):"[no ratio to structure]";
+ }
+
@Override
public void setEntity(TermNode<Character> entity) {
super.setEntity(entity);
// }
}
+
+
// private void activateQuantitativeWidgets(){
// //disable categorical widgets
// supportsCategoricalData.setSelection(false);