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;
/**
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);