Brandings can reside in a separate bundle, i.e. it is possible to brand applications without modifying their containing bundles.
<!ELEMENT extension (branding)+>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT branding (additionalHeaders? , associatedEntrypoints? , presentationFactory?)>
<!ATTLIST branding
id CDATA #REQUIRED
servletName CDATA #REQUIRED
defaultEntrypointId CDATA #IMPLIED
themeId IDREF #IMPLIED
title CDATA #IMPLIED
favicon CDATA #IMPLIED
body CDATA #IMPLIED
exitConfirmationClass CDATA #IMPLIED
>http://<host>:<port>/foo
.http://<host>:<port>/<servletName>
.
The value can be either the extension id of an application extension or the id of a registered entrypoint.
Effectively sets the <title> element of the HTML head.
The icon should be in the .ico format for compatibility with all browsers.
The argument must be a class that implements the interface IExitConfirmation
.
NOTE: Exit confirmations are not supported by some browsers.
<!ELEMENT additionalHeaders ((meta | link))+>
Any additional header element to be added to the HTML page.
<!ATTLIST meta
name CDATA #IMPLIED
content CDATA #IMPLIED
>HTML META elements, used to provide structured metadata about a web page like author, keywords, description.
<!ATTLIST link
rel CDATA #IMPLIED
href CDATA #IMPLIED
>HTML LINK elements, used to link the webpage with external resources such as CSS style sheets.
<!ELEMENT attribute EMPTY>
<!ATTLIST attribute
name CDATA #REQUIRED
value CDATA #IMPLIED
>Additional attributes to be added to HTML elements.
<!ELEMENT associatedEntrypoints (entrypoint)+>
Defines all entrypoints which are allowed to be started with this branding (or servletName). If there are no entrypoints defined in this branding, any entrypoint is allowed to be started.
<!ELEMENT entrypoint EMPTY>
<!ATTLIST entrypoint
id IDREF #IMPLIED
>
An element which references to an existing entrypoint defined by org.eclipse.rap.ui.entrypoint
.
<!ELEMENT presentationFactory (stackPresentation* , defaultStackPresentation?)>
<!ATTLIST presentationFactory
id IDREF #REQUIRED
defaultLayoutId IDREF #IMPLIED
name CDATA #IMPLIED
viewActionsVisible (true | false)
><!ELEMENT stackPresentation EMPTY>
<!ATTLIST stackPresentation
id IDREF #REQUIRED
partId IDREF #REQUIRED
><!ELEMENT defaultStackPresentation EMPTY>
<!ATTLIST defaultStackPresentation
id IDREF #REQUIRED
><extension point="org.eclipse.rap.ui.branding"> <branding id="org.example.tea.teabranding" servletName="tea" defaultEntrypointId="org.example.tea.application" themeId="org.example.tea.teatheme" title="Tea Portal" favicon="icons/favicon.ico" body="body.html" exitConfirmationClass="org.example.tea.ExitConfirmation"> </branding> </extension>
Copyright (c) 2007, 2010 Innoopract Informationssysteme GmbH and others.
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 http://www.eclipse.org/legal/epl-v10.html