Project

General

Profile

« Previous | Next » 

Revision a675f8d2

Added by Niels Hoffmann about 15 years ago

finalizing preferred refactoring

View differences:

taxeditor-editor/plugin.xml
47 47
   </extension>
48 48
   <extension
49 49
         point="org.eclipse.ui.menus">
50
      <menuContribution
51
            locationURI="toolbar:org.eclipse.ui.main.toolbar">
52
         <toolbar
53
               id="eu.etaxonomy.taxeditor.editor.main">
54
            <command
55
                  commandId="org.eclipse.ui.newWizard"
56
                  label="New"
57
                  style="push">
58
            </command>
59
            <command
60
                  commandId="org.eclipse.ui.file.save"
61
                  label="Save"
62
                  style="push">
63
            </command>
64
         </toolbar>
65
      </menuContribution>
50 66
      <!--menuContribution
51 67
            locationURI="menu:org.eclipse.ui.main.menu">
52 68
         <menu
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/AbstractDynamicConceptRelationMenu.java
14 14

  
15 15
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
16 16
import eu.etaxonomy.taxeditor.editor.internal.TaxeditorEditorPlugin;
17
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
17 18
import eu.etaxonomy.taxeditor.store.VocabularyStore;
18 19

  
19 20
/**
......
33 34
	public void fill(Menu menu, int index){
34 35
		final IHandlerService handlerService = (IHandlerService) TaxeditorEditorPlugin.getDefault().getWorkbench().getService(IHandlerService.class);
35 36
	
36
		for(final TaxonRelationshipType type : VocabularyStore.getConceptRelationshipTypes()){
37
		for(final TaxonRelationshipType type : PreferencesUtil.getPreferredTaxonRelationshipTypes()){
37 38
			MenuItem menuItem = new MenuItem(menu, -1);
38 39
			menuItem.setText(type.getLabel());
39 40
			menuItem.setData(type);
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/propertysheet/type/wizard/ChooseSpecimenTypeWizardPage.java
33 33
import eu.etaxonomy.cdm.model.occurrence.Specimen;
34 34
import eu.etaxonomy.cdm.model.reference.ReferenceBase;
35 35
import eu.etaxonomy.taxeditor.editor.reference.ReferenceSelectComposite;
36
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
36 37
import eu.etaxonomy.taxeditor.store.CdmStore;
37 38
import eu.etaxonomy.taxeditor.store.VocabularyStore;
38 39

  
......
86 87
		// Create designation type status dropdown 
87 88
		statusCombo = new Combo(container, SWT.BORDER);
88 89
		statusCombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
89
		typeStatusArray = new SpecimenTypeDesignationStatus[VocabularyStore.getSpecimenTypeDesignationStatus().size()];
90
		typeStatusArray = new SpecimenTypeDesignationStatus[PreferencesUtil.getPreferredSpecimenTypeDesignationStatus().size()];
90 91
		int i = 0;
91 92
		int selectedIndex = -1;
92 93
		

Also available in: Unified diff