Revision 207 tmp/org.txm.rcp/plugin.xml

plugin.xml (revision 207)
224 224
	</factory>
225 225

  
226 226

  
227
	<factory 
228
		adaptableType="org.txm.stat.data.LexicalTable" 
229
		class="org.txm.rcpapplication.AdapterFactory">
230
		<adapter type="org.eclipse.ui.model.IWorkbenchAdapter"/>
231
	</factory>
232 227

  
233 228
	<factory 
234 229
		adaptableType="org.txm.functions.concordances.Concordance" 
......
243 238
    </adapter>
244 239
 </factory>
245 240
 <factory
246
       adaptableType="org.txm.functions.cooccurrences.Cooccurrence"
247
       class="org.txm.rcpapplication.AdapterFactory">
248
    <adapter
249
          type="org.eclipse.ui.model.IWorkbenchAdapter">
250
    </adapter>
251
 </factory>
252
 <factory
253
       adaptableType="org.txm.stat.data.LexicalTable"
254
       class="org.txm.rcpapplication.AdapterFactory">
255
    <adapter
256
          type="org.eclipse.ui.model.IWorkbenchAdapter">
257
    </adapter>
258
 </factory>
259
 <factory
260 241
       adaptableType="org.txm.functions.referencer.Referencer"
261 242
       class="org.txm.rcpapplication.AdapterFactory">
262 243
    <adapter
......
340 321
            name="%editor.name.8">
341 322
      </editor>
342 323
      <editor
343
            class="org.txm.rcpapplication.editors.cooccurrences.CooccurrencesEditor"
344
            default="false"
345
            icon="icons/functions/Cooccurrences.png"
346
            id="org.txm.rcpapplication.editors.cooccurrences.CooccurrencesEditor"
347
            name="%editor.name.9">
348
      </editor>
349
      <editor
350
            class="org.txm.rcpapplication.editors.lexicaltable.LexicalTableEditor"
351
            default="false"
352
            icon="icons/objects/lexicaltable.png"
353
            id="org.txm.rcpapplication.editors.lexicaltable.LexicalTableEditor"
354
            name="%editor.name.11">
355
      </editor>
356
      <editor
357 324
            class="org.txm.rcpapplication.editors.dictionnary.DictionnaryEditor"
358 325
            default="false"
359 326
            icon="icons/functions/IndexP.png"
......
482 449
      </page>
483 450
      <page
484 451
            category="org.txm.rcpapplication.preferences.UserPreferencePage"
485
            class="org.txm.rcpapplication.preferences.CoocPreferencePage"
486
            id="org.txm.rcpapplication.preferences.CoocPreferencePage"
487
            name="%page.name.11">
488
      </page>
489
      <page
490
            category="org.txm.rcpapplication.preferences.UserPreferencePage"
491 452
            class="org.txm.rcpapplication.preferences.ExportPreferencePage"
492 453
            id="org.txm.rcpapplication.preferences.ExportPreferencePage"
493 454
            name="%page.name.12">
494 455
      </page>
495 456
      <page
496 457
            category="org.txm.rcpapplication.preferences.UserPreferencePage"
497
            class="org.txm.rcpapplication.preferences.LexicalTablePreferencePage"
498
            id="org.txm.rcpapplication.preferences.LexicalTablePreferencePage"
499
            name="%page.name.13">
500
      </page>
501
      <page
502
            category="org.txm.rcpapplication.preferences.UserPreferencePage"
503 458
            class="org.txm.rcpapplication.preferences.ReferencerPreferencePage"
504 459
            id="org.txm.rcpapplication.preferences.ReferencerPreferencePage"
505 460
            name="%page.name.16">
......
781 736
                  </visibleWhen>
782 737
               </command>
783 738
               <command
784
                     commandId="org.txm.rcp.chartsengine.base.commands.ExportChart"
785
                     icon="icons/functions/export_chart.png"
786
                     label="%command.label.42"
787
                     style="push">
788
                  <visibleWhen
789
                        checkEnabled="false">
790
                     <or>
791
                        <reference
792
                              definitionId="OneCASelected">
793
                        </reference>
794
                     </or>
795
                  </visibleWhen>
796
               </command>
797
               <command
798 739
                     commandId="org.txm.rcpapplication.commands.function.ExportSVG"
799 740
                     icon="icons/functions/exportSVG.png"
800 741
                     label="%command.label.101"
......
1277 1218
               </visibleWhen>
