sk.uniba.euromath.editor
Class NewDocumentEditorInput

java.lang.Object
  extended by sk.uniba.euromath.editor.NewDocumentEditorInput
All Implemented Interfaces:
IAdaptable, IEditorInput

public class NewDocumentEditorInput
extends Object
implements IEditorInput

Creates an editor input from already initialized document instance. The document must have all schema loaded and be checked for validity.

Author:
Martin Vysny

Field Summary
 XMLAccess xmlAccess
          The document.
 
Constructor Summary
NewDocumentEditorInput(XMLAccess xmlAccess)
          Creates instance of editor input.
 
Method Summary
 boolean exists()
           
 Object getAdapter(Class adapter)
           
 ImageDescriptor getImageDescriptor()
           
 String getName()
           
 IPersistableElement getPersistable()
           
 String getToolTipText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlAccess

public final XMLAccess xmlAccess
The document.

Constructor Detail

NewDocumentEditorInput

public NewDocumentEditorInput(XMLAccess xmlAccess)
Creates instance of editor input.

Parameters:
xmlAccess - the document to open.
Method Detail

exists

public boolean exists()
Specified by:
exists in interface IEditorInput

getImageDescriptor

public ImageDescriptor getImageDescriptor()
Specified by:
getImageDescriptor in interface IEditorInput

getName

public String getName()
Specified by:
getName in interface IEditorInput

getPersistable

public IPersistableElement getPersistable()
Specified by:
getPersistable in interface IEditorInput

getToolTipText

public String getToolTipText()
Specified by:
getToolTipText in interface IEditorInput

getAdapter

public Object getAdapter(Class adapter)
Specified by:
getAdapter in interface IAdaptable


Copyright © 2003-2006 null. All Rights Reserved.