Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 66d16e7526fdd17b70f77117071a20041e1a7d28 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

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

<!-- New target wizard contributions -->

   <extension point="org.eclipse.tm.te.ui.newWizards">
      <category
            id="org.eclipse.tm.te.tcf.ui.newWizards.category"
            name="%NewWizards.category.name">
      </category>
      <wizard
            category="org.eclipse.tm.te.tcf.ui.newWizards.category"
            class="org.eclipse.tm.te.tcf.ui.wizards.NewTargetWizard"
            icon="icons/elcl16/newTarget_wiz.gif"
            id="org.eclipse.tm.te.tcf.ui.wizards.NewTargetWizard"
            name="%NewTargetWizard.name">
            <description>
               %NewTargetWizard.description
            </description>
      </wizard>
   </extension>
   
<!-- Target Explorer Details Editor page contributions -->
   <extension point="org.eclipse.tm.te.ui.views.editorPages">
      <editorPage
            class="org.eclipse.tm.te.tcf.ui.internal.editor.pages.NodePropertiesEditorPage"
            name="%NodePropertiesEditorPage.name"
            id="org.eclipse.tm.te.tcf.ui.NodePropertiesEditorPage">
      </editorPage>
   </extension>

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

<!-- Target Explorer menu contributions -->
   <extension point="org.eclipse.ui.menus">
      <menuContribution locationURI="popup:org.eclipse.tm.te.ui.views.TargetExplorer#Popup?after=group.refresh">
         <command
               commandId="org.eclipse.tm.te.tcf.ui.command.refresh"
               disabledIcon="platform:/plugin/org.eclipse.ui/icons/full/dlcl16/refresh_nav.gif"
               helpContextId="org.eclipse.tm.te.tcf.ui.command_Refresh"
               icon="platform:/plugin/org.eclipse.ui/icons/full/elcl16/refresh_nav.gif"
               id="org.eclipse.tm.te.tcf.ui.commands.refresh"
               label="%command.refresh.label"
               style="push"
               tooltip="%command.refresh.tooltip">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <count value="+"/>
                  <iterate operator="and" ifEmpty="false">
                     <instanceof value="org.eclipse.tm.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
         <separator name="operationsGroupMarker" visible="true"/>
      </menuContribution>

      <menuContribution locationURI="popup:org.eclipse.tm.te.ui.views.TargetExplorer#Popup?after=group.delete">
         <command
               commandId="org.eclipse.ui.edit.delete"
               disabledIcon="platform:/plugin/org.eclipse.ui/icons/full/dtool16/delete.gif"
               helpContextId="org.eclipse.tm.te.tcf.ui.command_Delete"
               icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/delete.gif"
               id="org.eclipse.tm.te.tcf.ui.commands.delete"
               label="%command.delete.label"
               style="push"
               tooltip="%command.delete.tooltip">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <count value="+"/>
                  <iterate operator="and" ifEmpty="false">
                     <and>
                        <instanceof value="org.eclipse.tm.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                        <test property="org.eclipse.tm.te.tcf.locator.isStaticPeer" value="true"/>
                     </and>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>

<!-- Target Explorer command contributions -->
   <extension point="org.eclipse.ui.commands">
      <category
            id="org.eclipse.tm.te.tcf.ui.commands.category"
            name="%command.category.name">
      </category>
      <command
            categoryId="org.eclipse.tm.te.tcf.ui.commands.category"
            helpContextId="org.eclipse.tm.te.tcf.ui.command_Refresh"
            id="org.eclipse.tm.te.tcf.ui.command.refresh"
            name="%command.refresh.name">
      </command>
   </extension>

<!-- Target Explorer handler contributions -->
   <extension point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.tm.te.tcf.ui.internal.handler.RefreshCommandHandler"
            commandId="org.eclipse.tm.te.tcf.ui.command.refresh">
            <activeWhen>
               <reference definitionId="te.expressions.tcf.peerModel.handlerActivation"/>
            </activeWhen>
      </handler>
      
      <handler
            class="org.eclipse.tm.te.tcf.ui.internal.handler.DeleteCommandHandler"
            commandId="org.eclipse.ui.edit.delete">
            <activeWhen>
               <reference definitionId="te.expressions.tcf.peerModel.handlerActivation"/>
            </activeWhen>
      </handler>
   </extension>

<!-- Reusable core expression fragments -->   
   <extension point="org.eclipse.core.expressions.definitions">
   
      <!-- Expression to test if the active part is the Target Explorer and
           the selection contains only elements of type IPeerModel.
           
           This expression is for use in the handlers activeWhen markup.  
      -->
      <definition id="te.expressions.tcf.peerModel.handlerActivation">
         <and>
            <with variable="activePartId">
               <equals value="org.eclipse.tm.te.ui.views.TargetExplorer"/>
            </with>
            <with variable="selection">
               <count value="+"/>
               <iterate operator="and" ifEmpty="false">
                  <instanceof value="org.eclipse.tm.te.tcf.locator.interfaces.nodes.IPeerModel"/>
               </iterate>
            </with>
         </and>
      </definition>
   </extension>
</plugin>

Back to the top