private static Feature useSummaryFeature;\r
private static Feature useRecordFeature;\r
\r
-\r
public static void reset() {\r
isInitialized = false;\r
useMarkerType = null;\r
conversation.close();\r
}\r
\r
-\r
private static void createHumanGroupVocabulary(IProgressMonitor monitor,ConversationHolder conversation) {\r
TermVocabulary<DefinedTerm> humanGroupVocabulary = CdmStore.getService(IVocabularyService.class).find(UsageTermCollection.uuidHumanGroupVocabulary);\r
if (humanGroupVocabulary == null){\r
}\r
}\r
\r
-\r
private static void createPlantVocabulary(IProgressMonitor monitor, ConversationHolder conversation) {\r
TermVocabulary<DefinedTerm> plantPartVocabulary = CdmStore.getService(IVocabularyService.class).find(UsageTermCollection.uuidPlantPartVocabulary);\r
if (plantPartVocabulary == null){\r
}\r
}\r
\r
-\r
private static void createCountryVocabulary(IProgressMonitor monitor, ConversationHolder conversation) {\r
TermVocabulary<DefinedTerm> countryVocabulary = CdmStore.getService(IVocabularyService.class).find(UsageTermCollection.uuidCountryVocabulary);\r
if (countryVocabulary == null){\r
}\r
}\r
\r
-\r
private static void createStateVocabulary(IProgressMonitor monitor, ConversationHolder conversation) {\r
TermVocabulary<State> stateVocabulary = CdmStore.getService(IVocabularyService.class).find(UsageTermCollection.uuidUseCategoryVocabulary);\r
if (stateVocabulary == null){\r
}\r
}\r
\r
-\r
private static void createUseMarkerType(ConversationHolder conversation) {\r
useMarkerType = (MarkerType) CdmStore.getService(ITermService.class).find(UsageTermCollection.uuidUseMarkerType);\r
if (useMarkerType == null){\r
conversation.commit(true);\r
}\r
}\r
-\r
-\r
-}\r
+}
\ No newline at end of file
*/
public class BigDecimalWithLabelElement extends NumberWithLabelElement {
-
public BigDecimalWithLabelElement(CdmFormFactory toolkit, ICdmFormElement parentElement, String labelString,
Number initialNumber, int style) {
super(toolkit, parentElement, labelString, initialNumber, style);
/**
- *
- */
+* Copyright (C) 2007 EDIT
+* 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.
+*/
package eu.etaxonomy.taxeditor.ui.element;
import java.net.URI;
/**
- *
- */
+* Copyright (C) 2007 EDIT
+* 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.
+*/
package eu.etaxonomy.taxeditor.ui.element;
import java.util.ArrayList;
* 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.
*/
-
package eu.etaxonomy.taxeditor.ui.element;
import org.eclipse.jface.util.PropertyChangeEvent;
* 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.
*/
-
package eu.etaxonomy.taxeditor.ui.section;
import org.eclipse.jface.util.PropertyChangeEvent;
/**
- *
- */
+* Copyright (C) 2018 EDIT
+* 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.
+*/
package eu.etaxonomy.taxeditor.ui.section;
import java.util.ArrayList;
/**
- *
- */
+* Copyright (C) 2018 EDIT
+* 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.
+*/
package eu.etaxonomy.taxeditor.ui.section;
import java.util.Arrays;
/**
* @author n.hoffmann
- *
*/
public abstract class AbstractIdentifiableEntityDetailElement<T extends IIdentifiableEntity> extends
AbstractCdmDetailElement<T> {
- /**
- *
- */
private static final EnumSet<CRUD> UPDATE = EnumSet.of(CRUD.UPDATE);
protected ToggleableTextElement toggleable_cache;
public AbstractIdentifiableEntityDetailElement(CdmFormFactory formFactory, ICdmFormElement formElement) {
super(formFactory, formElement);
updateToggleableCacheState();
-
-
}
-
public void updateToggleableCacheField() {
if (toggleable_cache != null){
if (!getEntity().isProtectedTitleCache()) {
updateToggleableCacheField();
}
-
@Override
protected void updateControlStates(){
super.updateControlStates();
}
-
private void updateToggleableCacheState() {
if(toggleable_cache != null){
toggleable_cache.setEnabled(getEntity() != null && CdmStore.currentAuthentiationHasPermission((CdmBase) getEntity(), UPDATE));
}
}
-
-
-
}
/**
* @author pplitzner
* @since Jul 11, 2019
- *
*/
private final class LoadImageJob extends Job {
private URI uri;
@Override
protected void createControls(ICdmFormElement formElement, Media entity, int style) {
-
this.parentFormElement = formElement;
this.style = style;
-
}
@Override
* 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.
*/
-
package eu.etaxonomy.taxeditor.ui.section.reference;
-
-
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ReferenceDetailElement extends AbstractIdentifiableEntityDetailElement<Reference>
implements IErrorIntolerableElement, IExceptionHandler {
-
-
private ToggleableTextElement toggleableAbbrevCache;
private TextWithLabelElement text_edition;
this.isWizard = isWizard;
}
-
- /** {@inheritDoc} */
@Override
protected void createControls(ICdmFormElement formElement,
Reference entity, int style) {
reference.getLsid(), style);
}
+
private void createUri(ICdmFormElement element,
Reference reference, int style) {
}
}
- /** {@inheritDoc} */
+
@Override
public void handleEvent(Object eventSource) {
if (eventSource == combo_referenceType) {
/**\r
* @author l.morris\r
* @date 20 Dec 2011\r
- *\r
*/\r
public class TermVocabularyDetailElement extends AbstractTermBaseDetailElement<TermVocabulary> {\r
\r
/**
* @author pplitzner
* @date 25.02.2014
- *
*/
public class BioCaseEditorInput extends DataImportEditorInput<SpecimenOrObservationBase<?>> {
});
}
- /* (non-Javadoc)
- * @see java.lang.Object#hashCode()
- */
@Override
public int hashCode() {
final int prime = 31;
return result;
}
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
@Override
public boolean equals(Object obj) {
if (this == obj) {
}
return true;
}
-}
+}
\ No newline at end of file