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.store/plugin.xml
303 303
                     name="org.eclipse.ui.views.showView.viewId"
304 304
                     value="eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView">
305 305
               </parameter>
306
               <visibleWhen
307
                     checkEnabled="true">
308
                  <reference
309
                        definitionId="isCdmStoreConnected">
310
                  </reference>
311
               </visibleWhen>
306 312
            </command>
307 313
            <separator
308 314
                  name="eu.etaxonomy.taxeditor.store.showViewMenu.details"
......
316 322
                     name="org.eclipse.ui.views.showView.viewId"
317 323
                     value="eu.etaxonomy.taxeditor.view.detail">
318 324
               </parameter>
325
               <visibleWhen
326
                     checkEnabled="true">
327
                  <reference
328
                        definitionId="isCdmStoreConnected">
329
                  </reference>
330
               </visibleWhen>
319 331
            </command>
320 332
            <command
321 333
                  commandId="org.eclipse.ui.views.showView"
......
326 338
                     name="org.eclipse.ui.views.showView.viewId"
327 339
                     value="eu.etaxonomy.taxeditor.view.supplementalData">
328 340
               </parameter>
341
               <visibleWhen
342
                     checkEnabled="true">
343
                  <reference
344
                        definitionId="isCdmStoreConnected">
345
                  </reference>
346
               </visibleWhen>
329 347
            </command>
330 348
            <!-- Originally used by validation framework, currently not in use -->
331 349
	<!--        <command
......
370 388
               </parameter>
371 389
               <visibleWhen
372 390
                     checkEnabled="true">
373
                  <reference
374
                        definitionId="isShowExperimentalFeatures">
375
                  </reference>
391
                  <and>
392
                     <reference
393
                           definitionId="isShowExperimentalFeatures">
394
                     </reference>
395
                     <reference
396
                           definitionId="isCdmStoreConnected">
397
                     </reference>
398
                  </and>
376 399
               </visibleWhen>
377 400
            </command>
378 401
            <command
......
383 406
                     name="org.eclipse.ui.views.showView.viewId"
384 407
                     value="eu.etaxonomy.taxeditor.view.sessions.SessionsViewPart">
385 408
               </parameter>
409
               <visibleWhen
410
                     checkEnabled="true">
411
                  <reference
412
                        definitionId="isCdmStoreConnected">
413
                  </reference>
414
               </visibleWhen>
386 415
            </command>
387 416
         </menu>
388 417
      </menuContribution>

Also available in: Unified diff