Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8f9bc169d757a044b08a1199eb6fcafe5a445060 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

<!-- Adapter factory contributions -->
   <extension point="org.eclipse.core.runtime.adapters">
      <factory
            adaptableType="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"
            class="org.eclipse.tcf.te.tcf.ui.internal.adapters.AdapterFactory">
         <adapter type="org.eclipse.jface.viewers.ILabelProvider"/>
         <adapter type="org.eclipse.tcf.te.ui.views.interfaces.handler.IRefreshHandlerDelegate"/>
         <adapter type="org.eclipse.tcf.te.ui.views.interfaces.handler.IDeleteHandlerDelegate"/>
      </factory>
   </extension>   

<!-- Event listener contributions -->
   <extension point="org.eclipse.tcf.te.runtime.eventListeners">
      <eventListener
            class="org.eclipse.tcf.te.tcf.ui.navigator.EventListener">
         <eventSourceType
               bundleId="org.eclipse.tcf.te.tcf.locator"
               class="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel">
         </eventSourceType>
      </eventListener>
   </extension>

<!-- Common navigator contributions -->
   <extension point="org.eclipse.ui.navigator.viewer">
      <viewerContentBinding viewerId="org.eclipse.tcf.te.ui.views.View">
         <includes>
            <contentExtension
                  isRoot="true"
                  pattern="org.eclipse.tcf.te.tcf.ui.navigator.*"/>
         </includes>
      </viewerContentBinding>
   </extension>
   
   <extension point="org.eclipse.ui.navigator.navigatorContent">
      <navigatorContent
            activeByDefault="true"
            contentProvider="org.eclipse.tcf.te.tcf.ui.navigator.ContentProviderDelegate"
            icon="icons/obj16/rootNode_obj.gif"
            id="org.eclipse.tcf.te.tcf.ui.navigator.content"
            labelProvider="org.eclipse.tcf.te.tcf.ui.navigator.LabelProvider"
            name="%navigatorContent.name"
            priority="normal">
            <enablement>
               <or>
                  <instanceof value="org.eclipse.tcf.te.ui.views.interfaces.ICategory"/>
                  <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                  <instanceof value="org.eclipse.tcf.te.tcf.ui.navigator.nodes.PeerRedirectorGroupNode"/>
               </or>
            </enablement>
            <commonSorter
                  class="org.eclipse.tcf.te.ui.trees.TreeViewerSorter"
                  id="org.eclipse.tcf.te.tcf.ui.navigator.sorter"/>
            <commonWizard
                  type="new"
                  wizardId="org.eclipse.tcf.te.tcf.ui.wizards.NewTargetWizard">
               <enablement>
                  <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
               </enablement>
            </commonWizard>
      </navigatorContent>
      <commonFilter
            activeByDefault="false"
            class="org.eclipse.tcf.te.tcf.ui.filter.UnreachablePeersFilter"
            id="org.eclipse.tcf.te.tcf.ui.navigator.UnreachablePeersFilter"
            name="%UnreachablePeersFilter.name"
            visibleInUI="true">
      </commonFilter>
      <commonFilter
            activeByDefault="true"
            class="org.eclipse.tcf.te.tcf.ui.filter.RedirectPeersFilter"
            id="org.eclipse.tcf.te.tcf.ui.navigator.RedirectPeersFilter"
            name="%RedirectPeersFilter.name"
            visibleInUI="false">
      </commonFilter>
      <commonFilter
            activeByDefault="false"
            class="org.eclipse.tcf.te.tcf.ui.filter.PeersByCurrentUserFilter"
            id="org.eclipse.tcf.te.tcf.ui.navigator.PeersByCurrentUserFilter"
            name="%PeersByCurrentUserFilter.name"
            visibleInUI="true">
      </commonFilter>
   </extension>

<!-- New target wizard contributions -->
   <extension point="org.eclipse.tcf.te.ui.newWizards">
      <category
            id="org.eclipse.tcf.te.tcf.ui.newWizards.category"
            name="%NewWizards.category.name">
      </category>
      <wizard
            canFinishEarly="true"
            category="org.eclipse.tcf.te.tcf.ui.newWizards.category"
            class="org.eclipse.tcf.te.tcf.ui.wizards.NewTargetWizard"
            hasPages="false"
            icon="icons/elcl16/newTarget_wiz.gif"
            id="org.eclipse.tcf.te.tcf.ui.wizards.NewTargetWizard"
            name="%NewTargetWizard.name">
            <description>
               %NewTargetWizard.description
            </description>
      </wizard>
   </extension>
   
<!-- Editor page contributions -->
   <extension point="org.eclipse.tcf.te.ui.views.editorPages">
      <editorPage
            class="org.eclipse.tcf.te.tcf.ui.editor.OverviewEditorPage"
            name="%OverviewEditorPage.name"
            id="org.eclipse.tcf.te.tcf.ui.OverviewEditorPage">
      </editorPage>
   </extension>

