| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.e4.ui.css.core" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.e4.ui.css.core" id="org.eclipse.e4.ui.css.core.propertyHandler" name="Properties"/> |
| </appinfo> |
| <documentation> |
| This extension point binds a handler class for a set of properties for a particular type of DOM elements. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="handler" 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="handler"> |
| <annotation> |
| <documentation> |
| A handler defines a binding from a set of property names to a property handler for a particular DOM element. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="property-name" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="composite" type="boolean"> |
| <annotation> |
| <documentation> |
| If true, then this handler represents a composite CSS Property (e.g., "background" is CSS Property composed with background-color, background-image, and others). |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="adapter" type="string" use="required"> |
| <annotation> |
| <documentation> |
| This property handler applies only to DOM elements of this type. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.e4.ui.css.core.dom.ElementAdapter:"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="handler" type="string"> |
| <annotation> |
| <documentation> |
| implements the property fetching and setting. This class must implement <samp>org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler</samp>. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn=":org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="property-name"> |
| <complexType> |
| <attribute name="name" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The CSS property name. If not officially part of the W3C's <a href="http://www.w3.org/TR/CSS2/">CSS 2 Standard</a> then the property should be prefixed. For example, SWT-specific properties are prefixed with <tt>swt-</tt> . (Due to a bug in the underlying implementation, we cannot use a leading hyphen as specified in the standard, "-swt-".) |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="deprecated" type="string"> |
| <annotation> |
| <documentation> |
| If specified, indicates this property-name is deprecated. Specifies a deprecation message typically intended to indicate alternatives to using this property. This message is typically logged on first use of this property-name. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| 0.9 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| <extension point="org.eclipse.e4.ui.css.core.propertyHandler"> |
| <handler |
| adapter="org.eclipse.e4.ui.css.swt.dom.ControlElement" |
| composite="true" |
| handler="org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyBackgroundSWTHandler"> |
| <property-name name="background"/> |
| <property-name name="background-color"/> |
| <property-name name="background-image"/> |
| </handler> |
| </extension> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiinfo"/> |
| </appinfo> |
| <documentation> |
| <tt>propertyHandler</tt> is currently internal and should not be considered API. |
| <p> |
| The property handler <em>provider</em> must implement the <samp>org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandlerProvider</samp> interface. In addition to providing property handlers, the provider is also expected to provide the default style declaration for an element. |
| </p> |
| <p> |
| Property handlers must implement the <samp>org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler<samp> interface; there are several specializations to allow providing additional functionality. There are a number of specialized interfaces, abstract classes, and helper classes, for implementing property handlers. There is also some support for defining composite CSS2 properties, such as <em>background</em>, defined in <samp>org.eclipse.e4.ui.css.core.dom.properties.css2</samp>. |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| Supplied interfaces provide abstract classes to simplify implementation. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="copyright"/> |
| </appinfo> |
| <documentation> |
| Copyright (c) 2008 - 2012 Angelo Zerr 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> |