Class NonExistingFileEditorInput
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- com._1c.g5.v8.dt.lcore.ui.document.NonExistingFileEditorInput
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.ui.editors.text.ILocationProvider
,org.eclipse.ui.IEditorInput
,org.eclipse.ui.IStorageEditorInput
public class NonExistingFileEditorInput extends org.eclipse.core.runtime.PlatformObject implements org.eclipse.ui.IEditorInput, org.eclipse.ui.editors.text.ILocationProvider, org.eclipse.ui.IStorageEditorInput
FileEditorInput
implementation with file, that does not actually exist in file system.- See Also:
NonExistingFileAwareXtextDocumentProvider
-
-
Constructor Summary
Constructors Constructor Description NonExistingFileEditorInput(org.eclipse.core.resources.IFile file)
Constructor forNonExistingFileEditorInput
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
exists()
Non existing file are always not exist.Object
getAdapter(Class adapter)
org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor()
String
getName()
org.eclipse.core.runtime.IPath
getPath(Object element)
org.eclipse.ui.IPersistableElement
getPersistable()
org.eclipse.core.resources.IStorage
getStorage()
String
getToolTipText()
int
hashCode()
void
saveText(String text)
Save actual input text.
-
-
-
Constructor Detail
-
NonExistingFileEditorInput
public NonExistingFileEditorInput(org.eclipse.core.resources.IFile file)
Constructor forNonExistingFileEditorInput
.- Parameters:
file
- target file- Throws:
IllegalArgumentException
- if given file isnull
-
-
Method Detail
-
exists
public boolean exists()
Non existing file are always not exist.- Specified by:
exists
in interfaceorg.eclipse.ui.IEditorInput
-
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor
in interfaceorg.eclipse.ui.IEditorInput
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.ui.IEditorInput
-
getPersistable
public org.eclipse.ui.IPersistableElement getPersistable()
- Specified by:
getPersistable
in interfaceorg.eclipse.ui.IEditorInput
-
getToolTipText
public String getToolTipText()
- Specified by:
getToolTipText
in interfaceorg.eclipse.ui.IEditorInput
-
getPath
public org.eclipse.core.runtime.IPath getPath(Object element)
- Specified by:
getPath
in interfaceorg.eclipse.ui.editors.text.ILocationProvider
-
getStorage
public org.eclipse.core.resources.IStorage getStorage() throws org.eclipse.core.runtime.CoreException
- Specified by:
getStorage
in interfaceorg.eclipse.ui.IStorageEditorInput
- Throws:
org.eclipse.core.runtime.CoreException
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.core.runtime.PlatformObject
-
saveText
public void saveText(String text)
Save actual input text.NonExistingFileAwareXtextDocumentProvider
will invoke this method to save document content. Default implementation does nothing.
Subclasses may override for their own purpose.- Parameters:
text
- text to save.
-
-