<!-- Editor page binding contributions -->
   <extension point="org.eclipse.tcf.te.ui.views.editorPageBindings">
      <editorPageBinding
            id="org.eclipse.tcf.te.tcf.ui.binding.OverviewEditorPage"
            pageId="org.eclipse.tcf.te.tcf.ui.OverviewEditorPage"
            insertBefore="first">
         <enablement>
            <with variable="activeEditorInput">
               <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
            </with>
         </enablement>
      </editorPageBinding>
   </extension>

<!-- Preference page contributions -->
   <extension point="org.eclipse.ui.preferencePages">
      <page
            category="org.eclipse.tcf.te.ui.preferences.general"
            class="org.eclipse.tcf.te.tcf.ui.preferences.LoggingPreferencePage"
            id="org.eclipse.tcf.te.ui.preferences.tcf.logging"
            name="%preference.page.name">
      </page>
   </extension>

<!-- Menu contributions -->
   <extension point="org.eclipse.ui.menus">
      <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.redirect">
         <command
               commandId="org.eclipse.tcf.te.tcf.ui.command.redirect"
               helpContextId="org.eclipse.tcf.te.tcf.ui.command_Redirect"
               id="org.eclipse.tcf.te.tcf.ui.commands.redirect"
               label="%command.redirect.label"
               mnemonic="e"
               style="push"
               tooltip="%command.redirect.tooltip">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <count value="+"/>
                  <iterate operator="and" ifEmpty="false">
                     <and>
                        <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                        <test property="org.eclipse.tcf.te.tcf.locator.isStaticPeer" value="true"/>
                     </and>                        
                  </iterate>
               </with>
            </visibleWhen>
         </command>

         <command
               commandId="org.eclipse.tcf.te.tcf.ui.command.resetredirect"
               helpContextId="org.eclipse.tcf.te.tcf.ui.command_ResetRedirect"
               id="org.eclipse.tcf.te.tcf.ui.commands.resetredirect"
               label="%command.resetredirect.label"
               mnemonic="s"
               style="push"
               tooltip="%command.resetredirect.tooltip">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <count value="+"/>
                  <iterate operator="and" ifEmpty="false">
                     <and>
                        <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                        <test property="org.eclipse.tcf.te.tcf.locator.isStaticPeer" value="true"/>
                     </and>                        
                  </iterate>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>

<!-- Command contributions -->
   <extension point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.tcf.te.ui.commands.category"
            helpContextId="org.eclipse.tcf.te.tcf.ui.command_Redirect"
            id="org.eclipse.tcf.te.tcf.ui.command.redirect"
            name="%command.redirect.name">
      </command>
      <command
            categoryId="org.eclipse.tcf.te.ui.commands.category"
            helpContextId="org.eclipse.tcf.te.tcf.ui.command_ResetRedirect"
            id="org.eclipse.tcf.te.tcf.ui.command.resetredirect"
            name="%command.resetredirect.name">
      </command>
   </extension>

<!-- Handler contributions -->
   <extension point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.tcf.te.tcf.ui.handler.RedirectHandler"
            commandId="org.eclipse.tcf.te.tcf.ui.command.redirect">
            <activeWhen>
               <with variable="activePartId">
                  <equals value="org.eclipse.tcf.te.ui.views.View"/>
               </with>
            </activeWhen>
            <enabledWhen>
               <with variable="selection">
                  <count value="1"/>
                  <iterate operator="and" ifEmpty="false">
                     <and>
                        <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                        <test property="org.eclipse.tcf.te.tcf.locator.isRedirected" value="false"/>
                     </and>
                  </iterate>
               </with>
            </enabledWhen>
      </handler>
      
      <handler
            class="org.eclipse.tcf.te.tcf.ui.handler.ResetRedirectHandler"
            commandId="org.eclipse.tcf.te.tcf.ui.command.resetredirect">
            <activeWhen>
               <with variable="activePartId">
                  <equals value="org.eclipse.tcf.te.ui.views.View"/>
               </with>
            </activeWhen>
            <enabledWhen>
               <with variable="selection">
                  <count value="1"/>
                  <iterate operator="and" ifEmpty="false">
                     <and>
                        <instanceof value="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                        <test property="org.eclipse.tcf.te.tcf.locator.isRedirected" value="true"/>
                     </and>
                  </iterate>
               </with>
            </enabledWhen>
      </handler>
   </extension>
   
<!-- Tabbed properties view contributions -->   
   <extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
      <propertyTabs contributorId="org.eclipse.tcf.te.ui">
         <propertyTab
               category="org.eclipse.tcf.te"
               id="org.eclipse.tcf.te.ui.views.propertyTab.peer.general"
               label="%propertyTab.general.label">
         </propertyTab>
      </propertyTabs>
   </extension>
   
   <extension point="org.eclipse.ui.views.properties.tabbed.propertySections">
      <propertySections contributorId="org.eclipse.tcf.te.ui">
         <propertySection
               class="org.eclipse.tcf.te.tcf.ui.internal.tabbed.PeerGeneralSection"
               enablesFor="1"
               id="org.eclipse.tcf.te.ui.views.propertysections.peer.general"
               tab="org.eclipse.tcf.te.ui.views.propertyTab.peer.general">
            <input type="org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel"/>
         </propertySection>
      </propertySections>
   </extension>
   
</plugin>

Back to the top