Unassociated Editor Strategy

Identifier:
org.eclipse.ui.ide.unassociatedEditorStrategy

Since:
3.12

Description:

This extension point allows to plug different strategies for supporting unassociated files inside the IDE. Strategies can be such as forcing a specific editor, asking user to choose an editor, polling a remote registry to find an editor...

Users and extenders are able to choose which strategy to use by setting the related org.eclipse.ui.ide.unassociatedEditorStrategy preference to the id of their favourite strategy.
The default strategy is to check for system editor and to open the Eclipse text editor if no relevant editor is found.

Configuration Markup:

<!ELEMENT extension (strategy)+>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT strategy EMPTY>

<!ATTLIST strategy

id          CDATA #REQUIRED

class       CDATA #REQUIRED

label       CDATA #REQUIRED

interactive (true | false) >


Examples:
See org.eclipse.ui.internal.ide.SystemEditorOrTextEditorStrategy.

API Information:
This adds a new interface IUnassociatedEditorStrategy to the API of org.eclipse.ui.ide.


Copyright (c) 2015, 2016 Red Hat Inc. and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0