ndai | b94eb26 | 2004-10-13 15:55:37 +0000 | [diff] [blame] | 1 | <?xml version='1.0' encoding='UTF-8'?>
|
| 2 | <!-- Schema file written by PDE -->
|
| 3 | <schema targetNamespace="org.eclipse.wst.server.core">
|
| 4 | <annotation>
|
| 5 | <appInfo>
|
| 6 | <meta.schema plugin="org.eclipse.wst.server.core" id="runtimeTypes" name="Runtime Types"/>
|
| 7 | </appInfo>
|
| 8 | <documentation>
|
| 9 | This extension point is used to provide a new runtime target handler. Runtime target handlers are called whenever a runtime target is added or removed from a project. They can be used to switch Java classpaths, setup default resources, etc.
|
| 10 | </documentation>
|
| 11 | </annotation>
|
| 12 |
|
| 13 | <element name="extension">
|
| 14 | <complexType>
|
| 15 | <sequence>
|
| 16 | <element ref="runtimeTargetHandler" minOccurs="0" maxOccurs="unbounded"/>
|
| 17 | </sequence>
|
| 18 | <attribute name="point" type="string" use="required">
|
| 19 | <annotation>
|
| 20 | <documentation>
|
| 21 | a fully qualified identifier of the target extension point
|
| 22 | </documentation>
|
| 23 | </annotation>
|
| 24 | </attribute>
|
| 25 | <attribute name="id" type="string">
|
| 26 | <annotation>
|
| 27 | <documentation>
|
| 28 | an optional identifier of the extension instance
|
| 29 | </documentation>
|
| 30 | </annotation>
|
| 31 | </attribute>
|
| 32 | <attribute name="name" type="string">
|
| 33 | <annotation>
|
| 34 | <documentation>
|
| 35 | an optional name of the extension instance
|
| 36 | </documentation>
|
| 37 | </annotation>
|
| 38 | </attribute>
|
| 39 | </complexType>
|
| 40 | </element>
|
| 41 |
|
| 42 | <element name="runtimeTargetHandler">
|
| 43 | <annotation>
|
| 44 | <appInfo>
|
| 45 | <meta.element labelAttribute="name"/>
|
| 46 | </appInfo>
|
| 47 | </annotation>
|
| 48 | <complexType>
|
| 49 | <sequence>
|
| 50 | </sequence>
|
| 51 | <attribute name="id" type="string" use="required">
|
| 52 | <annotation>
|
| 53 | <documentation>
|
| 54 | specifies a unique identifier for this extension point
|
| 55 | </documentation>
|
| 56 | </annotation>
|
| 57 | </attribute>
|
| 58 | <attribute name="runtimeTypeIds" type="string" use="required">
|
| 59 | <annotation>
|
| 60 | <documentation>
|
| 61 | a comma separated list of runtime type ids that this handler may support. Used for memory & performance reasons
|
| 62 | </documentation>
|
| 63 | </annotation>
|
| 64 | </attribute>
|
| 65 | <attribute name="class" type="string" use="required">
|
| 66 | <annotation>
|
| 67 | <documentation>
|
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 68 | specifies the fully qualified name of the Java class that extends <samp>RuntimeTargetHandlerDelegate</samp>. |
ndai | b94eb26 | 2004-10-13 15:55:37 +0000 | [diff] [blame] | 69 | Runtime target handler instances of this type will delegate to instances of this class.
|
| 70 | </documentation>
|
| 71 | <appInfo>
|
deboer | 616c3a1 | 2005-03-08 16:28:10 +0000 | [diff] [blame] | 72 | <meta.attribute kind="java" basedOn="org.eclipse.wst.server.core.model.RuntimeTargetHandlerDelegate"/>
|
ndai | b94eb26 | 2004-10-13 15:55:37 +0000 | [diff] [blame] | 73 | </appInfo>
|
| 74 | </annotation>
|
| 75 | </attribute>
|
| 76 | <attribute name="order" type="string">
|
| 77 | <annotation>
|
| 78 | <documentation>
|
| 79 | an integer order used to sort handlers relative to each other
|
| 80 | </documentation>
|
| 81 | </annotation>
|
| 82 | </attribute>
|
| 83 | </complexType>
|
| 84 | </element>
|
| 85 |
|
| 86 | <annotation>
|
| 87 | <appInfo>
|
| 88 | <meta.section type="examples"/>
|
| 89 | </appInfo>
|
| 90 | <documentation>
|
| 91 | The following is an example of a runtime target handler extension point: |
| 92 | |
| 93 | <p> |
| 94 | <pre> |
| 95 | <extension point="org.eclipse.wst.server.core.runtimeTargetHandlers"> |
| 96 | <runtimeTargetHandler |
| 97 | id="com.example.runtimeTargetHandler" |
| 98 | runtimeTypeIds="com.example.runtime, com.example2.*" |
| 99 | class="com.example.ExampleRuntimeTargetHandler"/> |
| 100 | </extension> |
| 101 | </pre> |
| 102 | </p>
|
| 103 | </documentation>
|
| 104 | </annotation>
|
| 105 |
|
| 106 | <annotation>
|
| 107 | <appInfo>
|
| 108 | <meta.section type="apiInfo"/>
|
| 109 | </appInfo>
|
| 110 | <documentation>
|
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 111 | Value of the attribute <b>class</b> must be a fully qualified name of a Java class that extends <b>org.eclipse.wst.server.core.model.RuntimeTargetHandlerDelegate</b> and contains a public 0-arg constructor.
|
ndai | b94eb26 | 2004-10-13 15:55:37 +0000 | [diff] [blame] | 112 | </documentation>
|
| 113 | </annotation>
|
| 114 |
|
| 115 | <annotation>
|
| 116 | <appInfo>
|
| 117 | <meta.section type="copyright"/>
|
| 118 | </appInfo>
|
| 119 | <documentation>
|
deboer | 09c692b | 2005-04-20 15:07:15 +0000 | [diff] [blame^] | 120 | Copyright (c) 2000, 2005 IBM Corporation and others.<br> |
ndai | b94eb26 | 2004-10-13 15:55:37 +0000 | [diff] [blame] | 121 | All rights reserved. This program and the accompanying materials are made |
deboer | df10c15 | 2005-02-17 18:24:46 +0000 | [diff] [blame] | 122 | available under the terms of the Eclipse Public License v1.0 which accompanies |
ndai | b94eb26 | 2004-10-13 15:55:37 +0000 | [diff] [blame] | 123 | this distribution, and is available at |
deboer | df10c15 | 2005-02-17 18:24:46 +0000 | [diff] [blame] | 124 | <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
|
ndai | b94eb26 | 2004-10-13 15:55:37 +0000 | [diff] [blame] | 125 | </documentation>
|
| 126 | </annotation>
|
| 127 |
|
| 128 | </schema>
|