org.eclipse.ui.IFileEditorMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workbench Show documentation
Show all versions of workbench Show documentation
This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2006 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui;
import org.eclipse.jface.resource.ImageDescriptor;
/**
* An association between a file name/extension and a list of known editors for
* files of that type.
*
* The name and extension can never empty or null. The name may contain
* the single wild card character (*) to indicate the editor applies to
* all files with the same extension (e.g. *.doc). The name can never
* embed the wild card character within itself (i.e. rep*)
*
*
* This interface is not intended to be implemented by clients.
*
*
* @see IEditorRegistry#getFileEditorMappings
*/
public interface IFileEditorMapping {
/**
* Returns the default editor registered for this type mapping.
*
* @return the descriptor of the default editor, or null
if there
* is no default editor registered
*/
public IEditorDescriptor getDefaultEditor();
/**
* Returns the list of editors registered for this type mapping.
*
* @return a possibly empty list of editors
*/
public IEditorDescriptor[] getEditors();
/**
* Returns the list of editors formerly registered for this type mapping
* which have since been deleted.
*
* @return a possibly empty list of editors
*/
public IEditorDescriptor[] getDeletedEditors();
/**
* Returns the file's extension for this type mapping.
*
* @return the extension for this mapping
*/
public String getExtension();
/**
* Returns the descriptor of the image to use for a file of this type.
*
* The image is obtained from the default editor. A default file image is
* returned if no default editor is available.
*
*
* @return the descriptor of the image to use for a resource of this type
*/
public ImageDescriptor getImageDescriptor();
/**
* Returns the label to use for this mapping.
* Labels have the form "name .extension ".
*
* @return the label to use for this mapping
*/
public String getLabel();
/**
* Returns the file's name for this type mapping.
*
* @return the name for this mapping
*/
public String getName();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy