Editor Association Override

Identifier:
org.eclipse.ui.ide.editorAssociationOverride

Since:
3.8

Description:
Allows to override editor associations for the IDE to resolve conflicting contributions.

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 org.eclipse.ui.ide.IDE or where the client code explicitly honors this extension point by calling one of the override methods in org.eclipse.ui.ide.IDE. Main intent is to allow intercepting how editors are opened via the IDE UI like Open, Open With and Open Resource. This extension point does not affect the Compare editors.

Note: 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.

Configuration Markup:

<!ELEMENT extension (editorAssociationOverride+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT editorAssociationOverride EMPTY>

<!ATTLIST editorAssociationOverride

id    CDATA #REQUIRED

class CDATA #REQUIRED

>


Examples:

   <extension
      point="org.eclipse.ui.ide.editorAssociationOverride">
         <editorAssociationOverride
            id="exampleOverride"
            class="example.ExampleOverride">
         </editorAssociationOverride>
   </extension>

API Information:
See the org.eclipse.ui.ide.IEditorAssociationOverride interface.


Copyright (c) 2012 IBM Corporation and others.
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 http://www.eclipse.org/legal/epl-v10.html