| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.wst.common.project.facet.core"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.wst.common.project.facet.core" id="listeners" name="Faceted Project Listeners Extension Point"/> |
| </appInfo> |
| <documentation> |
| This extension point allows for registration of listeners that will be notified of changes to the metadata of faceted projects. The following event types are supported: |
| |
| <p> |
| <code> |
| PROJECT_MODIFIED<br/> |
| PRE_INSTALL<br/> |
| POST_INSTALL<br/> |
| PRE_UNINSTALL<br/> |
| POST_UNINSTALL<br/> |
| PRE_VERSION_CHANGE<br/> |
| POST_VERSION_CHANGE<br/> |
| FIXED_FACETS_CHANGED<br/> |
| TARGETED_RUNTIMES_CHANGED<br/> |
| PRIMARY_RUNTIME_CHANGED |
| </code> |
| </p> |
| |
| <p>See the documentation for <code>org.eclipse.wst.common.project.facet.core.events.IFacetedProjectEvent.Type</code> enum for more details about each event type.</p> |
| |
| <p>It is also possible to register listeners in code using either <code>FacetedProjectFramework.addListener()</code> or <code>IFacetedProject.addListener()</code> methods.</p> |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="listener" 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="listener"> |
| <annotation> |
| <documentation> |
| Registers one listener. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The listener class. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.wst.common.project.facet.core.events.IFacetedProjectListener"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="eventTypes" type="string"> |
| <annotation> |
| <documentation> |
| A comma-separated list of event types that the listener should be notified about. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 2.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| <pre> |
| <extension point="org.eclipse.wst.common.project.facet.core.listeners"> |
| <!-- Listen to all events. --> |
| <listener class="com.mycompany.myproduct.MyListener1"/> |
| <!-- Listen to specific events. --> |
| <listener class="com.mycompany.myproduct.MyListener2" eventTypes="PROJECT_MODIFIED"/> |
| <listener class="com.mycompany.myproduct.MyListener2" eventTypes="PRE_INSTALL,FIXED_FACETS_CHANGED"/> |
| </extension> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2010 Oracle 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> |