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.part
Class FileEditorInputFactory


java.lang.Object
  extended by 
org.eclipse.ui.part.FileEditorInputFactory
All Implemented Interfaces:
IElementFactory

public class FileEditorInputFactory
extends Object
implements IElementFactory

Factory for saving and restoring a FileEditorInput. The stored representation of a FileEditorInput remembers the full path of the file (that is, IFile.getFullPath).

The workbench will automatically create instances of this class as required. It is not intended to be instantiated or subclassed by the client.

Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.

Constructor Summary
FileEditorInputFactory ()
          Creates a new factory.
 
Method Summary
  IAdaptable createElement ( IMemento memento)
          Re-creates and returns an object from the state captured within the given memento.
static  String getFactoryId ()
          Returns the element factory id for this class.
static void saveState ( IMemento memento, FileEditorInput input)
          Saves the state of the given file editor input into the given memento.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEditorInputFactory

public FileEditorInputFactory()
Creates a new factory.

Method Detail

createElement

public 
IAdaptable createElement(
IMemento memento)
Description copied from interface: IElementFactory
Re-creates and returns an object from the state captured within the given memento.

If the result is not null, it should be persistable; that is,

 result.getAdapter(org.eclipse.ui.IPersistableElement.class)
 
should not return null.

Specified by:
createElement in interface IElementFactory
Parameters:
memento - a memento containing the state for the object
Returns:
an object, or null if the element could not be created

getFactoryId

public static 
String getFactoryId()
Returns the element factory id for this class.

Returns:
the element factory id

saveState

public static void saveState(
IMemento memento,
                             
FileEditorInput input)
Saves the state of the given file editor input into the given memento.

Parameters:
memento - the storage area for element state
input - the file editor input

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