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

<!-- Terminal context properties provider contributions -->
   <extension point="org.eclipse.tcf.te.core.terminals.contextPropertiesProviders">
      <contextPropertiesProvider
            class="org.eclipse.tcf.te.ui.terminals.rse.internal.TerminalContextPropertiesProvider">
         <enablement>
            <instanceof value="org.eclipse.rse.core.model.IHost"/>
         </enablement>
      </contextPropertiesProvider>
   </extension>

<!-- Perspective extension contributions -->    
   <extension point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension targetID="org.eclipse.rse.ui.view.SystemPerspective">
		 <!-- Register the view shortcuts  -->
         <viewShortcut id="org.eclipse.tcf.te.ui.terminals.TerminalsView"/>
         <!-- Place the Terminals view relative to the Task List view -->
         <view
               id="org.eclipse.tcf.te.ui.terminals.TerminalsView"
               minimized="false"
               relationship="stack"
               relative="org.eclipse.ui.views.TaskList"
               visible="false">
         </view>
      </perspectiveExtension>
   </extension>

<!-- Eclipse core expressions property tester -->
   <extension point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="org.eclipse.tcf.te.ui.terminals.rse.internal.PropertyTester"
            id="org.eclipse.tcf.te.ui.terminals.rse.PropertyTester"
            namespace="org.eclipse.tcf.te.ui.terminals.rse"
            properties="isVisible"
            type="org.eclipse.rse.core.model.IRSEModelObject">
      </propertyTester>

      <propertyTester
            class="org.eclipse.tcf.te.ui.terminals.rse.internal.PropertyTester"
            id="org.eclipse.tcf.te.ui.terminals.rse.PropertyTester2"
            namespace="org.eclipse.tcf.te.ui.terminals.rse"
            properties="isVisible"
            type="org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile">
      </propertyTester>
   </extension>

<!-- Menu contributions -->
   <extension point="org.eclipse.ui.menus">
      <menuContribution locationURI="popup:org.eclipse.rse.ui.view.systemView?after=additions">
         <command
               commandId="org.eclipse.tcf.te.ui.terminals.rse.command.launch"
               icon="icons/eview16/terminal_view.gif"
               id="org.eclipse.tcf.te.ui.terminals.rse.commands.launch"
               label="%command.launch.label"
               tooltip="%command.launch.tooltip">
            <visibleWhen checkEnabled="false">
               <with variable="selection">
                  <iterate operator="and" ifEmpty="false">
                     <or>
                        <adapt type="org.eclipse.rse.core.model.IRSEModelObject">
                           <test property="org.eclipse.tcf.te.ui.terminals.rse.isVisible" value="true" forcePluginActivation="true"/>
                        </adapt>
                        <adapt type="org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile">
                           <test property="org.eclipse.tcf.te.ui.terminals.rse.isVisible" value="true" forcePluginActivation="true"/>
                        </adapt>
                     </or>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
      </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.rse.command_Launch"
            id="org.eclipse.tcf.te.ui.terminals.rse.command.launch"
            name="%command.launch.name">
      </command>
   </extension>

<!-- Handler contributions -->
   <extension point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.tcf.te.ui.terminals.rse.internal.LaunchTerminalHandler"
            commandId="org.eclipse.tcf.te.ui.terminals.rse.command.launch">
         <activeWhen>
            <with variable="activePartId">
               <equals value="org.eclipse.rse.ui.view.systemView"/>
            </with>
         </activeWhen>
         <enabledWhen>
               <with variable="selection">
                  <count value="1"/>
                  <iterate operator="and" ifEmpty="false">
                     <or>
                        <adapt type="org.eclipse.rse.core.model.IRSEModelObject"/>
                        <adapt type="org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile"/>
                     </or>
                  </iterate>
               </with>
         </enabledWhen>
      </handler>
   </extension>

</plugin>

Back to the top