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, preRegister
postRegister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postRegister, postUnregister, preRegister
public void preUnregister()
Registrable
preUnregister
in interface Registrable
preUnregister
in class AbstractRegistrable
public void postStartup(org.eclipse.ui.IWorkbench workbench)
postStartup
in interface WorkbenchListener
public boolean preShutdown(org.eclipse.ui.IWorkbench workbench, boolean forced)
preShutdown
in interface org.eclipse.ui.IWorkbenchListener
public void postShutdown(org.eclipse.ui.IWorkbench workbench)
postShutdown
in interface org.eclipse.ui.IWorkbenchListener
public void documentAboutToBeChanged(org.eclipse.jface.text.DocumentEvent event)
documentAboutToBeChanged
in interface org.eclipse.jface.text.IDocumentListener
public void documentChanged(org.eclipse.jface.text.DocumentEvent event)
documentChanged
in interface org.eclipse.jface.text.IDocumentListener
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.text.ITextSelection selection)
selectionChanged
in interface TextSelectionListener
public void editorOpened(org.eclipse.ui.IEditorReference reference)
editorOpened
in interface EditorListener
public void editorClosed(org.eclipse.ui.IEditorReference reference)
editorClosed
in interface EditorListener
public void editorActivated(org.eclipse.ui.IEditorReference reference)
editorActivated
in interface EditorListener
public void editorDeactivated(org.eclipse.ui.IEditorReference reference)
editorDeactivated
in interface EditorListener
public void editorVisible(org.eclipse.ui.IEditorReference reference)
editorVisible
in interface EditorListener
public void editorHidden(org.eclipse.ui.IEditorReference reference)
editorHidden
in interface EditorListener
public void editorBroughtToTop(org.eclipse.ui.IEditorReference reference)
editorBroughtToTop
in interface EditorListener
public void editorInputChanged(org.eclipse.ui.IEditorReference reference)
editorInputChanged
in interface EditorListener
public void preExecute(java.lang.String id, org.eclipse.core.commands.ExecutionEvent event)
preExecute
in interface org.eclipse.core.commands.IExecutionListener
public void postExecuteSuccess(java.lang.String id, java.lang.Object result)
postExecuteSuccess
in interface org.eclipse.core.commands.IExecutionListener
public void postExecuteFailure(java.lang.String id, org.eclipse.core.commands.ExecutionException exception)
postExecuteFailure
in interface org.eclipse.core.commands.IExecutionListener
public void notDefined(java.lang.String id, org.eclipse.core.commands.common.NotDefinedException exception)
notDefined
in interface org.eclipse.core.commands.IExecutionListenerWithChecks
public void notEnabled(java.lang.String id, org.eclipse.core.commands.NotEnabledException exception)
notEnabled
in interface org.eclipse.core.commands.IExecutionListenerWithChecks
public void notHandled(java.lang.String id, org.eclipse.core.commands.NotHandledException exception)
notHandled
in interface org.eclipse.core.commands.IExecutionListener