From 10075b61a4a62be2c496fa8e2f3b30675f0defda Mon Sep 17 00:00:00 2001 From: "p.ciardelli" Date: Wed, 5 Sep 2007 14:13:03 +0000 Subject: [PATCH] . --- META-INF/MANIFEST.MF | 3 ++- src/eu/etaxonomy/taxeditor/SimpleModel.java | 26 ++++++++++----------- taxeditor.product | 1 + 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF index 2fd835a87..604f3873e 100644 --- a/META-INF/MANIFEST.MF +++ b/META-INF/MANIFEST.MF @@ -6,6 +6,7 @@ Bundle-Version: 1.0.0 Bundle-Activator: eu.etaxonomy.taxeditor.Activator Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime, - org.eclipse.ui.forms + org.eclipse.ui.forms, + eu.etaxonomy.cdmLibrary Eclipse-LazyStart: true Export-Package: eu.etaxonomy.taxeditor diff --git a/src/eu/etaxonomy/taxeditor/SimpleModel.java b/src/eu/etaxonomy/taxeditor/SimpleModel.java index c388ad7ba..7ae06792e 100644 --- a/src/eu/etaxonomy/taxeditor/SimpleModel.java +++ b/src/eu/etaxonomy/taxeditor/SimpleModel.java @@ -3,9 +3,9 @@ package eu.etaxonomy.taxeditor; import java.util.ArrayList; import java.util.List; -//import eu.etaxonomy.cdm.model.name.TaxonName; -//import eu.etaxonomy.cdm.api.service.*; -//import eu.etaxonomy.cdm.api.application.CdmApplicationController; +import eu.etaxonomy.cdm.model.name.TaxonName; +import eu.etaxonomy.cdm.api.service.*; +import eu.etaxonomy.cdm.api.application.CdmApplicationController; public class SimpleModel { @@ -34,19 +34,19 @@ public class SimpleModel { private void initialize() { try { //TODO Andreas -// List tnList = new ArrayList(); -// TaxonName tn = new TaxonName(); -// CdmApplicationController app = new CdmApplicationController(); -// NameService ns = app.getNameService(); -// tnList.add(ns.getTaxonNameById(1)); -// tnList.add(ns.getTaxonNameById(4)); -// tnList.add(ns.getTaxonNameById(28)); + List tnList = new ArrayList(); + TaxonName tn = new TaxonName(); + CdmApplicationController app = new CdmApplicationController(); + NameService ns = app.getNameService(); + tnList.add(ns.getTaxonNameById(1)); + tnList.add(ns.getTaxonNameById(4)); + tnList.add(ns.getTaxonNameById(28)); objects = new ArrayList(); NamedObject[] objects = { -// new Name(tnList.get(0).getName(), tnList.get(0).getGenus(),tnList.get(0).getInfraSpecificEpithet()), -// new Name(tnList.get(1).getName(), tnList.get(1).getGenus(),tnList.get(1).getInfraSpecificEpithet()), -// new Name(tnList.get(2).getName(), tnList.get(2).getGenus(),tnList.get(2).getInfraSpecificEpithet()), + new Name(tnList.get(0).getName(), tnList.get(0).getGenus(),tnList.get(0).getInfraSpecificEpithet()), + new Name(tnList.get(1).getName(), tnList.get(1).getGenus(),tnList.get(1).getInfraSpecificEpithet()), + new Name(tnList.get(2).getName(), tnList.get(2).getGenus(),tnList.get(2).getInfraSpecificEpithet()), new Name("Pilosella piloselloides (Vill.) Soják", "Pilosella", "piloselloides"), new Name("Pilosella pavichii (Heuff.) Arv.-Touv.", "Pilosella", "pavichii"), diff --git a/taxeditor.product b/taxeditor.product index b0ea13406..a8e113f7d 100644 --- a/taxeditor.product +++ b/taxeditor.product @@ -41,6 +41,7 @@ Thanks to our worldwide fan community. + -- 2.34.1