public class PapyrusCDTEditor
extends org.eclipse.cdt.internal.ui.editor.CEditor
org.eclipse.cdt.internal.ui.editor.CEditor.DeleteNextSubWordAction, org.eclipse.cdt.internal.ui.editor.CEditor.DeletePreviousSubWordAction, org.eclipse.cdt.internal.ui.editor.CEditor.NavigateNextSubWordAction, org.eclipse.cdt.internal.ui.editor.CEditor.NavigatePreviousSubWordAction, org.eclipse.cdt.internal.ui.editor.CEditor.NextSubWordAction, org.eclipse.cdt.internal.ui.editor.CEditor.PreviousSubWordAction, org.eclipse.cdt.internal.ui.editor.CEditor.SelectNextSubWordAction, org.eclipse.cdt.internal.ui.editor.CEditor.SelectPreviousSubWordAction
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 |
---|---|
static String |
EDITOR_DEFAULT_NAME |
static String |
EDITOR_TYPE |
protected org.eclipse.swt.events.FocusListener |
focusListener
the text listener
|
protected org.eclipse.jface.action.IAction |
gmfRedo |
protected org.eclipse.jface.action.IAction |
gmfUndo |
protected org.eclipse.emf.common.notify.Adapter |
gotoListener |
protected org.eclipse.ui.IEditorInput |
m_input |
protected boolean |
oldDirty |
protected TextEditorModel |
papyrusTextInstance
the papyrus text instance
|
protected org.eclipse.papyrus.infra.core.services.ServicesRegistry |
registry
the service registry
|
protected RevealCurrentOperation |
reveal |
protected org.eclipse.papyrus.infra.ui.lifecycleevents.ISaveAndDirtyService |
saveAndDirtyService |
protected org.eclipse.jface.viewers.ISelectionProvider |
sp |
protected org.eclipse.core.resources.IFile |
srcFile |
protected SyncCDTtoModel |
syncCpp |
protected org.eclipse.jface.action.IAction |
textRedo |
protected org.eclipse.jface.action.IAction |
textUndo |
BRACKETS, fBracketMatcher, fOutlinePage, fOutlinerContextMenuId, fProjectionSupport, INACTIVE_CODE_COLOR, INACTIVE_CODE_ENABLE, MATCHING_BRACKETS, MATCHING_BRACKETS_COLOR, SUB_WORD_NAVIGATION
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_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, PREFERENCE_WORD_WRAP_ENABLED, TAG_SELECTION_HORIZONTAL_PIXEL, TAG_SELECTION_LENGTH, TAG_SELECTION_OFFSET, TAG_SELECTION_TOP_PIXEL, VERTICAL_RULER_WIDTH
Constructor and Description |
---|
PapyrusCDTEditor(org.eclipse.papyrus.infra.core.services.ServicesRegistry registry,
TextEditorModel papyrusTextInstance)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
override method in order to save & restore action bars entries
|
org.eclipse.jface.text.source.ISourceViewer |
createSourceViewer(org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.text.source.IVerticalRuler ruler,
int styles) |
void |
dispose() |
protected void |
doSetInput(org.eclipse.ui.IEditorInput input)
We override this method because setInput can't be overriden for TextEditor.
|
void |
gotoElement(org.eclipse.uml2.uml.NamedElement element)
Goto a specific element within the text editor.
|
boolean |
isDirty() |
aboutToBeReconciled, addPostSaveListener, addReconcileListener, affectsOverrideIndicatorAnnotations, affectsTextPresentation, canHandleMove, collectContextMenuPreferencePages, computeHighlightRangeSourceReference, configureSourceViewerDecorationSupport, createActions, createNavigationActions, createOpenViewActionGroup, createSelectionSearchGroup, editorContextMenuAboutToShow, editorSaved, fillActionBars, getAdapter, getElementAt, getFoldingActionGroup, getInputCElement, getOrientation, getOutlinePage, getSignedSelection, getSourceViewerDecorationSupport, getStatusLineManager, getTranslationUnit, getViewer, gotoMatchingBracket, handlePreferenceStoreChanged, initializeEditor, initializeKeyBindingScopes, initializeViewerColors, installOccurrencesFinder, installOverrideIndicator, installTabsToSpacesConverter, isContentAssistAutoActivartionDisabled, isEnableScalablilityMode, isFoldingEnabled, isMarkingOccurrences, isParserBasedContentAssistDisabled, isPrefQuickDiffAlwaysOn, isSaveAsAllowed, isSemanticHighlightingEnabled, isShowingOverrideIndicators, isTabsToSpacesConversionEnabled, performRevert, reconciled, removePostSaveListener, removeReconcileListener, resetProjection, rulerContextMenuAboutToShow, selectionChanged, selectionChanged, setOutlinePageInput, setOutlinerContextMenuId, setPreferenceStore, setSelection, setSelection, setSelection, setStatusLineErrorMessage, setStatusLineMessage, shouldProcessLocalParsingCompletions, synchronizeOutlinePage, uninstallOccurrencesFinder, uninstallOverrideIndicator, uninstallProjectionModelUpdater, updatedTitleImage, updateOccurrenceAnnotations, updateStateDependentActions, updateStatusLine
getStatusBanner, getStatusHeader, getStatusMessage, installEncodingSupport, updatePropertyDependentActions
collectOverviewRulerMenuPreferencePages, collectRulerMenuPreferencePages, createAnnotationAccess, createAnnotationRulerColumn, createChangeHover, createChangeRulerColumn, createColumnSupport, createCompositeRuler, createContextMenuListener, createLineNumberRulerColumn, createOverviewRuler, createOverviewRulerContextMenu, createStatusControl, createVerticalRuler, disposeDocumentProvider, getAnnotationAccess, getAnnotationPreferenceLookup, getAnnotationPreferences, getDocumentProvider, getOverviewRuler, getOverviewRulerContextMenuId, getSharedColors, getUndoRedoOperationApprover, gotoAnnotation, gotoMarker, handleEditorInputChanged, hideOverviewRuler, initializeLineNumberRulerColumn, isChangeInformationShowing, isEditable, isErrorStatus, isLineNumberRulerVisible, isNavigationTarget, isOverviewRulerVisible, isOverwriteModeEnabled, openSaveErrorDialog, overviewRulerContextMenuAboutToShow, performSaveAs, setDocumentProvider, setOverviewRulerContextMenuId, showChangeInformation, showOverviewRuler, showRevisionInformation, updateMarkerViews, validateEditorInputState
doRevertToSaved, handleElementContentReplaced, sanityCheckState, setFocus, updatePartControl, updateStatusField
addAction, addAction, addGroup, addRulerContextMenuListener, adjustHighlightRange, close, configureInsertMode, containsSavedState, createEmptyNavigationLocation, createNavigationLocation, createUndoRedoActions, doGetSelection, doRestoreState, doSave, doSaveAs, doSetSelection, 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, getVerticalRuler, handleCursorPositionChanged, handleExceptionOnSave, handleInsertModeChanged, init, initializeDragAndDrop, installTextDragAndDrop, internalInit, isBlockSelectionModeEnabled, isBlockSelectionModeSupported, isEditorInputIncludedInContextMenu, isEditorInputModifiable, isEditorInputReadOnly, isInInsertMode, isVisible, isWordWrapEnabled, isWordWrapSupported, markAsContentDependentAction, markAsPropertyDependentAction, markAsSelectionDependentAction, markAsStateDependentAction, markInNavigationHistory, modelOffset2WidgetOffset, performSave, rememberSelection, removeActionActivationCode, removeRulerContextMenuListener, resetHighlightRange, restoreSelection, restoreState, safelySanityCheckState, saveState, selectAndReveal, selectAndReveal, setAction, setActionActivationCode, setBlockSelectionMode, setCompatibilityMode, setDocumentProvider, setEditorContextMenuId, setHelpContextId, setHighlightRange, setInput, setInputWithNotify, setInsertMode, setKeyBindingScopes, setRangeIndicator, setRulerContextMenuId, setSourceViewerConfiguration, setStatusField, setWordWrap, showHighlightRangeOnly, showsHighlightRangeOnly, uninstallTabsToSpacesConverter, uninstallTextDragAndDrop, updateContentDependentActions, updateContributedRulerColumns, updateIndentPrefixes, updateSelectionDependentActions, updateState, updateStatusFields, validateState, widgetOffset2ModelOffset
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, getConfigurationElement, getContentDescription, getDefaultImage, 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
close, doRevertToSaved, getAction, getDocumentProvider, getHighlightRange, getSelectionProvider, isEditable, removeActionActivationCode, resetHighlightRange, selectAndReveal, setAction, setActionActivationCode, setHighlightRange, showHighlightRangeOnly, showsHighlightRangeOnly
protected final org.eclipse.papyrus.infra.core.services.ServicesRegistry registry
protected final TextEditorModel papyrusTextInstance
protected org.eclipse.swt.events.FocusListener focusListener
public static final String EDITOR_DEFAULT_NAME
public static final String EDITOR_TYPE
protected SyncCDTtoModel syncCpp
protected RevealCurrentOperation reveal
protected org.eclipse.emf.common.notify.Adapter gotoListener
protected org.eclipse.jface.action.IAction gmfUndo
protected org.eclipse.jface.action.IAction gmfRedo
protected org.eclipse.jface.action.IAction textUndo
protected org.eclipse.jface.action.IAction textRedo
protected boolean oldDirty
protected org.eclipse.papyrus.infra.ui.lifecycleevents.ISaveAndDirtyService saveAndDirtyService
protected org.eclipse.core.resources.IFile srcFile
protected org.eclipse.jface.viewers.ISelectionProvider sp
protected org.eclipse.ui.IEditorInput m_input
public PapyrusCDTEditor(org.eclipse.papyrus.infra.core.services.ServicesRegistry registry, TextEditorModel papyrusTextInstance)
registry
- papyrusTextInstance
- public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.cdt.internal.ui.editor.CEditor
public 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.cdt.internal.ui.editor.CEditor
parent
- ruler
- styles
- AbstractDecoratedTextEditor.createSourceViewer(org.eclipse.swt.widgets.Composite, org.eclipse.jface.text.source.IVerticalRuler, int)
public void gotoElement(org.eclipse.uml2.uml.NamedElement element)
element
- org.eclipse.core.runtime.CoreException
public boolean isDirty()
isDirty
in interface org.eclipse.ui.ISaveablePart
isDirty
in class org.eclipse.ui.texteditor.AbstractTextEditor
protected void doSetInput(org.eclipse.ui.IEditorInput input) throws org.eclipse.core.runtime.CoreException
doSetInput
in class org.eclipse.cdt.internal.ui.editor.CEditor
input
- org.eclipse.core.runtime.CoreException
TextEditor.doSetInput(org.eclipse.ui.IEditorInput)
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.cdt.internal.ui.editor.CEditor
TextEditor.dispose()
Copyright © 2016 Eclipse foundation. All rights reserved.