Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 81443abd3d0dc279591634338484c1a0bd65aa6e (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension-point id="editorPageBindings" name="%ExtensionPoint.editorPageBindings.name" schema="schema/editorPageBindings.exsd"/>
   <extension-point id="editorPages" name="%ExtensionPoint.editorPages.name" schema="schema/editorPages.exsd"/>

<!-- Common Navigator contributions -->
   <extension point="org.eclipse.ui.navigator.viewer">
      <viewer
            helpContext="org.eclipse.tm.te.ui.views.TargetExplorer"
            viewerId="org.eclipse.tm.te.ui.views.TargetExplorer">
            <popupMenu
                  id="org.eclipse.tm.te.ui.views.TargetExplorer#Popup"
                  allowsPlatformContributions="true">
                  <insertionPoint name="group.new" separator="true"/>
                  <insertionPoint name="group.goto"/>
                  <insertionPoint name="group.expandto" separator="true"/>
                  <insertionPoint name="group.expand"/>
                  <insertionPoint name="group.open" separator="true"/>
                  <insertionPoint name="group.openWith"/>
                  <insertionPoint name="group.connect" separator="true"/>
                  <insertionPoint name="group.symbols" separator="true"/>
                  <insertionPoint name="group.symbols.rd"/>
                  <insertionPoint name="group.symbols.loadunload"/>
                  <insertionPoint name="group.symbols.additions"/>
                  <insertionPoint name="group.launch" separator="true"/>
                  <insertionPoint name="group.launch.rundebug"/>
                  <insertionPoint name="group.launch.modes"/>
                  <insertionPoint name="group.launch.additions"/>
                  <insertionPoint name="group.show" separator="true"/>
                  <insertionPoint name="group.edit" separator="true"/>
                  <insertionPoint name="group.delete"/>
                  <insertionPoint name="group.build" separator="true"/>
                  <insertionPoint name="group.refresh" separator="true"/>
                  <insertionPoint name="group.reorganize"/>
                  <insertionPoint name="group.reorder"/>
                  <insertionPoint name="group.port"/>
                  <insertionPoint name="group.generate" separator="true"/>
                  <insertionPoint name="group.search" separator="true"/>
                  <insertionPoint name="group.connection" separator="true"/>
                  <insertionPoint name="group.operations" separator="true"/>
                  <insertionPoint name="group.analysis" separator="true"/>
                  <insertionPoint name="additions" separator="true"/>
                  <insertionPoint name="group.properties" separator="true"/>
            </popupMenu>
            <options>
               <property
                     name="org.eclipse.ui.navigator.hideLinkWithEditorAction"
                     value="true">
               </property>
            </options>
      </viewer>
   </extension>
   
<!-- View contributions -->
   <extension point="org.eclipse.ui.views">
      <category
            id="org.eclipse.tm.te.ui.views.category"
            name="%ViewCategory.name">
      </category>
      <view
            category="org.eclipse.tm.te.ui.views.category"
            class="org.eclipse.tm.te.ui.views.internal.View"
            icon="icons/eview16/targets_view.gif"
            id="org.eclipse.tm.te.ui.views.TargetExplorer"
            name="%TargetExplorer.name"
            restorable="true">
      </view>
   </extension>

<!-- Target Explorer Perspective -->
   <extension point="org.eclipse.ui.perspectives">
      <perspective
            class="org.eclipse.tm.te.ui.views.perspective.PerspectiveFactory"
            icon="icons/eview16/editor.gif"
            id="org.eclipse.tm.te.ui.perspective"
            name="%Perspective.name">
      </perspective>
   </extension>

<!-- Perspective contributions -->
   <extension point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension targetID="org.eclipse.tm.te.ui.perspective">
      	 <!-- Run/Debug actions should be available -->
         <actionSet id="org.eclipse.debug.ui.launchActionSet"/>
		 <!-- Register the view shortcuts  -->
         <viewShortcut id="org.eclipse.tm.te.ui.views.TargetExplorer"/>
      </perspectiveExtension>
   </extension>

<!-- Editor contributions -->
   <extension point="org.eclipse.ui.editors">
      <editor
            class="org.eclipse.tm.te.ui.views.internal.editor.Editor"
            default="false"
            icon="icons/eview16/prop_ps.gif"
            id="org.eclipse.tm.te.ui.view.Editor"
            name="%Editor.name">
      </editor>
   </extension>

<!-- Target Explorer menu contributions -->
   <extension point="org.eclipse.ui.menus">
      <menuContribution locationURI="popup:org.eclipse.tm.te.ui.views.TargetExplorer#Popup?after=group.properties">
         <command
               commandId="org.eclipse.ui.file.properties"
               helpContextId="org.eclipse.tm.te.ui.views.command_Properties"
               id="properties"
               label="%PropertiesAction.label"
               tooltip="%PropertiesAction.tooltip">
               <visibleWhen>
                  <with variable="selection">
                     <count value="1"/>
                     <iterate operator="and" ifEmpty="false">
                        <test property="org.eclipse.tm.te.ui.views.hasApplicableEditorBindings" value="true"/>
                     </iterate>
                  </with>
               </visibleWhen>
         </command>
      </menuContribution>
   </extension>

<!-- Handler contributions -->
   <extension point="org.eclipse.ui.handlers">
      <handler
            commandId="org.eclipse.ui.file.properties"
            class="org.eclipse.tm.te.ui.views.internal.targets.handler.PropertiesCommandHandler">
         <enabledWhen>
            <with variable="selection">
               <count value="1"/>
            </with>
         </enabledWhen>
         <activeWhen>
            <with variable="activePartId">
               <equals value="org.eclipse.tm.te.ui.views.TargetExplorer"/>
            </with>
         </activeWhen>
      </handler>      
   </extension>

<!-- Eclipse core expressions property tester -->
   <extension point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="org.eclipse.tm.te.ui.views.internal.expressions.EditorPropertyTester"
            id="org.eclipse.tm.te.ui.views.EditorPropertyTester"
            namespace="org.eclipse.tm.te.ui.views"
            properties="hasApplicableEditorBindings"
            type="java.lang.Object">
      </propertyTester>
   </extension>

</plugin>

Back to the top