- Label lblStructure = new Label(formElement.getLayoutComposite(), style);
- lblStructure.setText("Structure");
- Label lblStructureText = new Label(formElement.getLayoutComposite(), style);
- lblStructureText.setText(StoreUtil.getPath(entity.getStructure()));
- lblStructureText.setForeground(ColorResources.getColor(Resources.BLACK));
- Label lblProperty = new Label(formElement.getLayoutComposite(), style);
- lblProperty.setText("Property");
- Label lblPropertyText = new Label(formElement.getLayoutComposite(), style);
- lblPropertyText.setForeground(ColorResources.getColor(Resources.BLACK));
- lblPropertyText.setText(StoreUtil.getPath(entity.getProperty()));
+ if (labelText_property != null){
+ labelText_structure.dispose();
+ }
+ labelText_structure = new Label(formElement.getLayoutComposite(), SWT.NONE);
+ labelText_structure.setText("Structure");
+ if (text_structure != null){
+ text_structure.dispose();
+ }
+ text_structure = new Text(formElement.getLayoutComposite(), SWT.WRAP);
+ text_structure.setText( CharacterNodeDetailElement.getStructureText(entity));
+ text_structure.setEditable(false);
+ text_structure.setLayoutData(LayoutConstants.FILL());
+ text_structure.setForeground(ColorResources.getColor(Resources.BLACK));
+ if (labelText_property != null){
+ labelText_property.dispose();
+ }
+ labelText_property = new Label(formElement.getLayoutComposite(), SWT.NONE);
+ labelText_property.setText("Property");
+ if (text_property != null){
+ text_property.dispose();
+ }
+ text_property = new Text(formElement.getLayoutComposite(), SWT.WRAP);
+ text_property.setEditable(false);
+ text_property.setText( CharacterNodeDetailElement.getPropertyText(entity));
+ text_property.setLayoutData(LayoutConstants.FILL());
+ text_property.setForeground(ColorResources.getColor(Resources.BLACK));