Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2368cce5f97505d98926d54e69f728fff2dd5c1f (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
<?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">
            <triggerPoints>
               <instanceof value="org.eclipse.tm.te.ui.views.interfaces.IRoot"/>
            </triggerPoints>
            <commonSorter
                  class="org.eclipse.tm.te.tcf.ui.internal.navigator.Sorter"
                  id="org.eclipse.tm.te.tcf.ui.navigator.sorter"/>
      </navigatorContent>
   </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.new">
         <command
               commandId="org.eclipse.tm.te.tcf.ui.command.addPeer"
               disabledIcon="icons/dtool16/newconnection_wiz.gif"
               helpContextId="org.eclipse.tm.te.tcf.ui.command_AddPeer"
               icon="icons/etool16/newconnection_wiz.gif"
               id="org.eclipse.tm.te.tcf.ui.commands.addPeer"
               label="%TcfDataSource.command.addPeer.label"
               style="push"
               tooltip="%TcfDataSource.command.addPeer.tooltip">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <count value="1"/>
                  <iterate operator="and" ifEmpty="false">
                     <instanceof value="org.eclipse.tm.te.tcf.locator.interfaces.nodes.IPeerModel"/>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
      
      <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.ide/icons/full/dlcl16/refresh_nav.gif"
               helpContextId="org.eclipse.tm.te.tcf.ui.command_Refresh"
               icon="platform:/plugin/org.eclipse.ui.ide/icons/full/elcl16/refresh_nav.gif"
               id="org.eclipse.tm.te.tcf.ui.commands.refresh"
               label="%TcfDataSource.command.refresh.label"
               style="push"
               tooltip="%TcfDataSource.command.refresh.tooltip">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <count value="1"/>
                  <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>
   </extension>

<!-- Target Explorer command contributions -->
   <extension point="org.eclipse.ui.commands">
      <category
            id="org.eclipse.tm.te.tcf.ui.commands.category"
            name="%TcfDataSource.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="%TcfDataSource.command.refresh.name">
      </command>
      <command
            categoryId="org.eclipse.tm.te.tcf.ui.commands.category"
            helpContextId="org.eclipse.tm.te.tcf.ui.command_AddPeer"
            id="org.eclipse.tm.te.tcf.ui.command.addPeer"
            name="%TcfDataSource.command.addPeer.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">
      </handler>

      <handler
            class="org.eclipse.tm.te.tcf.ui.internal.handler.AddPeerCommandHandler"
            commandId="org.eclipse.tm.te.tcf.ui.command.addPeer">
      </handler>
   </extension>
</plugin>

Back to the top