]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.ui/schema/perspectiveContextBinding.exsd
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.ui / schema / perspectiveContextBinding.exsd
1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- Schema file written by PDE -->
3 <schema targetNamespace="org.simantics.ui" xmlns="http://www.w3.org/2001/XMLSchema">
4 <annotation>
5       <appInfo>
6          <meta.schema plugin="org.simantics.ui" id="perspectiveContextBinding" name="Workbench Perspective to Context Binding"/>
7       </appInfo>
8       <documentation>
9          This extension point allows binding a workbench perspective id to a set of workbench context id&apos;s. The bindings are used to activate workbench contexts (IContextActivation) every time the active workbench window changes its active perspective or the active workbench window is changed.
10
11 This extension point exists because currently Eclipse core.commands framework only supports declarative filtering of menu options based on active context ids but not perspectives.
12       </documentation>
13    </annotation>
14
15    <element name="extension">
16       <annotation>
17          <appInfo>
18             <meta.element />
19          </appInfo>
20       </annotation>
21       <complexType>
22          <sequence>
23             <element ref="binding" minOccurs="0" maxOccurs="unbounded"/>
24          </sequence>
25          <attribute name="point" type="string" use="required">
26             <annotation>
27                <documentation>
28                   
29                </documentation>
30             </annotation>
31          </attribute>
32          <attribute name="id" type="string">
33             <annotation>
34                <documentation>
35                   
36                </documentation>
37             </annotation>
38          </attribute>
39          <attribute name="name" type="string">
40             <annotation>
41                <documentation>
42                   
43                </documentation>
44                <appInfo>
45                   <meta.attribute translatable="true"/>
46                </appInfo>
47             </annotation>
48          </attribute>
49       </complexType>
50    </element>
51
52    <element name="binding">
53       <annotation>
54          <appInfo>
55             <meta.element labelAttribute="perspectiveId"/>
56          </appInfo>
57          <documentation>
58             A binding of a single perspective id to multiple context ids.
59          </documentation>
60       </annotation>
61       <complexType>
62          <attribute name="perspectiveId" type="string" use="required">
63             <annotation>
64                <documentation>
65                   The id of the perspective to bind.
66                </documentation>
67             </annotation>
68          </attribute>
69          <attribute name="contextIds" type="string" use="required">
70             <annotation>
71                <documentation>
72                   A comma-separated list of context ids to bind to the perspective id.
73                </documentation>
74             </annotation>
75          </attribute>
76       </complexType>
77    </element>
78
79    <annotation>
80       <appInfo>
81          <meta.section type="since"/>
82       </appInfo>
83       <documentation>
84          [Enter the first release in which this extension point appears.]
85       </documentation>
86    </annotation>
87
88    <annotation>
89       <appInfo>
90          <meta.section type="examples"/>
91       </appInfo>
92       <documentation>
93          [Enter extension point usage example here.]
94       </documentation>
95    </annotation>
96
97    <annotation>
98       <appInfo>
99          <meta.section type="apiInfo"/>
100       </appInfo>
101       <documentation>
102          [Enter API information here.]
103       </documentation>
104    </annotation>
105
106    <annotation>
107       <appInfo>
108          <meta.section type="implementation"/>
109       </appInfo>
110       <documentation>
111          [Enter information about supplied implementation of this extension point.]
112       </documentation>
113    </annotation>
114
115
116 </schema>