Project

General

Profile

« Previous | Next » 

Revision 19fa310b

Added by Cherian Mathew over 9 years ago

CdmAuthorityEditor : Editor for updating Cdm authorities
CdmAuthorityEditorInput : Input for the CdmAuthorityEditor
EditCdmAuthoritiesHandler : Handler to open CdmAuthorityEditor
EditorUtil : added method to open CdmAuthorityEditor
plugin.xml : added extensions to the BulkEditor menu to open the CdmAuthorityEditor checking if the selected object is Group

View differences:

eu.etaxonomy.taxeditor.editor/plugin.xml
52 52
            id="eu.etaxonomy.taxeditor.editor.key.polytomous.list"
53 53
            name="Polytomous Key List Editor">
54 54
      </editor>
55
      <editor
56
            class="eu.etaxonomy.taxeditor.editor.group.authority.CdmAuthorityEditor"
57
            default="false"
58
            id="eu.etaxonomy.taxeditor.editor.group.authority"
59
            name="Cdm Authority Editor">
60
      </editor>
55 61
   </extension>
56 62
      <extension
57 63
            point="org.eclipse.ui.views">
......
669 675
               style="push">
670 676
         </command>
671 677
      </menuContribution>
678
      <menuContribution
679
            allPopups="false"
680
            locationURI="popup:#BulkEditorContext?before=taxeditor-bulkeditor.separator1">
681
         <command
682
               commandId="eu.etaxonomy.taxeditor.group.cdmauthorities.edit"
683
               label="Edit Authorities"
684
               style="push">
685
            <visibleWhen>
686
               <reference
687
                     definitionId="isGroup">
688
               </reference>
689
            </visibleWhen>
690
         </command>
691
      </menuContribution>
672 692
   </extension>
673 693
   <extension
674 694
         point="org.eclipse.ui.handlers">
......
998 1018
            id="eu.etaxonomy.taxeditor.editor.view.concept.command.open"
999 1019
            name="Open Related Concept">
1000 1020
      </command>
1021
      <category
1022
            id="eu.etaxonomy.taxeditor.bulkeditor.group.category"
1023
            name="-- Group">
1024
      </category>
1025
      <command
1026
            categoryId="eu.etaxonomy.taxeditor.bulkeditor.group.category"
1027
            defaultHandler="eu.etaxonomy.taxeditor.editor.group.authority.handler.EditCdmAuthoritiesHandler"
1028
            id="eu.etaxonomy.taxeditor.group.cdmauthorities.edit"
1029
            name="Edit CDM Authorities">
1030
      </command>
1001 1031
   </extension>
1002 1032
   <extension
1003 1033
         point="org.eclipse.core.expressions.definitions">
......
1118 1148
            </test>
1119 1149
         </with>
1120 1150
      </definition>
1151
      <definition
1152
            id="isGroup">
1153
         <with
1154
               variable="activeEditor">
1155
            <test
1156
                  property="taxeditor-bulkeditor.propertyTester.isGroup">
1157
            </test>
1158
         </with>
1159
      </definition>
1121 1160
   </extension>
1122 1161
   <extension
1123 1162
         point="org.eclipse.core.expressions.propertyTesters">
......
1135 1174
            properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery"
1136 1175
            type="org.eclipse.jface.viewers.TreeSelection">
1137 1176
      </propertyTester>
1177
      <propertyTester
1178
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
1179
            id="taxeditor-bulkeditor.PropertyTester"
1180
            namespace="taxeditor-bulkeditor.propertyTester"
1181
            properties="isGroup"
1182
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
1183
      </propertyTester>
1138 1184
   </extension>
1139 1185
   <extension
1140 1186
         point="org.eclipse.ui.bindings">   

Also available in: Unified diff