|
What this is
Other links
The source code/******************************************************************************* * Copyright (c) 2000, 2005 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; /** * Description of an editor in the workbench editor registry. The * editor descriptor contains the information needed to create editor instances. * <p> * An editor descriptor typically represents one of three types of editors: * <ul> * <li>a file editor extension for a specific file extension. * <li>a file editor added by the user (via the workbench preference page) * <li>a general editor extension which works on objects other than files. * </ul> * </p> * <p> * This interface is not intended to be implemented or extended by clients. * </p> * * @see IEditorRegistry * @noimplement This interface is not intended to be implemented by clients. */ public interface IEditorDescriptor extends IWorkbenchPartDescriptor { /** * Returns the editor id. * <p> * For internal editors, this is the extension id as defined in the workbench * registry; for external editors, it is path and file name of the external * program. * </p> * * @return the id of the editor */ public String getId(); /** * Returns the descriptor of the image for this editor. * * @return the descriptor of the image to display next to this editor */ public ImageDescriptor getImageDescriptor(); /** * Returns the label to show for this editor. * * @return the editor label */ public String getLabel(); /** * Returns whether this editor descriptor will open a regular editor * part inside the editor area. * * @return <code>true if editor is inside editor area, and * <code>false otherwise * @since 3.0 */ public boolean isInternal(); /** * Returns whether this editor descriptor will open an external * editor in-place inside the editor area. * * @return <code>true if editor is in-place, and |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.