public final class IdeCodeListener extends IdeListener implements CommandExecutionListener, DocumentListener, EditorListener, TextSelectionListener, WorkbenchListener
IdeCodeEventRequest and passes them to the
IdeUacaProxy to be transferred into the User Activity Central
Application for further processing.
Code operation types that this listener is interested in are
determined by the IdeCodeEventType enumeration:
Data available in an IdeCodeEventRequest:
code - related code.
document - related document, see documentation of
IdeDocumentDto in IdeDocumentListener for more details.
endColumnIndex - zero based end position
of code on document line.
endRowIndex - zero based end line number
of code in document.
startColumnIndex - zero based start position
of code on document line.
startRowIndex - zero based start line number
of code in document.
IdeListener for documentation of inherited data.
Note that row and column offsets in documents start from zero instead of one.
| Constructor and Description |
|---|
IdeCodeListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event) |
void |
documentChanged(org.eclipse.jface.text.DocumentEvent event) |
void |
editorActivated(org.eclipse.ui.IEditorReference reference) |
void |
editorBroughtToTop(org.eclipse.ui.IEditorReference reference) |
void |
editorClosed(org.eclipse.ui.IEditorReference reference) |
void |
editorDeactivated(org.eclipse.ui.IEditorReference reference) |
void |
editorHidden(org.eclipse.ui.IEditorReference reference) |
void |
editorInputChanged(org.eclipse.ui.IEditorReference reference) |
void |
editorOpened(org.eclipse.ui.IEditorReference reference) |
void |
editorVisible(org.eclipse.ui.IEditorReference reference) |
void |
notDefined(java.lang.String id,
org.eclipse.core.commands.common.NotDefinedException exception) |
void |
notEnabled(java.lang.String id,
org.eclipse.core.commands.NotEnabledException exception) |
void |
notHandled(java.lang.String id,
org.eclipse.core.commands.NotHandledException exception) |
void |
postExecuteFailure(java.lang.String id,
org.eclipse.core.commands.ExecutionException exception) |
void |
postExecuteSuccess(java.lang.String id,
java.lang.Object result) |
void |
postShutdown(org.eclipse.ui.IWorkbench workbench) |
void |
postStartup(org.eclipse.ui.IWorkbench workbench) |
void |
preExecute(java.lang.String id,
org.eclipse.core.commands.ExecutionEvent event) |
boolean |
preShutdown(org.eclipse.ui.IWorkbench workbench,
boolean forced) |
void |
preUnregister()
Pre-unregister block.
|
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.text.ITextSelection selection) |
postUnregister, preRegisterpostRegisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostRegister, postUnregister, preRegisterpublic void preUnregister()
RegistrablepreUnregister in interface RegistrablepreUnregister in class AbstractRegistrablepublic void postStartup(org.eclipse.ui.IWorkbench workbench)
postStartup in interface WorkbenchListenerpublic boolean preShutdown(org.eclipse.ui.IWorkbench workbench,
boolean forced)
preShutdown in interface org.eclipse.ui.IWorkbenchListenerpublic void postShutdown(org.eclipse.ui.IWorkbench workbench)
postShutdown in interface org.eclipse.ui.IWorkbenchListenerpublic void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
documentAboutToBeChanged in interface org.eclipse.jface.text.IDocumentListenerpublic void documentChanged(org.eclipse.jface.text.DocumentEvent event)
documentChanged in interface org.eclipse.jface.text.IDocumentListenerpublic void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.text.ITextSelection selection)
selectionChanged in interface TextSelectionListenerpublic void editorOpened(org.eclipse.ui.IEditorReference reference)
editorOpened in interface EditorListenerpublic void editorClosed(org.eclipse.ui.IEditorReference reference)
editorClosed in interface EditorListenerpublic void editorActivated(org.eclipse.ui.IEditorReference reference)
editorActivated in interface EditorListenerpublic void editorDeactivated(org.eclipse.ui.IEditorReference reference)
editorDeactivated in interface EditorListenerpublic void editorVisible(org.eclipse.ui.IEditorReference reference)
editorVisible in interface EditorListenerpublic void editorHidden(org.eclipse.ui.IEditorReference reference)
editorHidden in interface EditorListenerpublic void editorBroughtToTop(org.eclipse.ui.IEditorReference reference)
editorBroughtToTop in interface EditorListenerpublic void editorInputChanged(org.eclipse.ui.IEditorReference reference)
editorInputChanged in interface EditorListenerpublic void preExecute(java.lang.String id,
org.eclipse.core.commands.ExecutionEvent event)
preExecute in interface org.eclipse.core.commands.IExecutionListenerpublic void postExecuteSuccess(java.lang.String id,
java.lang.Object result)
postExecuteSuccess in interface org.eclipse.core.commands.IExecutionListenerpublic void postExecuteFailure(java.lang.String id,
org.eclipse.core.commands.ExecutionException exception)
postExecuteFailure in interface org.eclipse.core.commands.IExecutionListenerpublic void notDefined(java.lang.String id,
org.eclipse.core.commands.common.NotDefinedException exception)
notDefined in interface org.eclipse.core.commands.IExecutionListenerWithCheckspublic void notEnabled(java.lang.String id,
org.eclipse.core.commands.NotEnabledException exception)
notEnabled in interface org.eclipse.core.commands.IExecutionListenerWithCheckspublic void notHandled(java.lang.String id,
org.eclipse.core.commands.NotHandledException exception)
notHandled in interface org.eclipse.core.commands.IExecutionListener