]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.ui/schema/perspectiveContextBinding.exsd
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.ui / schema / perspectiveContextBinding.exsd
diff --git a/bundles/org.simantics.ui/schema/perspectiveContextBinding.exsd b/bundles/org.simantics.ui/schema/perspectiveContextBinding.exsd
new file mode 100644 (file)
index 0000000..ab46ec3
--- /dev/null
@@ -0,0 +1,116 @@
+<?xml version='1.0' encoding='UTF-8'?>\r
+<!-- Schema file written by PDE -->\r
+<schema targetNamespace="org.simantics.ui" xmlns="http://www.w3.org/2001/XMLSchema">\r
+<annotation>\r
+      <appInfo>\r
+         <meta.schema plugin="org.simantics.ui" id="perspectiveContextBinding" name="Workbench Perspective to Context Binding"/>\r
+      </appInfo>\r
+      <documentation>\r
+         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.\r
+\r
+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.\r
+      </documentation>\r
+   </annotation>\r
+\r
+   <element name="extension">\r
+      <annotation>\r
+         <appInfo>\r
+            <meta.element />\r
+         </appInfo>\r
+      </annotation>\r
+      <complexType>\r
+         <sequence>\r
+            <element ref="binding" minOccurs="0" maxOccurs="unbounded"/>\r
+         </sequence>\r
+         <attribute name="point" type="string" use="required">\r
+            <annotation>\r
+               <documentation>\r
+                  \r
+               </documentation>\r
+            </annotation>\r
+         </attribute>\r
+         <attribute name="id" type="string">\r
+            <annotation>\r
+               <documentation>\r
+                  \r
+               </documentation>\r
+            </annotation>\r
+         </attribute>\r
+         <attribute name="name" type="string">\r
+            <annotation>\r
+               <documentation>\r
+                  \r
+               </documentation>\r
+               <appInfo>\r
+                  <meta.attribute translatable="true"/>\r
+               </appInfo>\r
+            </annotation>\r
+         </attribute>\r
+      </complexType>\r
+   </element>\r
+\r
+   <element name="binding">\r
+      <annotation>\r
+         <appInfo>\r
+            <meta.element labelAttribute="perspectiveId"/>\r
+         </appInfo>\r
+         <documentation>\r
+            A binding of a single perspective id to multiple context ids.\r
+         </documentation>\r
+      </annotation>\r
+      <complexType>\r
+         <attribute name="perspectiveId" type="string" use="required">\r
+            <annotation>\r
+               <documentation>\r
+                  The id of the perspective to bind.\r
+               </documentation>\r
+            </annotation>\r
+         </attribute>\r
+         <attribute name="contextIds" type="string" use="required">\r
+            <annotation>\r
+               <documentation>\r
+                  A comma-separated list of context ids to bind to the perspective id.\r
+               </documentation>\r
+            </annotation>\r
+         </attribute>\r
+      </complexType>\r
+   </element>\r
+\r
+   <annotation>\r
+      <appInfo>\r
+         <meta.section type="since"/>\r
+      </appInfo>\r
+      <documentation>\r
+         [Enter the first release in which this extension point appears.]\r
+      </documentation>\r
+   </annotation>\r
+\r
+   <annotation>\r
+      <appInfo>\r
+         <meta.section type="examples"/>\r
+      </appInfo>\r
+      <documentation>\r
+         [Enter extension point usage example here.]\r
+      </documentation>\r
+   </annotation>\r
+\r
+   <annotation>\r
+      <appInfo>\r
+         <meta.section type="apiInfo"/>\r
+      </appInfo>\r
+      <documentation>\r
+         [Enter API information here.]\r
+      </documentation>\r
+   </annotation>\r
+\r
+   <annotation>\r
+      <appInfo>\r
+         <meta.section type="implementation"/>\r
+      </appInfo>\r
+      <documentation>\r
+         [Enter information about supplied implementation of this extension point.]\r
+      </documentation>\r
+   </annotation>\r
+\r
+\r
+</schema>\r