public abstract class AbstractModuleEditor
extends org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
org.eclipse.ui.texteditor.AbstractTextEditor.AbstractSelectionChangedListener, org.eclipse.ui.texteditor.AbstractTextEditor.ColumnSupport, org.eclipse.ui.texteditor.AbstractTextEditor.IdMapEntry, org.eclipse.ui.texteditor.AbstractTextEditor.LineEndAction, org.eclipse.ui.texteditor.AbstractTextEditor.LineStartAction, org.eclipse.ui.texteditor.AbstractTextEditor.SelectionProvider, org.eclipse.ui.texteditor.AbstractTextEditor.TextEditorSavable
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.graphics.Color |
backgroundColor |
static String |
EDITOR_MATCHING_BRACKETS |
static String |
EDITOR_MATCHING_BRACKETS_COLOR |
protected EpsilonHighlightingManager |
highlightingManager |
protected ArrayList<IModuleParseListener> |
moduleParsedListeners |
protected org.eclipse.core.runtime.jobs.Job |
parseModuleJob |
static String |
PROBLEM_MARKER |
protected ArrayList<IAbstractModuleEditorTemplateContributor> |
templateContributors |
DEFAULT_OVERVIEW_RULER_CONTEXT_MENU_ID, fAnnotationAccess, fIsUpdatingMarkerViews, fLineNumberRulerColumn, fOverviewRuler, fSourceViewerDecorationSupport
ACTION_MAP, COMMON_EDITOR_CONTEXT_MENU_ID, COMMON_RULER_CONTEXT_MENU_ID, DEFAULT_EDITOR_CONTEXT_MENU_ID, DEFAULT_RULER_CONTEXT_MENU_ID, fErrorLabel, PREFERENCE_COLOR_BACKGROUND, PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_FIND_SCOPE, PREFERENCE_COLOR_FOREGROUND, PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_SELECTION_BACKGROUND, PREFERENCE_COLOR_SELECTION_BACKGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_SELECTION_FOREGROUND, PREFERENCE_COLOR_SELECTION_FOREGROUND_SYSTEM_DEFAULT, PREFERENCE_FONT, PREFERENCE_HOVER_ENRICH_MODE, PREFERENCE_HYPERLINK_KEY_MODIFIER, PREFERENCE_HYPERLINK_KEY_MODIFIER_MASK, PREFERENCE_HYPERLINKS_ENABLED, PREFERENCE_NAVIGATION_SMART_HOME_END, PREFERENCE_RULER_CONTRIBUTIONS, PREFERENCE_SHOW_CARET_OFFSET, PREFERENCE_SHOW_CARRIAGE_RETURN, PREFERENCE_SHOW_ENCLOSED_IDEOGRAPHIC_SPACES, PREFERENCE_SHOW_ENCLOSED_SPACES, PREFERENCE_SHOW_ENCLOSED_TABS, PREFERENCE_SHOW_LEADING_IDEOGRAPHIC_SPACES, PREFERENCE_SHOW_LEADING_SPACES, PREFERENCE_SHOW_LEADING_TABS, PREFERENCE_SHOW_LINE_FEED, PREFERENCE_SHOW_SELECTION_SIZE, PREFERENCE_SHOW_TRAILING_IDEOGRAPHIC_SPACES, PREFERENCE_SHOW_TRAILING_SPACES, PREFERENCE_SHOW_TRAILING_TABS, PREFERENCE_SHOW_WHITESPACE_CHARACTERS, PREFERENCE_TEXT_DRAG_AND_DROP_ENABLED, PREFERENCE_USE_CUSTOM_CARETS, PREFERENCE_WHITESPACE_CHARACTER_ALPHA_VALUE, PREFERENCE_WIDE_CARET, PREFERENCE_WORD_WRAP_ENABLED, TAG_SELECTION_HORIZONTAL_PIXEL, TAG_SELECTION_LENGTH, TAG_SELECTION_OFFSET, TAG_SELECTION_TOP_PIXEL, VERTICAL_RULER_WIDTH
Constructor and Description |
---|
AbstractModuleEditor() |
Modifier and Type | Method and Description |
---|---|
ModuleElement |
adaptToAST(Object o) |
void |
addModuleParsedListener(IModuleParseListener listener) |
void |
addTemplateContributor(IAbstractModuleEditorTemplateContributor templateContributor) |
void |
close(boolean save) |
protected void |
configureSourceViewerDecorationSupport(org.eclipse.ui.texteditor.SourceViewerDecorationSupport support) |
protected void |
createActions() |
abstract IModule |
createModule() |
protected abstract ModuleContentProvider |
createModuleContentProvider() |
abstract ModuleElementLabelProvider |
createModuleElementLabelProvider() |
ModuleContentOutlinePage |
createOutlinePage() |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.jface.text.source.ISourceViewer |
createSourceViewer(org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.text.source.IVerticalRuler ruler,
int styles) |
org.eclipse.jface.text.source.SourceViewerConfiguration |
createSourceViewerConfiguration() |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor) |
<T> T |
getAdapter(Class<T> required) |
List<String> |
getAssertions() |
org.eclipse.swt.graphics.Color |
getBackgroundColor() |
abstract List<String> |
getBuiltinVariables() |
EpsilonHighlightingManager |
getHighlightingManager() |
abstract List<String> |
getKeywords() |
ArrayList<IModuleParseListener> |
getModuleParsedListeners() |
List<org.eclipse.jface.text.templates.Template> |
getTemplates() |
String |
getText() |
Collection<String> |
getTypes() |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input) |
void |
insertText(String text) |
boolean |
isClosed() |
boolean |
isDirty() |
protected void |
notifyModuleParsedListeners(IModule module) |
void |
parseModule() |
boolean |
removeModuleParsedListener(IModuleParseListener listener) |
boolean |
removeTemplateContributor(IAbstractModuleEditorTemplateContributor templateContributor) |
void |
setBackgroundColor(org.eclipse.swt.graphics.Color backgroundColor) |
protected abstract boolean |
supportsDirtyTextParsing() |
protected abstract boolean |
supportsHyperlinks() |
collectContextMenuPreferencePages, collectOverviewRulerMenuPreferencePages, collectRulerMenuPreferencePages, createAnnotationAccess, createAnnotationRulerColumn, createChangeHover, createChangeRulerColumn, createColumnSupport, createCompositeRuler, createContextMenuListener, createLineNumberRulerColumn, createOverviewRuler, createOverviewRulerContextMenu, createShowInTargetList, createStatusControl, createVerticalRuler, dispose, disposeDocumentProvider, doSetInput, editorContextMenuAboutToShow, getAnnotationAccess, getAnnotationPreferenceLookup, getAnnotationPreferences, getDocumentProvider, getOverviewRuler, getOverviewRulerContextMenuId, getSharedColors, getSourceViewerDecorationSupport, getUndoRedoOperationApprover, gotoAnnotation, gotoMarker, handleEditorInputChanged, handlePreferenceStoreChanged, hideOverviewRuler, initializeEditor, initializeKeyBindingScopes, initializeLineNumberRulerColumn, isChangeInformationShowing, isEditable, isErrorStatus, isLineNumberRulerVisible, isNavigationTarget, isOverviewRulerVisible, isOverwriteModeEnabled, isPrefQuickDiffAlwaysOn, isSpacesAsTabsDeletionEnabled, isTabsToSpacesConversionEnabled, openSaveErrorDialog, overviewRulerContextMenuAboutToShow, performSaveAs, rulerContextMenuAboutToShow, setDocumentProvider, setOverviewRulerContextMenuId, showChangeInformation, showOverviewRuler, showRevisionInformation, updateMarkerViews, validateEditorInputState
doRevertToSaved, getStatusBanner, getStatusHeader, getStatusMessage, handleElementContentReplaced, sanityCheckState, setFocus, updatePartControl, updateStatusField
addAction, addAction, addGroup, addRulerContextMenuListener, adjustHighlightRange, affectsTextPresentation, canHandleMove, configureInsertMode, containsSavedState, createEmptyNavigationLocation, createNavigationActions, createNavigationLocation, createUndoRedoActions, doGetSelection, doRestoreState, doSaveAs, doSetSelection, editorSaved, enableOverwriteMode, enableSanityChecking, enableStateValidation, findAnnotation, firePropertyChange, getAction, getActiveSaveables, getContextMenuListener, getCoverage, getCursorListener, getCursorPosition, getEditorContextMenuId, getFontPropertyPreferenceKey, getHelpContextId, getHighlightRange, getInitialWordWrapStatus, getInsertMode, getLegalInsertModes, getPreferenceStore, getProgressMonitor, getRangeIndicator, getRulerContextMenuId, getRulerMouseListener, getSaveables, getSelectionChangedListener, getSelectionProvider, getSourceViewer, getSourceViewerConfiguration, getStatusField, getStatusLineManager, getVerticalRuler, handleCursorPositionChanged, handleExceptionOnSave, handleInsertModeChanged, initializeDragAndDrop, initializeViewerColors, installCodeMiningProviders, installTabsToSpacesConverter, installTextDragAndDrop, internalInit, isBlockSelectionModeEnabled, isBlockSelectionModeSupported, isEditorInputIncludedInContextMenu, isEditorInputModifiable, isEditorInputReadOnly, isInInsertMode, isSaveAsAllowed, isVisible, isWordWrapEnabled, isWordWrapSupported, markAsContentDependentAction, markAsPropertyDependentAction, markAsSelectionDependentAction, markAsStateDependentAction, markInNavigationHistory, modelOffset2WidgetOffset, performRevert, performSave, rememberSelection, removeActionActivationCode, removeRulerContextMenuListener, resetHighlightRange, restoreSelection, restoreState, safelySanityCheckState, saveState, selectAndReveal, selectAndReveal, setAction, setActionActivationCode, setBlockSelectionMode, setCompatibilityMode, setDocumentProvider, setEditorContextMenuId, setHelpContextId, setHighlightRange, setInput, setInputWithNotify, setInsertMode, setKeyBindingScopes, setPreferenceStore, setRangeIndicator, setRulerContextMenuId, setSourceViewerConfiguration, setStatusField, setStatusLineErrorMessage, setStatusLineMessage, setWordWrap, showHighlightRangeOnly, showsHighlightRangeOnly, uninstallTabsToSpacesConverter, uninstallTextDragAndDrop, updateContentDependentActions, updateContributedRulerColumns, updateIndentPrefixes, updatePropertyDependentActions, updateSelectionDependentActions, updateState, updateStateDependentActions, updateStatusFields, validateState, widgetOffset2ModelOffset
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected org.eclipse.swt.graphics.Color backgroundColor
protected org.eclipse.core.runtime.jobs.Job parseModuleJob
protected ArrayList<IModuleParseListener> moduleParsedListeners
protected ArrayList<IAbstractModuleEditorTemplateContributor> templateContributors
protected EpsilonHighlightingManager highlightingManager
public static final String PROBLEM_MARKER
public static final String EDITOR_MATCHING_BRACKETS
public static final String EDITOR_MATCHING_BRACKETS_COLOR
public void addModuleParsedListener(IModuleParseListener listener)
public ArrayList<IModuleParseListener> getModuleParsedListeners()
public boolean removeModuleParsedListener(IModuleParseListener listener)
public void addTemplateContributor(IAbstractModuleEditorTemplateContributor templateContributor)
public boolean removeTemplateContributor(IAbstractModuleEditorTemplateContributor templateContributor)
protected void notifyModuleParsedListeners(IModule module)
public ModuleElement adaptToAST(Object o)
public void insertText(String text)
protected void configureSourceViewerDecorationSupport(org.eclipse.ui.texteditor.SourceViewerDecorationSupport support)
configureSourceViewerDecorationSupport
in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
public <T> T getAdapter(Class<T> required)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
public Collection<String> getTypes()
public ModuleContentOutlinePage createOutlinePage()
public abstract IModule createModule()
public abstract ModuleElementLabelProvider createModuleElementLabelProvider()
protected abstract ModuleContentProvider createModuleContentProvider()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
protected org.eclipse.jface.text.source.ISourceViewer createSourceViewer(org.eclipse.swt.widgets.Composite parent, org.eclipse.jface.text.source.IVerticalRuler ruler, int styles)
createSourceViewer
in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
public org.eclipse.jface.text.source.SourceViewerConfiguration createSourceViewerConfiguration()
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
init
in interface org.eclipse.ui.IEditorPart
init
in class org.eclipse.ui.texteditor.AbstractTextEditor
public boolean isClosed()
public String getText()
public void parseModule()
public void doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
doSave
in interface org.eclipse.ui.ISaveablePart
doSave
in class org.eclipse.ui.texteditor.AbstractTextEditor
protected abstract boolean supportsHyperlinks()
protected abstract boolean supportsDirtyTextParsing()
public org.eclipse.swt.graphics.Color getBackgroundColor()
public void setBackgroundColor(org.eclipse.swt.graphics.Color backgroundColor)
public void close(boolean save)
close
in interface org.eclipse.ui.texteditor.ITextEditor
close
in class org.eclipse.ui.texteditor.AbstractTextEditor
public final List<org.eclipse.jface.text.templates.Template> getTemplates()
protected void createActions()
createActions
in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
public EpsilonHighlightingManager getHighlightingManager()
public boolean isDirty()
isDirty
in interface org.eclipse.ui.ISaveablePart
isDirty
in class org.eclipse.ui.texteditor.AbstractTextEditor
Copyright © 2020. All rights reserved.