# 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) >

- id - a unique id that will be used to identify this unassociated editor strategy
- class - the fully qualified class name implementing the interface org.eclipse.ui.ide.IUnassociatedEditorStrategy
- label - a short label describing the strategy. Will be used to present the various strategies to user in Preference Page and other related UI entries.
- interactive - declares whether the strategy is interactive, requires user actions or control. In some contexts, interactive strategies will be ignored as operations have to happen without interaction.

###### 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.
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