<?xml version='1.0' encoding='UTF-8'?> | |
<!-- Schema file written by PDE --> | |
<schema targetNamespace="org.eclipse.ui.ide" xmlns="http://www.w3.org/2001/XMLSchema"> | |
<annotation> | |
<appInfo> | |
<meta.schema plugin="org.eclipse.ui.ide" id="editorAssociationOverride" name="Editor Association Override"/> | |
</appInfo> | |
<documentation> | |
Allows to override editor associations for the IDE to resolve conflicting contributions. | |
<p> | |
There are many ways to find editors for a given input and to open an editor. This extension point will only work for those cases where the request was done via <code>org.eclipse.ui.ide.IDE</code> or where the client code explicitly honors this extension point by calling one of the override methods in <code>org.eclipse.ui.ide.IDE</code>. Main intent is to allow intercepting how editors are opened via the IDE UI like <b>Open</b>, <b>Open With</b> and <b>Open Resource</b>. This extension point does not affect the Compare editors. | |
</p> | |
<p> | |
<strong>Note:</strong> This extension point should only be used in cases where a product gets assembled with conflicting editor contribtions and where there is no other way to resolve those conflicts. | |
</p> | |
</documentation> | |
</annotation> | |
<element name="extension"> | |
<annotation> | |
<appInfo> | |
<meta.element /> | |
</appInfo> | |
</annotation> | |
<complexType> | |
<sequence> | |
<element ref="editorAssociationOverride" 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="editorAssociationOverride"> | |
<complexType> | |
<attribute name="id" type="string" use="required"> | |
<annotation> | |
<documentation> | |
a unique id that will be used to identify this editor association override | |
</documentation> | |
</annotation> | |
</attribute> | |
<attribute name="class" type="string" use="required"> | |
<annotation> | |
<documentation> | |
the fully qualified class name implementing the interface <code>org.eclipse.ui.ide.IEditorAssociationOverride</code> | |
</documentation> | |
<appInfo> | |
<meta.attribute kind="java" basedOn=":org.eclipse.ui.ide.IEditorAssociationOverride"/> | |
</appInfo> | |
</annotation> | |
</attribute> | |
</complexType> | |
</element> | |
<annotation> | |
<appInfo> | |
<meta.section type="since"/> | |
</appInfo> | |
<documentation> | |
3.8 | |
</documentation> | |
</annotation> | |
<annotation> | |
<appInfo> | |
<meta.section type="examples"/> | |
</appInfo> | |
<documentation> | |
<pre> | |
<extension | |
point="org.eclipse.ui.ide.editorAssociationOverride"> | |
<editorAssociationOverride | |
id="exampleOverride" | |
class="example.ExampleOverride"> | |
</editorAssociationOverride> | |
</extension> | |
</pre> | |
</documentation> | |
</annotation> | |
<annotation> | |
<appInfo> | |
<meta.section type="apiinfo"/> | |
</appInfo> | |
<documentation> | |
See the <code>org.eclipse.ui.ide.IEditorAssociationOverride</code> interface. | |
</documentation> | |
</annotation> | |
<annotation> | |
<appInfo> | |
<meta.section type="copyright"/> | |
</appInfo> | |
<documentation> | |
Copyright (c) 2012 IBM Corporation 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> |