Package org.csstudio.ui.util
Class EmptyEditorInput
java.lang.Object
org.csstudio.ui.util.EmptyEditorInput
- All Implemented Interfaces:
IAdaptable,IEditorInput
Empty IEditorInput.
When an editor is started without a file, for example from the main menu, this can be used as its initial input.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializeInitialize -
Method Summary
Modifier and TypeMethodDescriptionbooleanexists()getAdapter(Class adapter) Don't adapt.Returns no image.getName()Cause application title to reflect the 'not saved' state.Can't persist.Cause tool top to reflect the 'not saved' state.
-
Constructor Details
-
EmptyEditorInput
Initialize- Parameters:
icon- Desired icon
-
EmptyEditorInput
public EmptyEditorInput()Initialize
-
-
Method Details
-
getName
Cause application title to reflect the 'not saved' state.- Specified by:
getNamein interfaceIEditorInput
-
getToolTipText
Cause tool top to reflect the 'not saved' state.- Specified by:
getToolTipTextin interfaceIEditorInput
-
exists
public boolean exists()- Specified by:
existsin interfaceIEditorInput- Returns:
- Returns
falsesince no file exists.
-
getImageDescriptor
Returns no image.- Specified by:
getImageDescriptorin interfaceIEditorInput
-
getPersistable
Can't persist.- Specified by:
getPersistablein interfaceIEditorInput
-
getAdapter
Don't adapt.- Specified by:
getAdapterin interfaceIAdaptable
-