// this is a stable version
return version;
} else {
- return BETA_PREFIX + version;
+ return BETA_PREFIX + " " + version;
}
}
LineAnnotation annotation = (LineAnnotation) model.getAnnotation(object);
DeleteResult result = new DeleteResult();
+ result.setError();
try {
ICdmApplicationConfiguration controller;
controller = (ICdmApplicationConfiguration) CdmStore.getCurrentApplicationConfiguration();
if (object instanceof SpecimenOrObservationBase){
IOccurrenceService service = controller.getOccurrenceService();
+ service.load(((SpecimenOrObservationBase) object).getUuid());
result = service.delete((SpecimenOrObservationBase)object);
} else if (object instanceof Reference){
IReferenceService service = controller.getReferenceService();
+ service.load(((Reference) object).getUuid());
result = service.delete((Reference)object);
} else if (object instanceof Group){
IGroupService service = controller.getGroupService();
+ service.load(((Group) object).getUuid());
result = service.delete((Group) object);
}else if (object instanceof User){
IUserService service = controller.getUserService();
+ service.load(((User) object).getUuid());
result = service.delete((User) object);
} else if (object instanceof TaxonNameBase){
INameService service = controller.getNameService();
+ service.load(((TaxonNameBase) object).getUuid());
result = service.delete((TaxonNameBase)object);
} else if (object instanceof TaxonBase){
ITaxonService service = controller.getTaxonService();
+ service.load(((TaxonBase) object).getUuid());
if (object instanceof Taxon){
result = service.deleteTaxon((Taxon)object, null, null);
}else{
}
} else if (object instanceof TeamOrPersonBase){
IAgentService service = controller.getAgentService();
+ object = service.load(((TeamOrPersonBase) object).getUuid());
result = service.delete((TeamOrPersonBase)object);
}
} catch (Exception e){
- MessagingUtils.messageDialog("Could not delete", getClass(), e.getMessage(), null);
+ MessagingUtils.messageDialog("Exception occured. Could not delete", getClass(), e.getMessage(), null);
}
if (result.isError()){
MessagingUtils.messageDialog("Could not delete", getClass(), result.getExceptions().get(0).getMessage(), null);
}
- ((BulkEditor) editor).removeAnnotatedLine(annotation);
-
+ if (result.isOk()){
+ ((BulkEditor) editor).removeAnnotatedLine(annotation);
+ }
}
}
}else{
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.4.0-SNAPSHOT-sources.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.4.0-SNAPSHOT.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.4.0-SNAPSHOT-sources.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.4.0-SNAPSHOT.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.4.0-SNAPSHOT-sources.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.4.0-SNAPSHOT.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.4.0-SNAPSHOT-sources.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.4.0-SNAPSHOT.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.4.0-SNAPSHOT-sources.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.4.0-SNAPSHOT.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.4.0-SNAPSHOT-sources.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.4.0-SNAPSHOT.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.4.0-SNAPSHOT-sources.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.4.0-SNAPSHOT.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.4.0-SNAPSHOT-sources.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.4.0-SNAPSHOT.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry exported="true" kind="lib" path="lib/spring-security-remoting-3.1.3.RELEASE.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jena-core-2.11.2.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jena-iri-1.0.2.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.4.0-SNAPSHOT-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-commons-3.4.0-SNAPSHOT.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.4.0-SNAPSHOT-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-ext-3.4.0-SNAPSHOT.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.4.0-SNAPSHOT-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-io-3.4.0-SNAPSHOT.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.4.0-SNAPSHOT-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-model-3.4.0-SNAPSHOT.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.4.0-SNAPSHOT-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-persistence-3.4.0-SNAPSHOT.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.4.0-SNAPSHOT-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-print-3.4.0-SNAPSHOT.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.4.0-SNAPSHOT-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-remote-3.4.0-SNAPSHOT.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.4.0-SNAPSHOT-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/cdmlib-services-3.4.0-SNAPSHOT.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
import eu.etaxonomy.cdm.strategy.match.IMatchStrategy;
import eu.etaxonomy.cdm.strategy.merge.IMergeStrategy;
+import eu.etaxonomy.taxeditor.ui.section.supplemental.IdentifiableSourceElement;
/**
* @author pplitzner
* @see eu.etaxonomy.cdm.api.service.ITaxonService#findTaxaAndNamesForEditor(eu.etaxonomy.cdm.api.service.config.IFindTaxaAndNamesConfigurator)
*/
@Override
- public List<UuidAndTitleCache<TaxonBase>> findTaxaAndNamesForEditor(IFindTaxaAndNamesConfigurator configurator) {
+ public List<UuidAndTitleCache<IdentifiableEntity>> findTaxaAndNamesForEditor(IFindTaxaAndNamesConfigurator configurator) {
return defaultTaxonService.findTaxaAndNamesForEditor(configurator);
}
// drag'n'drop for Sequence
else if(draggedNodeValue instanceof Sequence && targetNodeValue instanceof DnaSample && ((SpecimenOrObservationBase<?>) targetNodeValue).getRecordBasis()==SpecimenOrObservationType.DnaSample){
Sequence sequence = (Sequence)draggedNodeValue;
- if(fromParentSpecimen instanceof DnaSample){
+ if(fromParentSpecimen instanceof DnaSample && ((SpecimenOrObservationBase<?>) targetNodeValue).getRecordBasis()==SpecimenOrObservationType.DnaSample){
return occurrenceService.moveSequence((DnaSample)fromParentSpecimen, (DnaSample)targetNodeValue, sequence);
}
}
TreeNode treeNode = (TreeNode)object;
Object value = ((TreeNode) object).getValue();
if(value instanceof SpecimenOrObservationBase<?> || value instanceof Sequence || value instanceof SingleRead){
- DeleteDerivateOperation deleteDerivateOperation = new DeleteDerivateOperation(label, undoContext, (CdmBase) object, postOperationEnabled);
+ DeleteDerivateOperation deleteDerivateOperation = new DeleteDerivateOperation(label, undoContext, (CdmBase) value, postOperationEnabled);
AbstractUtility.executeOperation(deleteDerivateOperation);
}
}
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
import eu.etaxonomy.cdm.api.service.config.IFindTaxaAndNamesConfigurator;
+import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
import eu.etaxonomy.cdm.model.common.UuidAndTitleCache;
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
*
* @param result a {@link java.util.List} object.
*/
- protected void displaySearchResult(List<UuidAndTitleCache<TaxonBase>> result) {
+ protected void displaySearchResult(List<UuidAndTitleCache<IdentifiableEntity>> result) {
if(result.size() > 0){
resultViewer.setInput(result);
status.setText(result.size() + " entities found");
monitor.beginTask("", 100);
monitor.worked(20);
- final List<UuidAndTitleCache<TaxonBase>> searchResult = CdmStore.getSearchManager().findTaxaAndNames(configurator);
+ final List<UuidAndTitleCache<IdentifiableEntity>> searchResult = CdmStore.getSearchManager().findTaxaAndNames(configurator);
monitor.worked(40);
if(! monitor.isCanceled()){
org.eclipse.jface.text,
org.eclipse.ui.forms,
eu.etaxonomy.taxeditor.cdmlib,
- org.eclipse.nebula.widgets.compositetable;bundle-version="1.0.0",
+ org.eclipse.nebula.widgets.compositetable,
org.eclipse.core.databinding,
org.eclipse.core.databinding.beans,
org.eclipse.core.databinding.observable,
// $Id$
/**
* Copyright (C) 2007 EDIT
- * European Distributed Institute of Taxonomy
+ * European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
- *
+ *
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
import eu.etaxonomy.cdm.model.common.TermType;
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
import eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermEditor;
+import eu.etaxonomy.taxeditor.model.AbstractUtility;
import eu.etaxonomy.taxeditor.model.MessagingUtils;
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
import eu.etaxonomy.taxeditor.preference.wizard.VocabularyTermWizard;
import eu.etaxonomy.taxeditor.store.CdmStore;
-import eu.etaxonomy.taxeditor.store.StoreUtil;
import eu.etaxonomy.taxeditor.store.TermStore;
/**
private Button toggleButton;
protected HashMap<DefinedTermBase<T>, Button> menuButtons;
-
+
protected Button newButton;
protected Button editButton;
protected Button removeButton;
-
+
protected CheckboxTableViewer tableViewer;
-
+
private boolean state = true;
- private boolean vocabularyIsEditable;
+ private final boolean vocabularyIsEditable;
private ConversationHolder conversation;
-
+
/**
* Constructs a new menu preference page.
*
vocabularyIsEditable = editable;
setDescription(description);
}
-
+
protected List<T> getTerms(){
return TermStore.getTerms(getTermClass());
}
*/
@Override
public Control createContents(Composite parent) {
-
+
Composite container = new Composite(parent, SWT.NULL);
final GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 2;
container.setLayout(gridLayout);
-
+
tableViewer = CheckboxTableViewer.newCheckList(container, SWT.NULL);
GridData tableLayoutData = new GridData(SWT.FILL, SWT.FILL, true, false);
tableLayoutData.heightHint = 300;
tableViewer.getTable().setLayoutData(tableLayoutData);
-
+
tableViewer.setContentProvider(new DefinedTermBaseContentProvider());
tableViewer.setLabelProvider(new DefinedTermBaseLabelProvider());
refresh(getTerms());
-
+
tableViewer.addCheckStateListener(new ICheckStateListener() {
-
+
@Override
public void checkStateChanged(CheckStateChangedEvent arg0) {
checkNoneChecked();
}
});
-
+
Composite buttonContainer = new Composite(container, SWT.NULL);
GridData buttonContainerLayoutData = new GridData();
buttonContainerLayoutData.verticalAlignment = SWT.TOP;
buttonContainer.setLayoutData(buttonContainerLayoutData);
buttonContainer.setLayout(new GridLayout());
-
- if(vocabularyIsEditable) createEditButtons(buttonContainer);
-
+
+ if(vocabularyIsEditable) {
+ createEditButtons(buttonContainer);
+ }
+
toggleButton = new Button(buttonContainer, SWT.PUSH);
toggleButton.setText("Toggle");
toggleButton.addSelectionListener(new SelectionAdapter(){
checkNoneChecked();
}
});
-
+
createAdditionalContent(container);
-
+
return container;
}
* @param container a {@link org.eclipse.swt.widgets.Composite} object.
*/
protected void createAdditionalContent(Composite container) {
- // implement where needed
+ // implement where needed
}
/* (non-Javadoc)
*/
@Override
public void widgetSelected(SelectionEvent e) {
- VocabularyTermWizard<T> wizard = new VocabularyTermWizard<T>(getTermClass(), getConversationHolder());
-
- WizardDialog dialog = new WizardDialog(StoreUtil.getShell(), wizard);
+ VocabularyTermWizard<T> wizard = new VocabularyTermWizard<T>(getTermClass(), getConversationHolder());
+
+ WizardDialog dialog = new WizardDialog(AbstractUtility.getShell(), wizard);
if(dialog.open() == IStatus.OK){
tableViewer.setInput(getTerms());
}
}
-
+
});
}
-
+
/**
* Implement this method in MenuPreference Pages where the vocabulary should be editable, editable flag
* is set.
*/
@Override
public void widgetSelected(SelectionEvent event) {
-
- ICommandService commandService = (ICommandService) StoreUtil.getService(ICommandService.class);
+
+ ICommandService commandService = (ICommandService) AbstractUtility.getService(ICommandService.class);
Command command = commandService.getCommand(DefinedTermEditor.OPEN_COMMAND_ID);
-
+
IParameter parameter;
try {
parameter = command.getParameter("eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid");
-
+
Parameterization[] parameterizations = new Parameterization[]{
new Parameterization(parameter, TermType.valueOf(getTermClass().getSimpleName()).getUuid().toString())
};
-
+
ParameterizedCommand pCommand = new ParameterizedCommand(command, parameterizations);
-
+
if (command.isEnabled()) {
- IHandlerService handlerService = (IHandlerService) StoreUtil.getService(IHandlerService.class);
+ IHandlerService handlerService = (IHandlerService) AbstractUtility.getService(IHandlerService.class);
try {
handlerService.executeCommand(pCommand, null);
} catch (NotDefinedException e) {
"An exception occured while trying to open the Term Editor",
e);
}
-
+
}
});
}
/** {@inheritDoc} */
- public void init(IWorkbench workbench) {
+ @Override
+ public void init(IWorkbench workbench) {
setPreferenceStore(PreferencesUtil.getPreferenceStore());
getConversationHolder().bind();
}
/**
* <p>performDefaults</p>
*/
- protected void performDefaults() {
+ @Override
+ protected void performDefaults() {
tableViewer.setAllChecked(true);
}
if(checkNoneChecked()){
return false;
}
-
+
getConversationHolder().commit(true);
-
+
List<T> preferredTerms = new ArrayList<T>();
for (Object element : getTableViewer().getCheckedElements()){
preferredTerms.add((T) element);
}
-
+
CdmStore.getTermManager().setPreferredTerms(preferredTerms, getTerms());
-
+
PreferencesUtil.firePreferencesChanged(this.getClass());
-
+
return true;
}
-
+
private boolean checkNoneChecked(){
-
+
if(tableViewer.getCheckedElements().length == 0){
setMessage("Please check at least one item", WARNING);
return true;
return false;
}
}
-
+
/**
* <p>getTermClass</p>
*
* @return a {@link java.lang.Class} object.
*/
protected abstract Class<T> getTermClass();
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.cdm.api.conversation.IConversationEnabled#getConversationHolder()
*/
}
return conversation;
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.cdm.persistence.hibernate.ICdmPostDataChangeObserver#update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap)
*/
import eu.etaxonomy.cdm.model.agent.AgentBase;
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
import eu.etaxonomy.cdm.model.common.Group;
+import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
import eu.etaxonomy.cdm.model.common.RelationshipBase;
import eu.etaxonomy.cdm.model.common.User;
import eu.etaxonomy.cdm.model.common.UuidAndTitleCache;
* @param configurator a {@link eu.etaxonomy.cdm.api.service.config.ITaxonServiceConfigurator} object.
* @return a {@link java.util.List} object.
*/
- public List<UuidAndTitleCache<TaxonBase>> findTaxaAndNames(IFindTaxaAndNamesConfigurator<TaxonBase> configurator){
+ public List<UuidAndTitleCache<IdentifiableEntity>> findTaxaAndNames(IFindTaxaAndNamesConfigurator<TaxonBase> configurator){
return CdmStore.getService(ITaxonService.class).findTaxaAndNamesForEditor(configurator);
}
switch(unitType) {
case ELEVATION:
text_minVal = formFactory.createNumberTextWithLabelElement(this, "Min [m] : ", getMinimum(), style);
- text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);
+ text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);
break;
default:
text_minVal = formFactory.createNumberTextWithLabelElement(this, "Min [m] : ", getMinimum(), style);
- text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);
- break;
+ text_maxVal = formFactory.createNumberTextWithLabelElement(this, "Max [m] : ", getMaximum(), style);
+ break;
}
text_freeText = formFactory.createTextWithLabelElement(this,
"Freetext : ", getFreetext(), style);
public void setEntity(DerivedUnitFacade gatheringEvent) {
super.setEntity(gatheringEvent);
updateValues();
+ updateTitle();
}
private void updateValues() {
} else if (eventSource == text_freeText) {
updateFreetext();
}
+ updateTitle();
firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
}
-
+ private void updateTitle(){
+ String title = "";
+ if(text_minVal.getText()!=null){
+ title += text_minVal.getText();
+ }
+ if(text_maxVal.getText()!=null && !text_maxVal.getText().equals("")){
+ if(!title.equals("")){
+ title += " - "+text_maxVal.getText();
+ }
+ }
+ if(title.equals("") && text_freeText.getText()!=null){
+ title = text_freeText.getText();
+ }
+ this.setText(title);
+ layout();
+ }
/*
* (non-Javadoc)
private void updateMinimum() {
switch(unitType) {
case ELEVATION:
- getEntity().setAbsoluteElevation(text_minVal.getDouble().intValue());
+ getEntity().setAbsoluteElevation(text_minVal.getDouble()!=null?text_minVal.getDouble().intValue():null);
break;
case DIST_TO_GROUND:
getEntity().setDistanceToGround(text_minVal.getDouble());
private void updateMaximum() {
switch(unitType) {
case ELEVATION:
- getEntity().setAbsoluteElevationMax(text_maxVal.getDouble().intValue());
+ getEntity().setAbsoluteElevationMax(text_maxVal.getDouble()!=null?text_maxVal.getDouble().intValue():null);
break;
case DIST_TO_GROUND:
getEntity().setDistanceToGroundMax(text_maxVal.getDouble());
String value = text.getText();
if(StringUtils.isBlank(value)){
text.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
+ super.modifyText(event);
return;
}
internalConversation.close();
return true;
}catch(Exception e){
- MessagingUtils.messageDialog("Error while changing password", getClass(), "There was a problem changing the password.", e);
+ MessagingUtils.warningDialog("Could not change password", this, "The old password is not correct.");
+
return false;
}finally{
if(conversation != null){
*/
package eu.etaxonomy.taxeditor.ui.section.occurrence.dna;
+import java.net.URI;
+import java.net.URISyntaxException;
+
import org.eclipse.swt.widgets.Text;
import eu.etaxonomy.cdm.model.common.DefinedTerm;
import eu.etaxonomy.cdm.model.common.TermType;
import eu.etaxonomy.cdm.model.molecular.Sequence;
import eu.etaxonomy.cdm.model.molecular.SequenceString;
+import eu.etaxonomy.taxeditor.preference.Resources;
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
// ((Text) textConsensusSequenceLength.getMainControl()).setEditable(false);
textBarcodeSequence = formFactory.createTextWithLabelElement(formElement, "Barcode Sequence 5'->3'", entity.getBarcodeSequencePart()==null?"":entity.getBarcodeSequencePart().getString(), style);
+ URI genBankUri = null;
+ URI emblUri = null;
+ URI ddbjUri = null;
+ URI boldUri = null;
+ try{
+ genBankUri = entity.getGenBankUri();
+ emblUri = entity.getEmblUri();
+ ddbjUri = entity.getDdbjUri();
+ boldUri = entity.getBoldUri();
+ }
+ catch(URISyntaxException e){
+
+ }
textGeneticAccessNo = formFactory.createTextWithLabelElement(formElement, "Genetic Acc. No.", entity.getGeneticAccessionNumber(), style);
- textNCBIUri = formFactory.createUriWithLabelElement(formElement, "NCBI URI", entity.getGenBankUri(), style);
+ textNCBIUri = formFactory.createUriWithLabelElement(formElement, "NCBI URI", genBankUri, style);
((Text) textNCBIUri.getMainControl()).setEditable(false);
- textENAUri = formFactory.createUriWithLabelElement(formElement, "ENA URI", entity.getEmblUri(), style);
+ textENAUri = formFactory.createUriWithLabelElement(formElement, "ENA URI", emblUri, style);
((Text) textENAUri.getMainControl()).setEditable(false);
- textDDBJUri = formFactory.createUriWithLabelElement(formElement, "DDBJ URI", entity.getDdbjUri(), style);
+ textDDBJUri = formFactory.createUriWithLabelElement(formElement, "DDBJ URI", ddbjUri, style);
((Text) textDDBJUri.getMainControl()).setEditable(false);
textBoldProcessID = formFactory.createTextWithLabelElement(formElement, "BOLD Process ID", entity.getBoldProcessId(), style);
- textBoldUri = formFactory.createUriWithLabelElement(formElement, "BOLD URI", entity.getBoldUri(), style);
+ textBoldUri = formFactory.createUriWithLabelElement(formElement, "BOLD URI", boldUri, style);
((Text) textBoldUri.getMainControl()).setEditable(false);
((Text) textBoldUri.getMainControl()).setToolTipText("Query BOLD");
}
getEntity().setBarcodeSequencePart(barcodeSequencePart);
}
else if(eventSource==textGeneticAccessNo){
+ textGeneticAccessNo.setBackground(getPersistentBackground());
getEntity().setGeneticAccessionNumber(textGeneticAccessNo.getText());
if(textGeneticAccessNo.getText()!=null && !textGeneticAccessNo.getText().isEmpty()){
- textNCBIUri.setUri(getEntity().getGenBankUri());
- textENAUri.setUri(getEntity().getEmblUri());
- textDDBJUri.setUri(getEntity().getDdbjUri());
+ try {
+ textNCBIUri.setUri(getEntity().getGenBankUri());
+ textENAUri.setUri(getEntity().getEmblUri());
+ textDDBJUri.setUri(getEntity().getDdbjUri());
+ } catch (URISyntaxException e) {
+ textGeneticAccessNo.setBackground(getColor(Resources.COLOR_PARSE_ERROR));
+ }
}
else{
textNCBIUri.setText("");
}
}
else if(eventSource==textBoldProcessID){
+ textBoldProcessID.setBackground(getPersistentBackground());
getEntity().setBoldProcessId(textBoldProcessID.getText());
if(textBoldProcessID.getText()!=null && !textBoldProcessID.getText().isEmpty()){
- textBoldUri.setUri(getEntity().getBoldUri());
+ try {
+ textBoldUri.setUri(getEntity().getBoldUri());
+ } catch (URISyntaxException e) {
+ textBoldProcessID.setBackground(getColor(Resources.COLOR_PARSE_ERROR));
+ }
}
else{
textBoldUri.setText("");
public void setFocus() {
derivateSearchCompositeController.setFocus();
//make sure to bind again if maybe in another view the conversation was unbound
- if(getConversationHolder()!=null && !getConversationHolder().isBound()){
+ if(!getConversationHolder().isClosed() && getConversationHolder()!=null && !getConversationHolder().isBound()){
getConversationHolder().bind();
}
}
<configuration>
<fromDir>${project.build.directory}/repository</fromDir>
<url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/update/${update.dir}</url>
- <includes>binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar</includes>
+ <includes>
+ binary/*,content.jar,artifacts.jar,**/eu.etaxonomy.*.jar
+ </includes>
<!-- Comment out the above and uncomment the below to upload
all jars -->
<!-- <includes>**/*</includes> -->
<repository location="http://download.eclipse.org/releases/indigo"/>
</location>
<location includeAllPlatforms="true" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
-<unit id="org.eclipse.nebula.widgets.compositetable.feature.feature.group" version="1.0.0.201304110956"/>
-<repository location="http://download.eclipse.org/technology/nebula/snapshot"/>
+<unit id="org.eclipse.nebula.widgets.compositetable.feature" version="1.0.0.201409040043"/>
+<repository location="http://download.eclipse.org/technology/nebula/archives/Q32014/release/"/>
</location>
</locations>
</target>
<layout>p2</layout>
<url>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site/</url>
</repository>
+ <!-- The nebula repository (retention period 2 years starting Q32014) set here is an archived one
+ so as to have a stable version of the jar when building the editor . Refer to #4452 for details -->
<repository>
<id>eclipse-nebula</id>
<layout>p2</layout>
- <url>http://download.eclipse.org/technology/nebula/snapshot/</url>
+ <url>http://download.eclipse.org/technology/nebula/archives/Q32014/release/</url>
</repository>
<repository>
<id>eclipse-swtbot</id>