Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Sternberg2010-03-29 14:25:51 +0000
committerRalf Sternberg2010-03-29 14:25:51 +0000
commit8cb3c18a229d671cd55ebd8b27498cccef3e67b1 (patch)
treebc1d43e0bff3293cdab81125af0ff2f0c37d3d8d /bundles/org.eclipse.rap.ui/schema
parent0384f001056f5285dc1d1e16e2b3eebbe401eea8 (diff)
downloadorg.eclipse.rap-8cb3c18a229d671cd55ebd8b27498cccef3e67b1.tar.gz
org.eclipse.rap-8cb3c18a229d671cd55ebd8b27498cccef3e67b1.tar.xz
org.eclipse.rap-8cb3c18a229d671cd55ebd8b27498cccef3e67b1.zip
Merged themeContributions into themes extension point.
Diffstat (limited to 'bundles/org.eclipse.rap.ui/schema')
-rw-r--r--bundles/org.eclipse.rap.ui/schema/rap/themeContributions.exsd125
-rw-r--r--bundles/org.eclipse.rap.ui/schema/rap/themes.exsd63
2 files changed, 58 insertions, 130 deletions
diff --git a/bundles/org.eclipse.rap.ui/schema/rap/themeContributions.exsd b/bundles/org.eclipse.rap.ui/schema/rap/themeContributions.exsd
deleted file mode 100644
index a80188a757..0000000000
--- a/bundles/org.eclipse.rap.ui/schema/rap/themeContributions.exsd
+++ /dev/null
@@ -1,125 +0,0 @@
-<?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="themeContributions" name="RWT Theme Contributions"/>
- </appInfo>
- <documentation>
- This extension point is used to register contributions to existing RWT themes.
-A theme contribution contains CSS rules that extend an existing theme. To contribute to an existing theme, the id of the extended theme and a CSS file must be provided. The contents of this file are appended to the CSS rules of the extended theme.
-
-If more than one contributions are registered for the same theme, the order in which these contributions are appended is undefined. The user of this extension point must ensure that the rules specified in a theme contribution can not interfere with the rules in other theme contributions. Ideally, theme contributions contain only rules for custom variants.
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appInfo>
- <meta.element />
- </appInfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="themeContribution" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
- a fully qualified identifier of the target extension point
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- an optional identifier of the extension instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
- an optional name of the extension instance
- </documentation>
- <appInfo>
- <meta.attribute translatable="true"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="themeContribution">
- <annotation>
- <appInfo>
- <meta.element labelAttribute="name"/>
- </appInfo>
- </annotation>
- <complexType>
- <attribute name="themeId" type="string" use="required">
- <annotation>
- <documentation>
- the id of the theme this extension contributes to. Use org.eclipse.rap.rwt.theme.Default to contribute to the default theme.
- </documentation>
- <appInfo>
- <meta.attribute kind="identifier" basedOn="org.eclipse.rap.ui.themes/theme/@id"/>
- </appInfo>
- </annotation>
- </attribute>
- <attribute name="file" type="string" use="required">
- <annotation>
- <documentation>
- a relative path of a &lt;code&gt;.css&lt;/code&gt; file that contains the additional rules to append to the theme
- </documentation>
- <appInfo>
- <meta.attribute kind="resource"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appInfo>
- <meta.section type="since"/>
- </appInfo>
- <documentation>
- RAP 1.3
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="examples"/>
- </appInfo>
- <documentation>
- The following is an example of a theme contribution definition:
-&lt;p&gt;
-&lt;pre&gt;
- &lt;extension point=&quot;org.eclipse.rap.ui.themeContributions&quot;&gt;
- &lt;theme
- themeId=&quot;my.application.aquablue&quot;
- file=&quot;aqua-blue-additions.css&quot; /&gt;
- &lt;/extension&gt;
-&lt;/pre&gt;
-&lt;/p&gt;
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appInfo>
- <meta.section type="copyright"/>
- </appInfo>
- <documentation>
- Copyright (c) 2010 EclipseSource.&lt;br&gt;
-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 &lt;a
-href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
- </documentation>
- </annotation>
-
-</schema>
diff --git a/bundles/org.eclipse.rap.ui/schema/rap/themes.exsd b/bundles/org.eclipse.rap.ui/schema/rap/themes.exsd
index ce8c0f0a1d..57d3d94fde 100644
--- a/bundles/org.eclipse.rap.ui/schema/rap/themes.exsd
+++ b/bundles/org.eclipse.rap.ui/schema/rap/themes.exsd
@@ -8,6 +8,9 @@
<documentation>
This extension point is used to register custom RWT themes.
An RWT theme is used to customize the look and feel of applications built with the Rich Ajax Platform. To create a custom theme, a CSS file must be provided. With this file the styling of one ore more widgets can be customized. A list of themeable widgets and properties can be found in the &quot;RAP Theming Reference&quot;.
+
+It is also possible to register contributions to existing RWT themes.
+A theme contribution contains CSS rules that are appended to an existing theme. If more than one contributions are registered for the same theme, the order in which these contributions are appended is undefined. The user of this extension point must ensure that the rules specified in a theme contribution can not interfere with the rules in other theme contributions. Ideally, theme contributions contain only rules for custom variants.
</documentation>
</annotation>
@@ -19,7 +22,10 @@ An RWT theme is used to customize the look and feel of applications built with t
</annotation>
<complexType>
<sequence>
- <element ref="theme" minOccurs="1" maxOccurs="unbounded"/>
+ <choice minOccurs="1" maxOccurs="unbounded">
+ <element ref="theme"/>
+ <element ref="themeContribution"/>
+ </choice>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
@@ -53,6 +59,9 @@ An RWT theme is used to customize the look and feel of applications built with t
<appInfo>
<meta.element labelAttribute="name"/>
</appInfo>
+ <documentation>
+ An RWT theme.
+ </documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
@@ -82,6 +91,39 @@ An RWT theme is used to customize the look and feel of applications built with t
</complexType>
</element>
+ <element name="themeContribution">
+ <annotation>
+ <appInfo>
+ <meta.element labelAttribute="name"/>
+ </appInfo>
+ <documentation>
+ A contribution to an existing theme. The contributed CSS rules are appended to the CSS rules of the extended theme.
+ </documentation>
+ </annotation>
+ <complexType>
+ <attribute name="themeId" type="string" use="required">
+ <annotation>
+ <documentation>
+ the id of the theme this extension contributes to. Use org.eclipse.rap.rwt.theme.Default to contribute to the default theme.
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.rap.ui.themes/theme/@id"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="file" type="string" use="required">
+ <annotation>
+ <documentation>
+ a relative path of a &lt;code&gt;.css&lt;/code&gt; file that contains the additional rules to append to the theme
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="resource"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
<annotation>
<appInfo>
<meta.section type="since"/>
@@ -96,7 +138,7 @@ An RWT theme is used to customize the look and feel of applications built with t
<meta.section type="examples"/>
</appInfo>
<documentation>
- The following is an example of a theme extension definition:
+ The following is an example of a theme extension with a new theme:
&lt;p&gt;
&lt;pre&gt;
&lt;extension point=&quot;org.eclipse.rap.ui.themes&quot;&gt;
@@ -107,6 +149,17 @@ An RWT theme is used to customize the look and feel of applications built with t
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
+
+The following is an example of a theme extension that defines a contribution to an existing theme:
+&lt;p&gt;
+&lt;pre&gt;
+ &lt;extension point=&quot;org.eclipse.rap.ui.themes&quot;&gt;
+ &lt;themeContribution
+ themeId=&quot;my.application.aquablue&quot;
+ file=&quot;aqua-blue-additions.css&quot; /&gt;
+ &lt;/extension&gt;
+&lt;/pre&gt;
+&lt;/p&gt;
</documentation>
</annotation>
@@ -116,8 +169,8 @@ An RWT theme is used to customize the look and feel of applications built with t
<meta.section type="implementation"/>
</appInfo>
<documentation>
- A template for valid theme files can be found in the &lt;code&gt;src/&lt;/code&gt; directory of the RWT plug-in (&lt;code&gt;org.eclipse.rap.rwt&lt;/code&gt;). The file is called &lt;code&gt;theme-template.properties&lt;/code&gt;.
-The RAP demo plugin &lt;code&gt;org.eclipse.rap.demo&lt;/code&gt; contains an example of a theme extension.
+ The RAP demo plugin &lt;code&gt;org.eclipse.rap.demo&lt;/code&gt; contains an example of a theme extension.
+
</documentation>
</annotation>
@@ -126,7 +179,7 @@ The RAP demo plugin &lt;code&gt;org.eclipse.rap.demo&lt;/code&gt; contains an ex
<meta.section type="copyright"/>
</appInfo>
<documentation>
- Copyright (c) 2007 Innoopract Informationssysteme GmbH.&lt;br&gt;
+ Copyright (c) 2007, 2010 Innoopract Informationssysteme GmbH.&lt;br&gt;
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 &lt;a

Back to the top