java.lang.Object
com.port80.eclipse.jdt.actions.RegexReplaceAction
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
- public class RegexReplaceAction
- extends java.lang.Object
- implements org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IEditorActionDelegate
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
ID
private static final java.lang.String ID
- See Also:
- Constant Field Values
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
RegexReplaceAction
public RegexReplaceAction()
- Constructor for RegexReplace.
run
public void run(org.eclipse.jface.action.IAction action)
- Regex search & replace for TextEditor.
- Specified by:
run in interface org.eclipse.ui.IActionDelegate
dispose
public void dispose()
- Description copied from interface:
org.eclipse.ui.IWorkbenchWindowActionDelegate
- Disposes this action delegate. The implementor should unhook any references
to itself so that garbage collection can occur.
- Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
init
public void init(org.eclipse.ui.IWorkbenchWindow window)
- Description copied from interface:
org.eclipse.ui.IWorkbenchWindowActionDelegate
- Initializes this action delegate with the workbench window it will work in.
- Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
- Description copied from interface:
org.eclipse.ui.IActionDelegate
- Notifies this action delegate that the selection in the workbench has changed.
Implementers can use this opportunity to change the availability of the
action or to modify other presentation properties.
When the selection changes, the action enablement state is updated based on
the criteria specified in the plugin.xml file. Then the delegate is notified
of the selection change regardless of whether the enablement criteria in the
plugin.xml file is met.
- Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
setActiveEditor
public void setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IEditorPart targetEditor)
- Description copied from interface:
org.eclipse.ui.IEditorActionDelegate
- Sets the active editor for the delegate.
Implementors should disconnect from the old editor, connect to the
new editor, and update the action to reflect the new editor.
- Specified by:
setActiveEditor in interface org.eclipse.ui.IEditorActionDelegate