com.ibm.lpex.alef
Class LpexTextEditor

java.lang.Object
  |
  +--org.eclipse.ui.part.WorkbenchPart
        |
        +--org.eclipse.ui.part.EditorPart
              |
              +--com.ibm.lpex.alef.LpexAbstractTextEditor
                    |
                    +--com.ibm.lpex.alef.LpexTextEditor
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorPart, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.texteditor.ITextEditor, org.eclipse.ui.IWorkbenchPart

public class LpexTextEditor
extends LpexAbstractTextEditor

A line-oriented, LPEX-based text editor for IFile resources and IStorage objects.

The editor's context menu has id #TextEditorContext. The editor's ruler context menu has id #TextRulerContext.


Fields inherited from class com.ibm.lpex.alef.LpexAbstractTextEditor
DEFAULT_EDITOR_CONTEXT_MENU_ID, DEFAULT_RULER_CONTEXT_MENU_ID, VERTICAL_RULER_WIDTH
 
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
LpexTextEditor()
          Creates a new text editor.
 
Method Summary
protected  void initializeEditor()
          Initialize this editor.
 boolean isSaveAsAllowed()
          The TextEditor implementation of this IEditorPart method returns true.
protected  void performSaveAs(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
          The LpexTextEditor implementation of this AbstractTextEditor method asks the user for the workspace path of a file resource, and saves the document there.
 
Methods inherited from class com.ibm.lpex.alef.LpexAbstractTextEditor
addAction, addAction, addGroup, addLines, addMark, adjustHighlightRange, close, createActions, createPartControl, createSaveOperation, createSourceViewer, createVerticalRuler, dispose, doRevertToSaved, doSave, doSaveAs, doSetInput, editorContextMenuAboutToShow, firePropertyChange, getAction, getAdapter, getContextMenuListener, getDocumentProvider, getEditorContextMenuId, getEOL, getHelpContextId, getHighlightRange, getLpexView, getLpexWindow, getPreferenceStore, getRangeIndicator, getRulerContextMenuId, getRulerMouseListener, getSelectionProvider, getSourceViewer, getSourceViewerConfiguration, getVerticalRuler, gotoMarker, handleEditorInputChanged, handleExceptionOnSave, handlePreferenceStoreChanged, init, initializeLpexView, isDirty, isEditable, isSaveOnCloseNeeded, performSaveOperation, removeActionActivationCode, resetHighlightRange, rulerContextMenuAboutToShow, selectAndReveal, setAction, setActionActivationCode, setDocumentProvider, setDocumentSection, setEditorContextMenuId, setFocus, setHelpContextId, setHighlightRange, setInput, setPreferenceStore, setRangeIndicator, setRulerContextMenuId, setSourceViewerConfiguration, showHighlightRangeOnly, showsHighlightRangeOnly, updateMarkers, updateProfile
 
Methods inherited from class org.eclipse.ui.part.EditorPart
getEditorInput, getEditorSite, getTitleToolTip
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, getConfigurationElement, getDefaultImage, getSite, getTitle, getTitleImage, removePropertyListener, setInitializationData, setSite, setTitle, setTitleImage, setTitleToolTip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IEditorPart
getEditorInput, getEditorSite
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 

Constructor Detail

LpexTextEditor

public LpexTextEditor()
Creates a new text editor.
Method Detail

initializeEditor

protected void initializeEditor()
Initialize this editor.

isSaveAsAllowed

public boolean isSaveAsAllowed()
The TextEditor implementation of this IEditorPart method returns true.
Overrides:
isSaveAsAllowed in class LpexAbstractTextEditor
See Also:
LpexAbstractTextEditor.isSaveAsAllowed()

performSaveAs

protected void performSaveAs(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
The LpexTextEditor implementation of this AbstractTextEditor method asks the user for the workspace path of a file resource, and saves the document there.
Overrides:
performSaveAs in class LpexAbstractTextEditor
Following copied from class: com.ibm.lpex.alef.LpexAbstractTextEditor
Parameters:
progressMonitor - the progress monitor for communicating result state, or null