1<?xml version='1.0' encoding='UTF-8'?> 2<!-- Schema file written by PDE --> 3<schema targetNamespace="org.eclipse.e4.ui.workbench" xmlns="http://www.w3.org/2001/XMLSchema"> 4<annotation> 5 <appInfo> 6 <meta.schema plugin="org.eclipse.e4.ui.workbench" id="model.definition.enrichment" name="Model definition extensions"/> 7 </appInfo> 8 <documentation> 9 <strong>This is not an API. The schema for this extension point is not frozen and might change in a non-backward compatible way in the future.</strong> 10<p> 11This extension point provides a mechanism to enrich the UI model with custom UI model elements. 12<p> 13To find and create a custom UI model element via the EModelService#createModelElement(Class) method the elements have to be publisched via this ExtensionPoint. 14</p> 15 </documentation> 16 </annotation> 17 18 <element name="extension"> 19 <annotation> 20 <appInfo> 21 <meta.element /> 22 </appInfo> 23 </annotation> 24 <complexType> 25 <sequence minOccurs="1" maxOccurs="unbounded"> 26 <element ref="definitionEnrichment"/> 27 </sequence> 28 <attribute name="point" type="string" use="required"> 29 <annotation> 30 <documentation> 31 32 </documentation> 33 </annotation> 34 </attribute> 35 <attribute name="id" type="string"> 36 <annotation> 37 <documentation> 38 39 </documentation> 40 </annotation> 41 </attribute> 42 <attribute name="name" type="string"> 43 <annotation> 44 <documentation> 45 46 </documentation> 47 <appInfo> 48 <meta.attribute translatable="true"/> 49 </appInfo> 50 </annotation> 51 </attribute> 52 </complexType> 53 </element> 54 55 <element name="definitionEnrichment"> 56 <complexType> 57 <attribute name="ePackageNS" type="string" use="required"> 58 <annotation> 59 <documentation> 60 A namespace URI to the EPackage which contains custom application model classes. 61 </documentation> 62 </annotation> 63 </attribute> 64 </complexType> 65 </element> 66 67 <annotation> 68 <appInfo> 69 <meta.section type="since"/> 70 </appInfo> 71 <documentation> 72 4.4 73 </documentation> 74 </annotation> 75 76 <annotation> 77 <appInfo> 78 <meta.section type="examples"/> 79 </appInfo> 80 <documentation> 81 The following is an example to register a model definiton enrichment: 82 83<extension 84 point="org.eclipse.e4.workbench.model.definition.enrichment"> 85 <definitionEnrichment 86 ePackageNS="http://www.eclipse.org/ui/2010/UIModel/application/ui"> 87 </definitionEnrichment> 88</extension> 89 </documentation> 90 </annotation> 91 92 93 94 <annotation> 95 <appInfo> 96 <meta.section type="copyright"/> 97 </appInfo> 98 <documentation> 99 Copyright (c) 2014 IBM Corporation and others.<br> 100 101This program and the accompanying materials are made 102available under the terms of the Eclipse Public License 2.0 which accompanies 103this distribution, and is available at <a 104href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/ 105 106SPDX-License-Identifier: EPL-2.0 107 </documentation> 108 </annotation> 109 110</schema> 111