uk.ac.kcl.cch.jb.pliny.browser
Class BrowserEditorInput

java.lang.Object
  extended byuk.ac.kcl.cch.jb.pliny.browser.BrowserEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IElementFactory, org.eclipse.ui.IPersistable, org.eclipse.ui.IPersistableElement

public class BrowserEditorInput
extends Object
implements org.eclipse.ui.IEditorInput, org.eclipse.ui.IPersistableElement, org.eclipse.ui.IElementFactory

The IEditorInput for the Pliny browser. It is similar to the input class defined for org.eclipse.ui.internal.browser. It also acts as the IElementFactory for itself.

Author:
John Bradley

Constructor Summary
BrowserEditorInput()
           
BrowserEditorInput(String theUrl)
           
BrowserEditorInput(URL myUrl)
           
 
Method Summary
 org.eclipse.core.runtime.IAdaptable createElement(org.eclipse.ui.IMemento memento)
           
 boolean equals(Object obj)
           
 boolean exists()
           
 Object getAdapter(Class adapter)
           
 String getFactoryId()
           
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
           
 String getName()
           
 org.eclipse.ui.IPersistableElement getPersistable()
           
 String getTitle()
           
 String getToolTipText()
           
 URL getUrl()
           
 void saveState(org.eclipse.ui.IMemento memento)
           
 void setTitle(String title)
           
 void setUrl(URL newUrl)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserEditorInput

public BrowserEditorInput()

BrowserEditorInput

public BrowserEditorInput(URL myUrl)

BrowserEditorInput

public BrowserEditorInput(String theUrl)
                   throws MalformedURLException
Method Detail

getUrl

public URL getUrl()

setUrl

public void setUrl(URL newUrl)

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

exists

public boolean exists()
Specified by:
exists in interface org.eclipse.ui.IEditorInput

getImageDescriptor

public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
Specified by:
getImageDescriptor in interface org.eclipse.ui.IEditorInput

getName

public String getName()
Specified by:
getName in interface org.eclipse.ui.IEditorInput

getPersistable

public org.eclipse.ui.IPersistableElement getPersistable()
Specified by:
getPersistable in interface org.eclipse.ui.IEditorInput

getToolTipText

public String getToolTipText()
Specified by:
getToolTipText in interface org.eclipse.ui.IEditorInput

getAdapter

public Object getAdapter(Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable

getFactoryId

public String getFactoryId()
Specified by:
getFactoryId in interface org.eclipse.ui.IPersistableElement

saveState

public void saveState(org.eclipse.ui.IMemento memento)
Specified by:
saveState in interface org.eclipse.ui.IPersistable

createElement

public org.eclipse.core.runtime.IAdaptable createElement(org.eclipse.ui.IMemento memento)
Specified by:
createElement in interface org.eclipse.ui.IElementFactory

equals

public boolean equals(Object obj)