(no commit message)
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / dialogs / filteredSelection / FilteredNameSelectionDialog.java
index 961d2dbf03139b97c93999e6481a547680d8c174..7f9c9358ddf5df774a214a3ce3006c09e9eb47b3 100644 (file)
@@ -24,7 +24,7 @@ import org.eclipse.swt.widgets.Listener;
 import org.eclipse.swt.widgets.Shell;
 
 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
-import eu.etaxonomy.taxeditor.parser.ParserUtil;
+import eu.etaxonomy.taxeditor.parser.ParseHandler;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
@@ -70,10 +70,12 @@ public class FilteredNameSelectionDialog extends AbstractFilteredCdmResourceSele
                link.setText("Click <A>here</A> to create a new name.");
                link.addListener (SWT.Selection, new Listener () {
                        public void handleEvent(Event event) {
+                               // TODO replace this with a wizard
+                               
                                InputDialog dialog = new InputDialog(getShell(), "Create a name", "Enter new name", "", null);
                                if (dialog.open() == Window.OK) {
                                        
-                                       TaxonNameBase name = ParserUtil.parseReferencedName(dialog.getValue());
+                                       TaxonNameBase name = ParseHandler.quickParse(dialog.getValue());
                                        
                                        addObjectToModel(name);
                                        setPattern(name);