/******************************************************************************* * Copyright (c) 2015 Red Hat Inc. * 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 * * Contributors: * Mickael Istria (Red Hat Inc.) - extracted from IDE.getEditorDescription *******************************************************************************/ package org.eclipse.ui.internal.ide.registry; import org.eclipse.ui.IEditorDescriptor; import org.eclipse.ui.IEditorRegistry; import org.eclipse.ui.ide.IUnassociatedEditorStrategy; import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; /** * @since 3.12 * */ public final class TextEditorStrategy implements IUnassociatedEditorStrategy { @Override public IEditorDescriptor getEditorDescriptor(String name, IEditorRegistry editorReg) { return editorReg.findEditor(IDEWorkbenchPlugin.DEFAULT_TEXT_EDITOR_ID); } }