public abstract class AbstractModuleEditor
extends org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
| Modifier and Type | Field and Description |
|---|---|
static org.eclipse.swt.graphics.Color |
ANNOTATION |
static org.eclipse.swt.graphics.Color |
ASSERTION |
static org.eclipse.swt.graphics.Color |
BUILTIN |
static org.eclipse.swt.graphics.Color |
COMMENT |
static org.eclipse.swt.graphics.Color |
DEFAULT |
static java.lang.String |
EDITOR_MATCHING_BRACKETS |
static java.lang.String |
EDITOR_MATCHING_BRACKETS_COLOR |
static org.eclipse.swt.graphics.Color |
EXECUTABLEANNOTATION |
static org.eclipse.swt.graphics.Color |
KEYWORD |
static org.eclipse.swt.graphics.Color |
MARKER |
static java.lang.String |
PROBLEMMARKER |
static org.eclipse.swt.graphics.Color |
STRING |
static org.eclipse.swt.graphics.Color |
TYPE |
DEFAULT_OVERVIEW_RULER_CONTEXT_MENU_IDCOMMON_EDITOR_CONTEXT_MENU_ID, COMMON_RULER_CONTEXT_MENU_ID, DEFAULT_EDITOR_CONTEXT_MENU_ID, DEFAULT_RULER_CONTEXT_MENU_ID, 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_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_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| Constructor and Description |
|---|
AbstractModuleEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addModuleParsedListener(IModuleParseListener listener) |
void |
addTemplateContributor(IAbstractModuleEditorTemplateContributor templateContributor) |
void |
close(boolean save) |
abstract IModule |
createModule() |
abstract ModuleElementLabelProvider |
createModuleElementLabelProvider() |
ModuleContentOutlinePage |
createOutlinePage() |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent) |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor) |
java.lang.Object |
getAdapter(java.lang.Class required) |
java.util.List<java.lang.String> |
getAssertions() |
org.eclipse.swt.graphics.Color |
getBackgroundColor() |
abstract java.util.List<java.lang.String> |
getBuiltinVariables() |
abstract java.util.List<java.lang.String> |
getKeywords() |
java.util.List<org.eclipse.jface.text.templates.Template> |
getTemplates() |
java.lang.String |
getText() |
java.util.List<java.lang.String> |
getTypes() |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input) |
void |
insertText(java.lang.String text) |
boolean |
isClosed() |
void |
parseModule() |
boolean |
removeModuleParsedListener(IModuleParseListener listener) |
boolean |
removeTemplateContributor(IAbstractModuleEditorTemplateContributor templateContributor) |
void |
setBackgroundColor(org.eclipse.swt.graphics.Color backgroundColor) |
dispose, getDocumentProvider, gotoAnnotation, gotoMarker, isChangeInformationShowing, isEditable, showChangeInformation, showRevisionInformation, validateEditorInputStatedoRevertToSaved, setFocus, updatePartControladdRulerContextMenuListener, createEmptyNavigationLocation, createNavigationLocation, doSaveAs, getAction, getActiveSaveables, getHighlightRange, getInsertMode, getSaveables, getSelectionProvider, isBlockSelectionModeEnabled, isDirty, isEditorInputModifiable, isEditorInputReadOnly, isSaveAsAllowed, markAsContentDependentAction, markAsPropertyDependentAction, markAsSelectionDependentAction, markAsStateDependentAction, removeActionActivationCode, removeRulerContextMenuListener, resetHighlightRange, restoreState, saveState, selectAndReveal, setAction, setActionActivationCode, setBlockSelectionMode, setHighlightRange, setInput, setInsertMode, setStatusField, showHighlightRangeOnly, showsHighlightRangeOnlygetEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationDataaddPartPropertyListener, addPropertyListener, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final org.eclipse.swt.graphics.Color COMMENT
public static final org.eclipse.swt.graphics.Color MARKER
public static final org.eclipse.swt.graphics.Color ANNOTATION
public static final org.eclipse.swt.graphics.Color EXECUTABLEANNOTATION
public static final org.eclipse.swt.graphics.Color STRING
public static final org.eclipse.swt.graphics.Color DEFAULT
public static final org.eclipse.swt.graphics.Color KEYWORD
public static final org.eclipse.swt.graphics.Color BUILTIN
public static final org.eclipse.swt.graphics.Color ASSERTION
public static final org.eclipse.swt.graphics.Color TYPE
public static final java.lang.String PROBLEMMARKER
public static final java.lang.String EDITOR_MATCHING_BRACKETS
public static final java.lang.String EDITOR_MATCHING_BRACKETS_COLOR
public void addModuleParsedListener(IModuleParseListener listener)
public boolean removeModuleParsedListener(IModuleParseListener listener)
public void addTemplateContributor(IAbstractModuleEditorTemplateContributor templateContributor)
public boolean removeTemplateContributor(IAbstractModuleEditorTemplateContributor templateContributor)
public void insertText(java.lang.String text)
public java.lang.Object getAdapter(java.lang.Class required)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditorpublic java.util.List<java.lang.String> getAssertions()
public java.util.List<java.lang.String> getTypes()
public abstract java.util.List<java.lang.String> getKeywords()
public abstract java.util.List<java.lang.String> getBuiltinVariables()
public ModuleContentOutlinePage createOutlinePage()
public abstract IModule createModule()
public abstract ModuleElementLabelProvider createModuleElementLabelProvider()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditorpublic void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
init in interface org.eclipse.ui.IEditorPartinit in class org.eclipse.ui.texteditor.AbstractTextEditorpublic boolean isClosed()
public java.lang.String getText()
public void parseModule()
public void doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
doSave in interface org.eclipse.ui.ISaveablePartdoSave in class org.eclipse.ui.texteditor.AbstractTextEditorpublic 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.ITextEditorclose in class org.eclipse.ui.texteditor.AbstractTextEditorpublic final java.util.List<org.eclipse.jface.text.templates.Template> getTemplates()