Project

General

Profile

Revision d7f33c8d

IDd7f33c8d094c434bc8aeefe9fd42ed8df03939cb
Parent a63beab2
Child 1ff06b58

Added by Patrick Plitzner over 2 years ago

ref #8135 temporary disabled textual type designation

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java
104 104
import eu.etaxonomy.cdm.model.name.NameTypeDesignation;
105 105
import eu.etaxonomy.cdm.model.name.NomenclaturalStatus;
106 106
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
107
import eu.etaxonomy.cdm.model.name.TextualTypeDesignation;
108 107
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
109 108
import eu.etaxonomy.cdm.model.occurrence.DeterminationEvent;
110 109
import eu.etaxonomy.cdm.model.reference.Reference;
......
238 237
import eu.etaxonomy.taxeditor.ui.section.name.ProtologueElement;
239 238
import eu.etaxonomy.taxeditor.ui.section.name.ProtologueSection;
240 239
import eu.etaxonomy.taxeditor.ui.section.name.SpecimenTypeDesignationElement;
241
import eu.etaxonomy.taxeditor.ui.section.name.TextTypeDesignationElement;
242 240
import eu.etaxonomy.taxeditor.ui.section.name.TypeDesignationSection;
243 241
import eu.etaxonomy.taxeditor.ui.section.occurrence.CollectingAreaDetailElement;
244 242
import eu.etaxonomy.taxeditor.ui.section.occurrence.CollectingAreasDetailSection;
......
2800 2798
        } else if (entity instanceof NameTypeDesignation) {
2801 2799
            element = new NameTypeDesignationElement(this, parentElement, (NameTypeDesignation) entity, removeListener,
2802 2800
                    style);
2803
        } else if (entity instanceof TextualTypeDesignation) {
2804
            element = new TextTypeDesignationElement(this, parentElement, (TextualTypeDesignation) entity, removeListener,
2805
                    style);
2801
            // FIXME #8135 temporary disabled textual type designation
2802
//        } else if (entity instanceof TextualTypeDesignation) {
2803
//            element = new TextTypeDesignationElement(this, parentElement, (TextualTypeDesignation) entity, removeListener,
2804
//                    style);
2806 2805
        } else if (entity instanceof NameRelationship) {
2807 2806
            element = new NameRelationshipDetailElement(this, parentElement, (NameRelationship) entity, removeListener,
2808 2807
                    style);
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TypeDesignationSection.java
31 31
import eu.etaxonomy.cdm.model.name.Rank;
32 32
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
33 33
import eu.etaxonomy.cdm.model.name.TaxonName;
34
import eu.etaxonomy.cdm.model.name.TextualTypeDesignation;
35 34
import eu.etaxonomy.cdm.model.name.TypeDesignationBase;
36 35
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
37 36
import eu.etaxonomy.taxeditor.editor.ITaxonEditor;
......
68 67

  
69 68
	@Override
70 69
	protected void addAction(ToolBarManager toolBarManager) {
71
	    if(PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES)){
72
	        // add textual type designation button
73
	        Action addTextualTypeDesignationAction = new Action("Add", IAction.AS_PUSH_BUTTON){
74
	            @Override
75
	            public void run() {
76
	                TextualTypeDesignation textualTypeDesignation = TextualTypeDesignation.NewInstance();
77
	                addElement(textualTypeDesignation);
78
	                if(! getSection().isExpanded()) {
79
	                    getSection().setExpanded(true);
80
	                }
81
	                internalUpdateSection(true);
82
	            }
83
	        };
84
	        addTextualTypeDesignationAction.setImageDescriptor(new ImageDescriptor() {
85

  
86
	            @Override
87
	            public ImageData getImageData() {
88
	                return ImageResources.getImage(ImageResources.ADD_TEXT).getImageData();
89
	            }
90
	        });
91
	        addTextualTypeDesignationAction.setToolTipText("Add textual type designation");
92
	        toolBarManager.add(addTextualTypeDesignationAction);
93
	    }
70

  
71
        // FIXME #8135 temporary disabled textual type designation
72
//	    if(PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES)){
73
//	        // add textual type designation button
74
//	        Action addTextualTypeDesignationAction = new Action("Add", IAction.AS_PUSH_BUTTON){
75
//	            @Override
76
//	            public void run() {
77
//	                TextualTypeDesignation textualTypeDesignation = TextualTypeDesignation.NewInstance();
78
//	                addElement(textualTypeDesignation);
79
//	                if(! getSection().isExpanded()) {
80
//	                    getSection().setExpanded(true);
81
//	                }
82
//	                internalUpdateSection(true);
83
//	            }
84
//	        };
85
//	        addTextualTypeDesignationAction.setImageDescriptor(new ImageDescriptor() {
86
//
87
//	            @Override
88
//	            public ImageData getImageData() {
89
//	                return ImageResources.getImage(ImageResources.ADD_TEXT).getImageData();
90
//	            }
91
//	        });
92
//	        addTextualTypeDesignationAction.setToolTipText("Add textual type designation");
93
//	        toolBarManager.add(addTextualTypeDesignationAction);
94
//	    }
94 95

  
95 96
        // clone button
96 97
	    if(!isSpecimenType() ||

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)