.
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / propertysheet / reference / ReferenceSearchDescriptor.java
index b566f6db560677193bac50c028f2b1dbe44da962..dbb002de278bbb6cb9a20e220b1ca73e4fbdce1b 100644 (file)
@@ -37,7 +37,8 @@ abstract public class ReferenceSearchDescriptor extends PropertyDescriptor {
         CellEditor editor = new DialogCellEditor(parent) {\r
 \r
                        protected Object openDialogBox(\r
-                                       Control cellEditorWindow) {\r
+                                       Control cellEditorWindow) {                     \r
+                               \r
                        Dialog dialog = new ReferenceSearchDialog(cellEditorWindow.getShell(), \r
                                        searchType);\r
                        Object value = ((ReferenceSearchDialog) dialog).open();\r
@@ -48,6 +49,18 @@ abstract public class ReferenceSearchDescriptor extends PropertyDescriptor {
                                        return new ReferencePropertySource(reference);\r
                                }\r
                                return null;\r
+                               \r
+                               // FIXME  FilteredReferenceSelectionDialog implementation has session problems\r
+//                             FilteredReferenceSelectionDialog dialog = new FilteredReferenceSelectionDialog(cellEditorWindow.getShell());\r
+//                             \r
+//                             \r
+//                             if (dialog.open() == Status.OK) {                                       \r
+//                                     ReferenceBase<?> reference = (ReferenceBase<?>) dialog.getFirstResult();\r
+//                                     saveReference(reference);\r
+//                                     return new ReferencePropertySource(reference);\r
+//                             }\r
+//                             return null;\r
+                               \r
                        }\r
         };\r
         if (getValidator() != null) {\r