Project

General

Profile

« Previous | Next » 

Revision dd7f77fb

Added by Patrick Plitzner over 6 years ago

Disable menu items when not connected to CDM store (#4901)

View differences:

eu.etaxonomy.taxeditor.editor/plugin.xml
321 321
                  name="org.eclipse.ui.views.showView.viewId"
322 322
                  value="eu.etaxonomy.taxeditor.editor.view.descriptive">
323 323
            </parameter>
324
            <visibleWhen
325
                  checkEnabled="true">
326
               <reference
327
                     definitionId="isCdmStoreConnected">
328
               </reference>
329
            </visibleWhen>
324 330
         </command>
325 331
         <command
326 332
               commandId="org.eclipse.ui.views.showView"
......
330 336
                  name="org.eclipse.ui.views.showView.viewId"
331 337
                  value="eu.etaxonomy.taxeditor.editor.view.media">
332 338
            </parameter>
339
            <visibleWhen
340
                  checkEnabled="true">
341
               <reference
342
                     definitionId="isCdmStoreConnected">
343
               </reference>
344
            </visibleWhen>
333 345
         </command>
334 346
         <command
335 347
               commandId="org.eclipse.ui.views.showView"
......
339 351
                  name="org.eclipse.ui.views.showView.viewId"
340 352
                  value="eu.etaxonomy.taxeditor.editor.view.concept">
341 353
            </parameter>
354
            <visibleWhen
355
                  checkEnabled="true">
356
               <reference
357
                     definitionId="isCdmStoreConnected">
358
               </reference>
359
            </visibleWhen>
342 360
         </command>
343 361
         <command
344 362
               commandId="org.eclipse.ui.views.showView"
......
349 367
                  value="eu.etaxonomy.taxeditor.editor.view.concept.graph">
350 368
            </parameter>
351 369
            <visibleWhen
352
                  checkEnabled="false">
353
               <reference
354
                     definitionId="isShowExperimentalFeatures">
355
               </reference>
370
                  checkEnabled="true">
371
               <and>
372
                  <reference
373
                        definitionId="isShowExperimentalFeatures">
374
                  </reference>
375
                  <reference
376
                        definitionId="isCdmStoreConnected">
377
                  </reference>
378
               </and>
356 379
            </visibleWhen>
357 380
         </command>
358 381
      </menuContribution>
......
1026 1049
                  name="org.eclipse.ui.views.showView.viewId"
1027 1050
                  value="eu.etaxonomy.taxeditor.editor.view.validation.problems">
1028 1051
            </parameter>
1052
            <visibleWhen
1053
                  checkEnabled="true">
1054
               <reference
1055
                     definitionId="isCdmStoreConnected">
1056
               </reference>
1057
            </visibleWhen>
1029 1058
         </command>
1030 1059
      </menuContribution>
1031 1060
   </extension>

Also available in: Unified diff