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
ConstructorDescriptionInitializeInitialize -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
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:
getName
in interfaceIEditorInput
-
getToolTipText
Cause tool top to reflect the 'not saved' state.- Specified by:
getToolTipText
in interfaceIEditorInput
-
exists
public boolean exists()- Specified by:
exists
in interfaceIEditorInput
- Returns:
- Returns
false
since no file exists.
-
getImageDescriptor
Returns no image.- Specified by:
getImageDescriptor
in interfaceIEditorInput
-
getPersistable
Can't persist.- Specified by:
getPersistable
in interfaceIEditorInput
-
getAdapter
Don't adapt.- Specified by:
getAdapter
in interfaceIAdaptable
-