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.application/plugin.xml
152 152
               commandId="org.eclipse.ui.file.import"
153 153
               label="%command.label.3"
154 154
               style="push">
155
            <visibleWhen
156
                  checkEnabled="true">
157
               <reference
158
                     definitionId="isCdmStoreConnected">
159
               </reference>
160
            </visibleWhen>
155 161
         </command>
156 162
         <command
157 163
               commandId="org.eclipse.ui.file.export"
158 164
               label="%command.label.4"
159 165
               style="push">
166
            <visibleWhen
167
                  checkEnabled="true">
168
               <reference
169
                     definitionId="isCdmStoreConnected">
170
               </reference>
171
            </visibleWhen>
160 172
         </command>
161 173
         <separator
162 174
               name="eu.etaxonomy.taxeditor.application.filemenu.io"
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>
eu.etaxonomy.taxeditor.navigation/plugin.xml
47 47
         <dynamic
48 48
               class="eu.etaxonomy.taxeditor.navigation.RecentNamesContributionItem"
49 49
               id="eu.etaxonomy.taxeditor.navigation.recentnames">
50
            <visibleWhen
51
                  checkEnabled="true">
52
               <reference
53
                     definitionId="isCdmStoreConnected">
54
               </reference>
55
            </visibleWhen>
50 56
         </dynamic>
51 57
      </menuContribution>
52 58
      <menuContribution
......
59 65
                  name="org.eclipse.ui.views.showView.viewId"
60 66
                  value="eu.etaxonomy.taxeditor.navigation.navigator">
61 67
            </parameter>
68
            <visibleWhen
69
                  checkEnabled="true">
70
               <reference
71
                     definitionId="isCdmStoreConnected">
72
               </reference>
73
            </visibleWhen>
62 74
         </command>
63 75
         <command
64 76
               commandId="org.eclipse.ui.views.showView"
......
68 80
                  name="org.eclipse.ui.views.showView.viewId"
69 81
                  value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
70 82
            </parameter>
83
            <visibleWhen
84
                  checkEnabled="true">
85
               <reference
86
                     definitionId="isCdmStoreConnected">
87
               </reference>
88
            </visibleWhen>
71 89
         </command>
72 90
      </menuContribution>
73 91
      <menuContribution
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