import eu.etaxonomy.taxeditor.featuretree.FeatureTreeContentProvider;
import eu.etaxonomy.taxeditor.featuretree.FeatureTreeLabelProvider;
import eu.etaxonomy.taxeditor.l10n.Messages;
+import eu.etaxonomy.taxeditor.model.IDirtyMarkable;
import eu.etaxonomy.taxeditor.model.ImageResources;
import eu.etaxonomy.taxeditor.ui.dialog.selection.FeatureTreeSelectionDialog;
new GridData(SWT.FILL, SWT.FILL, true, true));
}
+ public void init(DragSourceListener dragSourceListener, DropTargetListener dropTargetListener,
+ ISelectionChangedListener viewerSelectionChangedListener, IDirtyMarkable dirtyMarkable,
+ ModifyListener textModifyListener) {
+ this.init(dragSourceListener, dropTargetListener, viewerSelectionChangedListener, null, dirtyMarkable,
+ textModifyListener);
+ }
public void init(DragSourceListener dragSourceListener, DropTargetListener dropTargetListener,
ISelectionChangedListener viewerSelectionChangedListener,
SelectionListener openFeatureTreeSelectionListener,
ModifyListener textModifyListener) {
+ init(dragSourceListener, dropTargetListener, viewerSelectionChangedListener, openFeatureTreeSelectionListener,
+ null, textModifyListener);
+ }
+ private void init(DragSourceListener dragSourceListener, DropTargetListener dropTargetListener,
+ ISelectionChangedListener viewerSelectionChangedListener,
+ SelectionListener openFeatureTreeSelectionListener, IDirtyMarkable dirtyMarkable,
+ ModifyListener textModifyListener) {
viewer.setContentProvider(new FeatureTreeContentProvider());
viewer.setLabelProvider(new FeatureTreeLabelProvider());
if(tree!=null){
setSelectedTree(tree);
text_title.setEnabled(false);
+ if(dirtyMarkable!=null){
+ dirtyMarkable.forceDirty();
+ }
}
}
});