1278 1219
            </command>
1279 1220
            <command
1280
                  commandId="org.txm.rcpapplication.commands.function.ComputeLexicalTable"
1281
                  icon="icons/objects/lexicaltable.png"
1282
                  label="%command.label.89"
1283
                  style="push"
1284
                  tooltip="%command.tooltip.51">
1285
               <visibleWhen
1286
                     checkEnabled="false">
1287
                  <or>
1288
                     <reference
1289
                           definitionId="OnePartitionSelected">
1290
                     </reference>
1291
                     <reference
1292
                           definitionId="OneIndexSelected">
1293
                     </reference>
1294
                     <reference
1295
                           definitionId="OneLexicalTableAbleSelected">
1296
                     </reference>
1297
                  </or>
1298
               </visibleWhen>
1299
            </command>
1300
            <command
1301 1221
                  commandId="org.txm.rcpapplication.commands.annotation.SaveAnnotations"
1302 1222
                  icon="icons/functions/save.png"
1303 1223
                  label="%command.label.111"
......
1357 1277
                  </reference>
1358 1278
               </visibleWhen>
1359 1279
            </command>
1360
            <command
1361
                  commandId="org.txm.rcpapplication.commands.function.ComputeCooccurrences"
1362
                  icon="icons/functions/Cooccurrences.png"
1363
                  label="%command.label.91"
1364
                  style="push"
1365
                  tooltip="%command.tooltip.53">
1366
               <visibleWhen
1367
                     checkEnabled="false">
1368
                  <or>
1369
                     <reference
1370
                           definitionId="OneCorpusSelected">
1371
                     </reference>
1372
                     <reference
1373
                           definitionId="OneConcordanceSelected">
1374
                     </reference>
1375
                  </or>
1376
               </visibleWhen>
1377
            </command>
1378 1280
            
1379 1281
            <command
1380 1282
                  commandId="org.txm.rcpapplication.commands.function.ComputeReferencer"
......
1801 1703
               </visibleWhen>
1802 1704
            </command>
1803 1705
            <command
1804
                  commandId="org.txm.rcp.chartsengine.base.commands.ExportChart"
1805
                  icon="icons/functions/export_chart.png"
1806
                  label="%command.label.42"
1807
                  style="push">
1808
               <visibleWhen
1809
                     checkEnabled="false">
1810
                  <or>
1811
                     <reference
1812
                           definitionId="OneCASelected">
1813
                     </reference>
1814
                  </or>
1815
               </visibleWhen>
1816
            </command>
1817
            <command
1818 1706
                  commandId="org.txm.rcpapplication.commands.function.ExportSVG"
1819 1707
                  icon="icons/functions/exportSVG.png"
1820 1708
                  label="%command.label.101"
......
1936 1824
               </visibleWhen>
1937 1825
            </command>
1938 1826
            <command
1939
                  commandId="org.txm.rcpapplication.commands.function.ComputeLexicalTable"
1940
                  icon="icons/objects/lexicaltable.png"
1941
                  label="%command.label.94"
1942
                  style="push"
1943
                  tooltip="%command.tooltip.55">
1944
               <visibleWhen
1945
                     checkEnabled="false">
1946
                  <or>
1947
                     <reference
1948
                           definitionId="OnePartitionSelected">
1949
                     </reference>
1950
                     <reference
1951
                           definitionId="OneIndexSelected">
1952
                     </reference>
1953
                     <reference
1954
                           definitionId="OneLexicalTableAbleSelected">
1955
                     </reference>
1956
                  </or>
1957
               </visibleWhen>
1958
            </command>
1959
            <command
1960 1827
                  commandId="org.txm.rcpapplication.commands.annotation.SaveAnnotations"
1961 1828
                  icon="icons/functions/save.png"
1962 1829
                  label="%command.label.151"
......
2020 1887
               </visibleWhen>
2021 1888
            </command>
2022 1889
            <command
2023
                  commandId="org.txm.rcpapplication.commands.function.ComputeCooccurrences"
2024
                  icon="icons/functions/Cooccurrences.png"
2025
                  label="%command.label.96"
2026
                  style="push"
2027
                  tooltip="%command.tooltip.57">
2028
               <visibleWhen
2029
                     checkEnabled="false">
2030
                  <or>
2031
                     <reference
2032
                           definitionId="OneCorpusSelected">
2033
                     </reference>
2034
                     <reference
2035
                           definitionId="OneConcordanceSelected">
