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

plugin.xml (revision 2245)
178 178
            name="%category.name.7"
179 179
            parentCategory="org.txm.rcp">
180 180
      </category>
181
      <view
182
            category="org.txm.rcp.debug"
183
            class="org.txm.rcp.views.cmdparameters.TXMResultPreferencesView"
184
            icon="icons/functions/Properties.png"
185
            id="org.txm.rcp.views.cmdparameters.TXMResultPreferencesView"
186
            name="Properties"
187
            restorable="true">
188
      </view>
189
      <view
190
            category="org.txm.rcp.debug"
191
            class="org.txm.rcp.views.cmdparameters.TXMResultPreferencesView"
192
            icon="icons/functions/Properties.png"
193
            id="org.txm.rcp.views.cmdparameters.TXMResultPreferencesView"
194
            name="%view.name.11"
195
            restorable="true">
196
      </view>
181 197
   </extension>
182 198
   <extension
183 199
         point="org.eclipse.core.runtime.adapters">
......
196 212
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
197 213
         </adapter>
198 214
      </factory>
215
      <factory
216
            adaptableType="org.txm.objects.Project"
217
            class="org.txm.rcp.adapters.ProjectAdapterFactory">
218
         <adapter
219
               type="org.eclipse.ui.model.IWorkbenchAdapter">
220
         </adapter>
221
      </factory>
222
      <factory
223
            adaptableType="org.eclipse.core.resources.IProject"
224
            class="org.txm.rcp.adapters.RCPProjectAdapterFactory">
225
         <adapter
226
               type="org.eclipse.ui.model.IWorkbenchAdapter">
227
         </adapter>
228
      </factory>
199 229

  
200 230

  
201 231

  
......
998 1028
                  name="menu.corpus.manage"
999 1029
                  visible="true">
1000 1030
            </separator>
1031
            <command
1032
                  commandId="org.txm.rcp.commands.workspace.OpenCorpus"
1033
                  label="Open"
1034
                  style="push">
1035
               <visibleWhen
1036
                     checkEnabled="false">
1037
                  <or>
1038
                     <reference
1039
                           definitionId="OneIProjectSelected">
1040
                     </reference>
1041
                  </or>
1042
               </visibleWhen>
1043
            </command>
1044
            <command
1045
                  commandId="org.txm.rcp.commands.workspace.CloseCorpus"
1046
                  label="Close"
1047
                  style="push">
1048
               <visibleWhen
1049
                     checkEnabled="false">
1050
                  <or>
1051
                     <reference
1052
                           definitionId="OneMainCorpusSelected">
1053
                     </reference>
1054
                  </or>
1055
               </visibleWhen>
1056
            </command>
1001 1057
            
1002 1058
            <separator
1003 1059
                  name="menu.corpus.build"
......
2085 2141
                  </and>
2086 2142
               </visibleWhen>
2087 2143
            </command>
2144
            <command
2145
                  commandId="org.txm.rcp.commands.workspace.OpenCorpus"
2146
                  label="Open"
2147
                  style="push">
2148
               <visibleWhen
2149
                     checkEnabled="false">
2150
                  <or>
2151
                     <reference
2152
                           definitionId="OneIProjectSelected">
2153
                     </reference>
2154
                  </or>
2155
               </visibleWhen>
2156
            </command>
2157
            <command
2158
                  commandId="org.txm.rcp.commands.workspace.CloseCorpus"
2159
                  label="Close"
2160
                  style="push">
2161
               <visibleWhen
2162
                     checkEnabled="false">
2163
                  <or>
2164
                     <reference
2165
                           definitionId="OneMainCorpusSelected">
2166
                     </reference>
2167
                  </or>
2168
               </visibleWhen>
2169
            </command>
2088 2170
            <separator
2089 2171
                  name="org.txm.rcp.corporaview.preferences"
2090 2172
                  visible="true">
......
2653 2735
                  id="org.txm.rcp.handlers.results.OpenPreferences"
2654 2736
                  name="%command.name.57">
2655 2737
            </command>
2738
            <command
2739
                  categoryId="org.txm.rcp.categories.results"
2740
                  defaultHandler="org.txm.rcp.commands.workspace.OpenCorpus"
2741
                  description="Open"
2742
                  id="org.txm.rcp.commands.workspace.OpenCorpus"
2743
                  name="Open">
2744
            </command>
2745
            <command
2746
                  categoryId="org.txm.rcp.categories.results"
2747
                  defaultHandler="org.txm.rcp.commands.workspace.CloseCorpus"
2748
                  description="Close"
2749
                  id="org.txm.rcp.commands.workspace.CloseCorpus"
2750
                  name="Close">
2751
            </command>
2656 2752
   </extension>
2657 2753
   <extension
2658 2754
         id="scripts"
......
2983 3079
                  </instanceof>
2984 3080
               </with>
2985 3081
            </definition>
3082
            <definition
3083
                  id="OneProjectSelected">
3084
               <with
3085
                     variable="selection">
3086
                  <iterate
3087
                        ifEmpty="false"
3088
                        operator="and">
3089
                     <instanceof
3090
                           value="org.eclipse.core.resources.IProject">
3091
                     </instanceof>
3092
                  </iterate>
3093
               </with>
3094
            </definition>
2986 3095
   </extension>
2987 3096
  
2988 3097
   <extension
......
3174 3283
   <extension
3175 3284
         point="org.eclipse.ui.ide.projectNatureImages">
3176 3285
      <image
3177
            icon="icons/objects/books.png"
3286
            icon="icons/objects/project.png"
3178 3287
            id="org.txm.rcp.image1"
3179 3288
            natureId="org.txm.core.CorpusNature">
3180 3289
      </image>
3181 3290
   </extension>
3291
   <extension
3292
         id="id1"
3293
         point="org.eclipse.core.resources.natures">
3294
      <runtime>
3295
         <run
3296
               class="org.txm.core.CorpusNature">
3297
         </run>
3298
      </runtime>
3299
   </extension>
3182 3300
</plugin>

Also available in: Unified diff