| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.rap.ui" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.rap.ui" id="stackPresentations" name="StackPresentations"/> |
| </appinfo> |
| <documentation> |
| This extension point is used to register <code>ConfigurableStack</code>s. This object extending a ordinary <code>StackPresentation</code> so it can be used to style a <code>LayoutPart</code>. To register such a <code>ConfigurableStack</code> only makes sence if the PresentationFactory is a <code>org.eclipse.rap.presentation.PresentationFactory</code>. Because only this PresentationFactory can handle a <code>ConfigurableStack</code>.<br> |
| This extension point is also used to couple a <code>ConfigurationAction</code> to such a <code>ConfigurableStack</code>. With this you can implement different configuration behaviours for different <code>ConfigurableStack</code> implementations.<br> |
| You can define default StackPresentations for a part using the <code>org.eclipse.rap.ui.branding</code> extension point. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <sequence minOccurs="1" maxOccurs="unbounded"> |
| <element ref="stackPresentation" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="stackPresentation"> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The identifier for the ConfigurableStack. This is for load and save such a part presentation. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| An implementation of <code>ConfigurableStack</code> |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.rap.ui.interactiondesign.ConfigurableStack:"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The name of ConfigurableStack, this is just to give it a readable name. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="type" use="required"> |
| <annotation> |
| <documentation> |
| This defines the type where the ConfigurableStack can be used. there are three possible types: Editor, View and StandaloneView. |
| </documentation> |
| </annotation> |
| <simpleType> |
| <restriction base="string"> |
| <enumeration value="editor"> |
| </enumeration> |
| <enumeration value="view"> |
| </enumeration> |
| <enumeration value="standaloneview"> |
| </enumeration> |
| </restriction> |
| </simpleType> |
| </attribute> |
| <attribute name="actionClass" type="string"> |
| <annotation> |
| <documentation> |
| An implementation of <code>ConfigurationAction</code>. |
| With this action you can implement configuration bahaviour e.g. this action can create a popup dialog that shows configuration elements. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.rap.ui.interactiondesign.ConfigurationAction:"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="actionIcon" type="string"> |
| <annotation> |
| <documentation> |
| The icon for the ConfigurationAction. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="resource"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="menuIcon" type="string"> |
| <annotation> |
| <documentation> |
| The icon for a view's menu if it has one. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="resource"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| RAP 1.2 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| <pre> |
| <extension |
| point="org.eclipse.ui.presentations.StackPresentations"> |
| <stackPresentation |
| actionClass="org.eclipse.rap.ui.interactiondesign.example.configaction.ExampleConfigAction" |
| actionIcon="icons/configure.png" |
| class="org.eclipse.rap.ui.interactiondesign.example.stacks.NavigationPaneStackPresentation" |
| id="org.eclipse.rap.ui.interactiondesign.navigationPaneStackPresentation" |
| menuIcon="icons/menuIcon.gif" |
| name="Navigation Pane" |
| type="view"> |
| </stackPresentation> |
| </extension> |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiinfo"/> |
| </appinfo> |
| <documentation> |
| Each stackPresentation has to extend <code>org.eclipse.rap.ui.interactiondesign.ConfigurableStack</code> to handle different mechanisms, e.g. stackPresentation changing on the fly and so on. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| A detailed implementation example can be found in the <code>org.eclipse.rap.presentation.example</code> project. This project defines two different <code>ConfigurableStack</code> implementations. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="copyright"/> |
| </appinfo> |
| <documentation> |
| Copyright (c) 2008, 2015 EclipseSource and others.<br> |
| All rights reserved. This program and the accompanying materials are made |
| available under the terms of the Eclipse Public License v1.0 which accompanies |
| this distribution, and is available at <a |
| href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| </documentation> |
| </annotation> |
| |
| </schema> |