2036
                     </reference>
2037
                  </or>
2038
               </visibleWhen>
2039
            </command>
2040
            <command
2041 1890
                  commandId="org.txm.rcpapplication.commands.function.ComputeReferencer"
2042 1891
                  icon="icons/functions/Referencer.png"
2043 1892
                  label="%command.label.108"
......
2671 2520
               </visibleWhen>
2672 2521
            </command>
2673 2522
            <command
2674
                  commandId="org.txm.rcp.chartsengine.base.commands.ExportChart"
2675
                  icon="icons/functions/export_chart.png"
2676
                  label="%command.label.42"
2677
                  style="push">
2678
               <visibleWhen
2679
                     checkEnabled="false">
2680
                  <or>
2681
                     <reference
2682
                           definitionId="OneCASelected">
2683
                     </reference>
2684
                  </or>
2685
               </visibleWhen>
2686
            </command>
2687
            <command
2688 2523
                  commandId="org.txm.rcpapplication.commands.function.ExportSVG"
2689 2524
                  icon="icons/functions/exportSVG.png"
2690 2525
                  label="%command.label.101"
......
2802 2637
               </reference>
2803 2638
            </visibleWhen>
2804 2639
         </command>
2805
         <command
2806
               commandId="org.txm.rcpapplication.commands.function.ComputeLexicalTable"
2807
               icon="icons/objects/lexicaltable.png"
2808
               label="%command.label.97"
2809
               style="push"
2810
               tooltip="%command.tooltip.58">
2811
            <visibleWhen
2812
                  checkEnabled="false">
2813
               <or>
2814
                  <reference
2815
                        definitionId="OnePartitionSelected">
2816
                  </reference>
2817
                  <reference
2818
                        definitionId="OneIndexSelected">
2819
                  </reference>
2820
                  <reference
2821
                        definitionId="OneLexicalTableAbleSelected">
2822
                  </reference>
2823
               </or>
2824
            </visibleWhen>
2825
         </command>
2826 2640
        
2827 2641
         <separator
2828 2642
               name="org.txm.rcpapplication.separator53"
......
2873 2687
            </visibleWhen>
2874 2688
         </command>
2875 2689
         <command
2876
               commandId="org.txm.rcpapplication.commands.function.ComputeCooccurrences"
2877
               icon="icons/functions/Cooccurrences.png"
2878
               label="%command.label.96"
2879
               style="push"
2880
               tooltip="%command.tooltip.57">
2881
            <visibleWhen
2882
                  checkEnabled="false">
2883
               <or>
2884
                  <reference
2885
                        definitionId="OneCorpusSelected">
2886
                  </reference>
2887
                  <reference
2888
                        definitionId="OneConcordanceSelected">
2889
                  </reference>
2890
               </or>
2891
            </visibleWhen>
2892
         </command>
2893
         <command
2894 2690
               commandId="org.txm.rcpapplication.commands.function.ComputeReferencer"
2895 2691
               icon="icons/functions/Referencer.png"
2896 2692
               label="%command.label.108"
......
3109 2905
         </command>
3110 2906
      </menuContribution>
3111 2907
      <menuContribution
3112
            locationURI="popup:org.txm.rcpapplication.editors.lexicaltable.LexicalTableEditor">
3113
         <command
3114
               commandId="org.txm.rcpapplication.commands.editor.DeleteLines"
3115
               label="%command.label.104"
3116
               style="push">
3117
         </command>
3118
         <command
3119
               commandId="org.txm.rcpapplication.commands.editor.MergeLines"
3120
               label="%command.label.105"
3121
               style="push">
3122
         </command>
3123
         <separator
3124
               name="org.txm.rcp.LT.separator1"
3125
               visible="true">
3126
         </separator>
3127
         <command
3128
               commandId="org.txm.rcpapplication.commands.editor.ExportLexicalTable"
3129
               label="%command.label.106"
3130
               style="push">
3131
         </command>
3132
         <command
3133
               commandId="org.txm.rcpapplication.commands.editor.ImportTable"
3134
               label="%command.label.107"
3135
               style="push">
3136
         </command>
3137
      </menuContribution>
3138
      <menuContribution
3139 2908
            locationURI="popup:org.txm.rcpapplication.editors.referencer.ReferencerEditor">
3140 2909
         <command
3141 2910
               commandId="org.txm.rcpapplication.commands.link.ReferencerToConc"
