|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.texteditor.AbstractTextEditor
org.eclipse.ui.texteditor.StatusTextEditor
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
org.eclipse.ui.editors.text.TextEditor
org.eclipse.cdt.internal.ui.editor.CEditor
public class CEditor
C/C++ source editor.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.ui.texteditor.ITextEditorExtension3 |
---|
org.eclipse.ui.texteditor.ITextEditorExtension3.InsertMode |
Field Summary | |
---|---|
static java.lang.String |
INACTIVE_CODE_COLOR
Preference key for inactive code painter color |
static java.lang.String |
INACTIVE_CODE_ENABLE
Preference key for inactive code painter enablement |
static java.lang.String |
MATCHING_BRACKETS
Preference key for matching brackets |
static java.lang.String |
MATCHING_BRACKETS_COLOR
Preference key for matching brackets color |
static java.lang.String |
SPACES_FOR_TABS
Preference key for inserting spaces rather than tabs |
static java.lang.String |
SUB_WORD_NAVIGATION
Preference key for sub-word navigation, aka smart caret positioning |
Fields inherited from class org.eclipse.ui.texteditor.AbstractTextEditor |
---|
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_HYPERLINK_KEY_MODIFIER, PREFERENCE_HYPERLINK_KEY_MODIFIER_MASK, PREFERENCE_HYPERLINKS_ENABLED, PREFERENCE_NAVIGATION_SMART_HOME_END, PREFERENCE_USE_CUSTOM_CARETS, PREFERENCE_WIDE_CARET |
Fields inherited from interface org.eclipse.ui.IEditorPart |
---|
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Fields inherited from interface org.eclipse.ui.IEditorPart |
---|
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Fields inherited from interface org.eclipse.ui.texteditor.ITextEditorExtension3 |
---|
INSERT, SMART_INSERT |
Constructor Summary | |
---|---|
CEditor()
Default constructor. |
Method Summary | |
---|---|
void |
aboutToBeReconciled()
Called before reconciling is started. |
void |
addReconcileListener(ICReconcilingListener listener)
Adds the given listener. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
void |
editorContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
|
void |
fillActionBars(org.eclipse.ui.IActionBars actionBars)
Called whenever the editor is activated and allows for registering action handlers. |
java.lang.Object |
getAdapter(java.lang.Class required)
|
org.eclipse.cdt.core.model.ICElement |
getInputCElement()
Returns the C element wrapped by this editors input. |
int |
getOrientation()
|
CContentOutlinePage |
getOutlinePage()
Gets the outline page of the c-editor. |
org.eclipse.jface.text.source.ISourceViewer |
getViewer()
|
void |
gotoMatchingBracket()
Jumps to the matching bracket. |
boolean |
isSaveAsAllowed()
|
void |
reconciled(org.eclipse.cdt.core.dom.ast.IASTTranslationUnit ast,
boolean force,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Called after reconciling has been finished. |
void |
removeReconcileListener(ICReconcilingListener listener)
Removes the given listener. |
void |
resetProjection()
Resets the foldings structure according to the folding preferences. |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
React to changed selection in the outline view. |
static void |
setOutlinePageInput(CContentOutlinePage page,
org.eclipse.ui.IEditorInput input)
Sets an input for the outline page. |
void |
setSelection(org.eclipse.cdt.core.model.ICElement element)
Sets selection for C element. |
void |
setSelection(org.eclipse.cdt.core.model.ISourceRange element,
boolean moveCursor)
Sets the current editor selection to the source range. |
void |
setSelection(org.eclipse.cdt.core.model.ISourceReference element,
boolean moveCursor)
Sets selection for source reference. |
void |
updatedTitleImage(org.eclipse.swt.graphics.Image image)
Update the title image. |
Methods inherited from class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor |
---|
getDocumentProvider, gotoAnnotation, gotoMarker, isChangeInformationShowing, showChangeInformation, showRevisionInformation |
Methods inherited from class org.eclipse.ui.texteditor.StatusTextEditor |
---|
doRevertToSaved, updatePartControl |
Methods inherited from class org.eclipse.ui.texteditor.AbstractTextEditor |
---|
addRulerContextMenuListener, close, createEmptyNavigationLocation, createNavigationLocation, doSave, doSaveAs, getAction, getHighlightRange, getInsertMode, getSelectionProvider, init, isDirty, isEditable, isEditorInputModifiable, isEditorInputReadOnly, markAsContentDependentAction, markAsPropertyDependentAction, markAsSelectionDependentAction, markAsStateDependentAction, removeActionActivationCode, removeRulerContextMenuListener, resetHighlightRange, selectAndReveal, setAction, setActionActivationCode, setFocus, setHighlightRange, setInput, setInsertMode, setStatusField, showHighlightRangeOnly, showsHighlightRangeOnly, validateEditorInputState |
Methods inherited from class org.eclipse.ui.part.EditorPart |
---|
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPropertyListener, getContentDescription, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, showBusy |
Methods inherited from class java.lang.Object |
---|
equals, 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 |
Methods inherited from interface org.eclipse.ui.ISaveablePart |
---|
isSaveOnCloseNeeded |
Methods inherited from interface org.eclipse.ui.IEditorPart |
---|
getEditorInput, getEditorSite |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.ui.ISaveablePart |
---|
isSaveOnCloseNeeded |
Field Detail |
---|
public static final java.lang.String SUB_WORD_NAVIGATION
public static final java.lang.String MATCHING_BRACKETS
public static final java.lang.String MATCHING_BRACKETS_COLOR
public static final java.lang.String INACTIVE_CODE_ENABLE
public static final java.lang.String INACTIVE_CODE_COLOR
public static final java.lang.String SPACES_FOR_TABS
Constructor Detail |
---|
public CEditor()
Method Detail |
---|
public void updatedTitleImage(org.eclipse.swt.graphics.Image image)
image
- Title image.public org.eclipse.cdt.core.model.ICElement getInputCElement()
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
isSaveAsAllowed
in class org.eclipse.ui.editors.text.TextEditor
ISaveablePart.isSaveAsAllowed()
public CContentOutlinePage getOutlinePage()
public java.lang.Object getAdapter(java.lang.Class required)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.ui.editors.text.TextEditor
IAdaptable.getAdapter(java.lang.Class)
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
in interface org.eclipse.jface.viewers.ISelectionChangedListener
ISelectionChangedListener.selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
public void setSelection(org.eclipse.cdt.core.model.ICElement element)
element
- Element to select.public void setSelection(org.eclipse.cdt.core.model.ISourceReference element, boolean moveCursor)
element
- Source reference to set.moveCursor
- Should cursor be moved.public void setSelection(org.eclipse.cdt.core.model.ISourceRange element, boolean moveCursor)
element
- the source range to be shown in the editor, can be null.moveCursor
- if true the editor is scrolled to show the range.public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.editors.text.TextEditor
IWorkbenchPart.dispose()
public void editorContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
editorContextMenuAboutToShow
in class org.eclipse.ui.editors.text.TextEditor
AbstractTextEditor.editorContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager)
public static void setOutlinePageInput(CContentOutlinePage page, org.eclipse.ui.IEditorInput input)
page
- Page to set the input.input
- Input to set.public int getOrientation()
getOrientation
in interface org.eclipse.ui.part.IWorkbenchPartOrientation
getOrientation
in class org.eclipse.ui.part.WorkbenchPart
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
public void gotoMatchingBracket()
public final org.eclipse.jface.text.source.ISourceViewer getViewer()
public void aboutToBeReconciled()
ICReconcilingListener
aboutToBeReconciled
in interface ICReconcilingListener
public void reconciled(org.eclipse.cdt.core.dom.ast.IASTTranslationUnit ast, boolean force, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
ICReconcilingListener
reconciled
in interface ICReconcilingListener
ast
- the translation unit AST or null
if the working
copy was consistent or reconcilation has been cancelledforce
- flag indicating whether the reconciler was invoked forcefullyprogressMonitor
- the progress monitorpublic final void addReconcileListener(ICReconcilingListener listener)
listener
- The reconcile listener to be addedpublic final void removeReconcileListener(ICReconcilingListener listener)
listener
- the reconcile listener to be removedpublic void fillActionBars(org.eclipse.ui.IActionBars actionBars)
public void resetProjection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |