Project

General

Profile

« Previous | Next » 

Revision 0bd095d9

Added by Katja Luther over 7 years ago

fix #5971: admin menu is visible only if connected and user has role manager

View differences:

eu.etaxonomy.taxeditor.application/plugin.xml
41 41
            class="eu.etaxonomy.taxeditor.perspective.ChecklistPerspective"
42 42
            icon="icons/check.png"
43 43
            id="eu.etaxonomy.taxeditor.perspective.checklistperspective"
44
            name="Checklist">
44
            name="%perspective.name.3">
45 45
      </perspective>
46 46
     
47 47
   </extension>
......
82 82
         </menu>
83 83
         <menu
84 84
               id="org.eclipse.ui.main.menu.admin"
85
               label="Admin">
85
               label="%menu.label.4">
86 86
         </menu>
87 87
      </menuContribution>
88 88
      <menuContribution
......
281 281
                  locationURI="menu:org.eclipse.ui.main.menu.admin">
282 282
               <command
283 283
                     commandId="eu.etaxonomy.taxeditor.application.DatabaseSettings"
284
                     label="Database Preferences"
284
                     label="%command.label.23"
285 285
                     style="push">
286
                  <visibleWhen
287
                        checkEnabled="true">
288
                     <and>
289
                        <reference
290
                              definitionId="hasROLE_PROJECT_MANAGER">
291
                        </reference>
292
                        <reference
293
                              definitionId="isCdmStoreConnected">
294
                        </reference>
295
                     </and>
296
                  </visibleWhen>
286 297
               </command>
287 298
            </menuContribution>
288 299
   </extension>
......
351 362
            id="eu.etaxonomy.taxeditor.install"
352 363
            name="%command.label.18">
353 364
      </command>
354
      <command
355
            defaultHandler="eu.etaxonomy.taxeditor.handler.OpenDatabasePreferencesWizardHandler"
356
            id="eu.etaxonomy.taxeditor.application.DatabaseSettings"
357
            name="databaseSettings">
358
            
359
      </command>
360 365
   </extension>
361 366
   
362 367
   

Also available in: Unified diff