......
3400 3169
               style="push">
3401 3170
         </command>
3402 3171
      </menuContribution>
3403
      <menuContribution
3404
            locationURI="popup:org.txm.rcpapplication.editors.specificities.SpecificitiesTableEditor">
3405
         <command
3406
               commandId="org.txm.rcpapplication.commands.function.ComputeSpecifictiesBarChart"
3407
               style="push">
3408
         </command>
3409
      </menuContribution>
3410 3172
   </extension>
3411 3173
   <extension
3412 3174
         id="general"
......
3498 3260
            id="org.txm.rcpapplication.commands.editor.DeleteLines"
3499 3261
            name="%command.name.37">
3500 3262
      </command>
3501
      <command
3502
            defaultHandler="org.txm.rcpapplication.commands.editor.MergeLines"
3503
            id="org.txm.rcpapplication.commands.editor.MergeLines"
3504
            name="%command.name.38">
3505
      </command>
3506
      <command
3507
            defaultHandler="org.txm.rcpapplication.commands.editor.ExportLexicalTable"
3508
            id="org.txm.rcpapplication.commands.editor.ExportLexicalTable"
3509
            name="%command.name.39">
3510
      </command>
3511
      <command
3512
            defaultHandler="org.txm.rcpapplication.commands.editor.ImportTable"
3513
            id="org.txm.rcpapplication.commands.editor.ImportTable"
3514
            name="%command.name.40">
3515
      </command>
3516 3263
      
3517 3264
      <command
3518 3265
            defaultHandler="org.txm.rcpapplication.commands.ExecuteRScript"
......
3818 3565
      </command>
3819 3566
      <command
3820 3567
            categoryId="org.txm.rcpapplication.category.txm"
3821
            defaultHandler="org.txm.rcpapplication.commands.function.ComputeCooccurrences"
3822
            id="org.txm.rcpapplication.commands.function.ComputeCooccurrences"
3823
            name="%command.name.35">
3824
      </command>
3825
      <command
3826
            categoryId="org.txm.rcpapplication.category.txm"
3827 3568
            defaultHandler="org.txm.rcpapplication.commands.function.ComputeReferencer"
3828 3569
            id="org.txm.rcpapplication.commands.function.ComputeReferencer"
3829 3570
            name="%command.name.44">
3830 3571
      </command>
3831 3572
      <command
3832
            categoryId="org.txm.rcpapplication.category.txm"
3833
            defaultHandler="org.txm.rcpapplication.commands.function.ComputeLexicalTable"
3834
            id="org.txm.rcpapplication.commands.function.ComputeLexicalTable"
3835
            name="%command.name.36">
3836
      </command>
3837
      <command
3838 3573
            defaultHandler="org.txm.rcpapplication.commands.function.ExportResult"
3839 3574
            id="org.txm.rcpapplication.commands.function.ExportResult"
3840 3575
            name="%command.name.24">
......
4186 3921
                        ifEmpty="false"
4187 3922
                        operator="and">
4188 3923
                     <instanceof
4189
                           value="org.txm.functions.ca.CA">
3924
                           value="org.txm.ca.core.functions.CA">
4190 3925
                     </instanceof>
4191 3926
                  </iterate>
4192 3927
               </with>
4193 3928
            </definition>
4194 3929
            <definition
3930
                  id="OneProgressionSelected">
3931
               <with
3932
                     variable="selection">
3933
                  <iterate
3934
                        ifEmpty="false"
3935
                        operator="and">
3936
                     <instanceof
3937
                           value="org.txm.progression.core.functions.Progression">
3938
                     </instanceof>
3939
                  </iterate>
3940
               </with>
3941
            </definition>
3942
            <definition
4195 3943
                  id="OneResultSelected">
4196 3944
               <visibleWhen
4197 3945
                     checkEnabled="false">
......
4292 4040
               </with>
4293 4041
            </definition>
4294 4042
            <definition
4295
                  id="OneProgressionSelected">
4296
               <with
4297
                     variable="selection">
4298
                  <iterate
4299
                        ifEmpty="false"
4300
                        operator="and">
4301
                     <instanceof
4302
                           value="org.txm.functions.progression.Progression">
4303
                     </instanceof>
4304
                  </iterate>
4305
               </with>
4306
            </definition>
4307
            <definition
4308 4043
                  id="OneQueryLogSelected">
4309 4044
               <with
4310 4045
                     variable="selection">

Also available in: Unified diff