* See LICENSE.TXT at the top of this package for the full license terms.
*/
-package eu.etaxonomy.taxeditor.forms.openurl;
+package eu.etaxonomy.taxeditor.ui.openurl;
import java.net.URI;
import java.util.List;
import eu.etaxonomy.cdm.ext.openurl.MobotOpenUrlServiceWrapper.ReferenceType;
import eu.etaxonomy.cdm.ext.openurl.OpenUrlReference;
import eu.etaxonomy.cdm.model.reference.Reference;
-import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
+import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
/**
* @author n.hoffmann
private MobotOpenUrlQuery query;
- private Reference reference;
-
-
private OpenUrlReference openUrlReference;
private CdmFormFactory formFactory;
private URI openUrlReferenceImageUri;
-
+
+ private Reference reference;
+
private String referenceDetail;
*/
public OpenUrlSelectorWizard(Reference reference, String referenceDetail) {
if(reference == null){
- throw new IllegalArgumentException("Reference may not be empty.");
+ throw new IllegalArgumentException("Reference may not be empty");
}
+
this.reference = reference;
this.referenceDetail = referenceDetail;
query.authorName = reference.getAuthorTeam().getTitleCache();
}
query.abbreviation = reference.getTitle();
-
if(reference.getInReference() != null){
query.journalTitle = reference.getInReference().getTitle();
}
public URI getOpenUrlReferenceImageUri() {
return openUrlReferenceImageUri;
}
-
-
+
public Reference getReference() {
return reference;
}