private FeatureTreeEditorComposite characterTreeEditorComposite;
- private FeatureTreeEditorComposite treeViewerProperties;
- private FeatureTreeEditorComposite treeViewerStructures;
+ private FeatureTreeEditorComposite propertiesTreeEditorComposite;
+ private FeatureTreeEditorComposite structuresTreeEditorComposite;
private final FormToolkit formToolkit = new FormToolkit(Display.getDefault());
private Button btnAddCharacter;
formToolkit.paintBordersFor(composite);
composite.setLayout(new GridLayout(1, false));
- treeViewerStructures = addFeatureTreeEditor(composite);
- initFeatureTreeComposite(treeViewerStructures, null, null);
+ structuresTreeEditorComposite = addFeatureTreeEditor(composite);
+ initFeatureTreeComposite(structuresTreeEditorComposite, null, null);
+ structuresTreeEditorComposite.getLabel_title().setText("Structures");
Composite composite_1 = new Composite(sashForm, SWT.NONE);
formToolkit.adapt(composite_1);
formToolkit.paintBordersFor(composite_1);
composite_1.setLayout(new GridLayout(1, false));
- treeViewerProperties = addFeatureTreeEditor(composite_1);
- initFeatureTreeComposite(treeViewerProperties, null, null);
+ propertiesTreeEditorComposite = addFeatureTreeEditor(composite_1);
+ initFeatureTreeComposite(propertiesTreeEditorComposite, null, null);
+ propertiesTreeEditorComposite.getLabel_title().setText("Properties");
//TODO: fix drag and drop
// initFeatureTreeComposite(treeViewerProperties, new CharacterDragListener(treeViewerStructures.getViewer(), treeViewerProperties.getViewer()), null);
characterTreeEditorComposite = addFeatureTreeEditor(composite_3);
initFeatureTreeComposite(characterTreeEditorComposite, new FeatureNodeDragListener(characterTreeEditorComposite.getViewer()), new FeatureNodeDropAdapter(characterTreeEditorComposite.getViewer()));
+ characterTreeEditorComposite.getLabel_title().setText("Characters");
sashForm.setWeights(new int[] {3, 3, 1, 3});
*/
@Override
public void widgetSelected(SelectionEvent e) {
- ISelection structureTreeSelection = treeViewerStructures.getViewer().getSelection();
- ISelection propertyTreeSelection = treeViewerProperties.getViewer().getSelection();
+ ISelection structureTreeSelection = structuresTreeEditorComposite.getViewer().getSelection();
+ ISelection propertyTreeSelection = propertiesTreeEditorComposite.getViewer().getSelection();
if(structureTreeSelection==null || propertyTreeSelection==null || characterTreeEditorComposite.getFeatureTree()==null){
MessagingUtils.warningDialog("Cannot perform action", CharacterEditor.this,
"You have to select a structure, a property and a feature tree to perform this action.");