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

<!-- Terminal connector contributions -->
<!-- uses process connector -->
   <extension point="org.eclipse.tm.terminal.terminalConnectors">
      <connector
            class="org.eclipse.tcf.te.ui.terminals.process.ProcessConnector"
            hidden="true"
            id="org.eclipse.tcf.te.ui.terminals.local.LocalConnector"
            name="%TerminalConnector.local"/>
   </extension>
   
<!-- Terminals launcher delegate contributions -->
   <extension point="org.eclipse.tcf.te.ui.terminals.launcherDelegates">
      <delegate
            class="org.eclipse.tcf.te.ui.terminals.local.launcher.LocalLauncherDelegate"
            id="org.eclipse.tcf.te.ui.terminals.local.launcher.local"
            label="%LocalLauncherDelegate.label">
      </delegate>
   </extension>

<!-- Menu contributions -->
   <extension point="org.eclipse.ui.menus">
      <!-- Project Explorer "Show In" contribution -->
      <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.terminals.ProjectExplorer.menu.showIn?after=additions">
         <command
               commandId="org.eclipse.tcf.te.ui.terminals.local.command.launch"
               id="org.eclipse.tcf.te.ui.terminals.local.commands.showin.launch"
               label="%menu.showIn.localterminal.label"
               style="push">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <iterate operator="and" ifEmpty="false">
                     <adapt type="org.eclipse.core.resources.IResource">
                       <not>
                          <!-- The JDT Project Explorer contributions are adding the "Navigate -> Show In" quick menu.
                               See o.e.jdt.internal.ui.navigator.JavaNavigatorActionProvider -->
                          <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.jdt.core.javanature" />
                       </not> 
                     </adapt>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
         <dynamic
               class="org.eclipse.tcf.te.ui.terminals.local.showin.DynamicContributionItems"
               id="org.eclipse.tcf.te.ui.terminals.local.LocalLauncherDynamicContributionItems">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <iterate operator="and" ifEmpty="false">
                     <adapt type="org.eclipse.core.resources.IResource">
                       <not>
                          <!-- The JDT Project Explorer contributions are adding the "Navigate -> Show In" quick menu.
                               See o.e.jdt.internal.ui.navigator.JavaNavigatorActionProvider -->
                          <test property="org.eclipse.core.resources.projectNature" value="org.eclipse.jdt.core.javanature" />
                       </not> 
                     </adapt>
                  </iterate>
               </with>
            </visibleWhen>
         </dynamic>
      </menuContribution>
   </extension>

<!-- Command contributions -->
   <extension point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.tcf.te.ui.terminals.commands.category"
            helpContextId="org.eclipse.tcf.te.ui.terminals.local.command_Launch"
            id="org.eclipse.tcf.te.ui.terminals.local.command.launch"
            name="%command.launch.name">
      </command>
   </extension>

   <extension point="org.eclipse.ui.commandImages">
      <image
            commandId="org.eclipse.tcf.te.ui.terminals.local.command.launch"
            icon="icons/eview16/terminal_view.gif">
      </image>
   </extension>

<!-- Key bindings -->
   <extension point="org.eclipse.ui.bindings">
      <key
            commandId="org.eclipse.tcf.te.ui.terminals.local.command.launch"
            contextId="org.eclipse.ui.contexts.window"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="CTRL+M3+T"/> <!-- Bug 435111: Don't use M1 since COMMAND+Option T already taken on Mac -->
   </extension>

<!-- Handler contributions -->
   <extension point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.tcf.te.ui.terminals.local.launcher.LocalLauncherHandler"
            commandId="org.eclipse.tcf.te.ui.terminals.local.command.launch">
      </handler>
   </extension>
   
<!-- Preference page contributions -->
   <extension point="org.eclipse.ui.preferencePages">
      <page
            category="org.eclipse.tm.terminal.TerminalPreferencePage"
            class="org.eclipse.tcf.te.ui.terminals.local.showin.preferences.PreferencePage"
            id="org.eclipse.tcf.te.ui.terminals.local.showin.preferences"
            name="%preference.page.name">
      </page>
   </extension>

<!-- Preferences contributions -->
   <extension point="org.eclipse.core.runtime.preferences">
      <initializer
            class="org.eclipse.tcf.te.ui.terminals.local.showin.preferences.PreferencesInitializer">
      </initializer>
   </extension>
   
<!-- Startup contributions -->
   <extension point="org.eclipse.ui.startup">
      <startup class="org.eclipse.tcf.te.ui.terminals.local.showin.ExternalExecutablesInitializer"/>
   </extension>

<!-- Help Context contributions -->
   <extension point="org.eclipse.help.contexts">
      <contexts
            file="contexts.xml">
      </contexts>
   </extension>

</plugin>

Back to the top