Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Sternberg2010-03-26 16:23:05 +0000
committerRalf Sternberg2010-03-26 16:23:05 +0000
commit1b1262c9130851c6dc14ea86b40b164353215876 (patch)
tree8d3ad1d88d58e63cd05c376ed92d63ed391bc76c /bundles/org.eclipse.rap.ui/schema
parenta3c3ed6eb1a155178a24ba5436e301b36b59aaf7 (diff)
downloadorg.eclipse.rap-1b1262c9130851c6dc14ea86b40b164353215876.tar.gz
org.eclipse.rap-1b1262c9130851c6dc14ea86b40b164353215876.tar.xz
org.eclipse.rap-1b1262c9130851c6dc14ea86b40b164353215876.zip
Resolved bug 307194: [Theming] Provide extension point for contributions to themes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=307194
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.exsd2
2 files changed, 126 insertions, 1 deletions
diff --git a/bundles/org.eclipse.rap.ui/schema/rap/themeContributions.exsd b/bundles/org.eclipse.rap.ui/schema/rap/themeContributions.exsd
new file mode 100644
index 0000000000..a80188a757
--- /dev/null
+++ b/bundles/org.eclipse.rap.ui/schema/rap/themeContributions.exsd
@@ -0,0 +1,125 @@
+<?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 c7f8e47e6b..2285d83983 100644
--- a/bundles/org.eclipse.rap.ui/schema/rap/themes.exsd
+++ b/bundles/org.eclipse.rap.ui/schema/rap/themes.exsd
@@ -103,7 +103,7 @@ An RWT theme is used to customize the look and feel of applications built with t
&lt;theme
id=&quot;my.application.aquablue&quot;
name=&quot;Aqua Blue Theme&quot;
- file=&quot;aqua-blue.properties&quot; /&gt;
+ file=&quot;aqua-blue.css&quot; /&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;

Back to the top