com.alveole.studio.web.designer
Class ProjectEditorInput

java.lang.Object
  extended by com.alveole.studio.web.designer.ProjectEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput

public class ProjectEditorInput
extends java.lang.Object
implements org.eclipse.ui.IEditorInput

This class is an EditorInput that embeds data of the project.

Author:
sylvain

Field Summary
protected  Project parsedProject
          The project instance.
protected  org.eclipse.ui.IEditorInput projectFile
          The original EditorInput.
protected  ProjectEditor rootEditor
          The root multi-page editor.
 
Constructor Summary
ProjectEditorInput(ProjectEditor rootEditor, org.eclipse.ui.IEditorInput projectFile, Project parsedProject)
          Constructor.
 
Method Summary
 boolean exists()
          Check if file exists.
 java.lang.Object getAdapter(java.lang.Class adapter)
          Gets an adapter for this document.
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
          Get an image description.
 java.lang.String getName()
          Get the input name.
 org.eclipse.ui.IPersistableElement getPersistable()
          Get persistable element.
 java.lang.String getToolTipText()
          Get a tooltip text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projectFile

protected org.eclipse.ui.IEditorInput projectFile
The original EditorInput.


parsedProject

protected Project parsedProject
The project instance.


rootEditor

protected ProjectEditor rootEditor
The root multi-page editor.

Constructor Detail

ProjectEditorInput

public ProjectEditorInput(ProjectEditor rootEditor,
                          org.eclipse.ui.IEditorInput projectFile,
                          Project parsedProject)
Constructor.

Parameters:
rootEditor - The multi-page embedding editor.
projectFile - The original input file.
parsedProject - The project instance.
Method Detail

exists

public boolean exists()
Check if file exists.

Specified by:
exists in interface org.eclipse.ui.IEditorInput
Returns:
true if file exists.

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Gets an adapter for this document. Project and ProjectEditor are valid target classes.

Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Parameters:
adapter - The target class.
Returns:
The implementation or null.

getImageDescriptor

public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
Get an image description.

Specified by:
getImageDescriptor in interface org.eclipse.ui.IEditorInput
Returns:
the image.

getName

public java.lang.String getName()
Get the input name.

Specified by:
getName in interface org.eclipse.ui.IEditorInput
Returns:
The name.

getPersistable

public org.eclipse.ui.IPersistableElement getPersistable()
Get persistable element.

Specified by:
getPersistable in interface org.eclipse.ui.IEditorInput
Returns:
The element.

getToolTipText

public java.lang.String getToolTipText()
Get a tooltip text.

Specified by:
getToolTipText in interface org.eclipse.ui.IEditorInput
Returns:
the text for tooltip.