Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui
Interface IEditorReference

All Superinterfaces:
IWorkbenchPartReference

public interface IEditorReference
extends IWorkbenchPartReference

Implements a reference to a editor. The IEditorPart will not be instanciated until the editor becomes visible or the API getEditor is sent with true;

This interface is not intended to be implemented by clients.

Restriction:
This interface is not intended to be implemented by clients.

Method Summary
  IEditorPart getEditor (boolean restore)
          Returns the editor referenced by this object.
  IEditorInput getEditorInput ()
          Returns the editor input for the editor referenced by this object.
  String getFactoryId ()
          Returns the factory id of the factory used to restore this editor.
  String getName ()
          Returns the editor input name.
 boolean isPinned ()
          Returns true if the editor is pinned otherwise returns false.
 
Methods inherited from interface org.eclipse.ui. IWorkbenchPartReference
addPartPropertyListener, addPropertyListener, getContentDescription, getId, getPage, getPart, getPartName, getPartProperty, getTitle, getTitleImage, getTitleToolTip, isDirty, removePartPropertyListener, removePropertyListener
 

Method Detail

getFactoryId


String getFactoryId()
Returns the factory id of the factory used to restore this editor. Returns null if the editor is not persistable.


getName


String getName()
Returns the editor input name. May return null is the name is not available or if the editor failed to be restored.


getEditor


IEditorPart getEditor(boolean restore)
Returns the editor referenced by this object. Returns null if the editor was not instantiated or it failed to be restored. Tries to restore the editor if restore is true.


isPinned

boolean isPinned()
Returns true if the editor is pinned otherwise returns false.


getEditorInput


IEditorInput getEditorInput()
                            throws 
PartInitException
Returns the editor input for the editor referenced by this object.

Unlike most of the other methods on this type, this method can trigger plug-in activation.

Returns:
the editor input for the editor referenced by this object
Throws:
PartInitException - if there was an error restoring the editor input
Since:
3.1

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire