Class CompareWithAction
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- de.loskutov.anyedit.actions.compare.CompareWithAction
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
,org.eclipse.ui.IActionDelegate
,org.eclipse.ui.IObjectActionDelegate
- Direct Known Subclasses:
CompareWithClipboardAction
,CompareWithEditorAction
,CompareWithExternalAction
,CompareWithResourceAction
public abstract class CompareWithAction extends org.eclipse.core.commands.AbstractHandler implements org.eclipse.ui.IObjectActionDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractEditor
editor
protected ContentWrapper
selectedContent
-
Constructor Summary
Constructors Constructor Description CompareWithAction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private void
compare(StreamContent left, StreamContent right)
protected StreamContent
createContent(ContentWrapper content)
protected static StreamContent
createContentFromFile(ContentWrapper content)
protected StreamContent
createLeftContent()
protected abstract StreamContent
createRightContent(StreamContent left)
java.lang.Object
execute(org.eclipse.core.commands.ExecutionEvent event)
void
run(org.eclipse.jface.action.IAction action)
void
selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
void
setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Field Detail
-
selectedContent
protected ContentWrapper selectedContent
-
editor
protected AbstractEditor editor
-
-
Method Detail
-
execute
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Specified by:
execute
in interfaceorg.eclipse.core.commands.IHandler
- Throws:
org.eclipse.core.commands.ExecutionException
-
setActivePart
public void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
- Specified by:
setActivePart
in interfaceorg.eclipse.ui.IObjectActionDelegate
-
run
public void run(org.eclipse.jface.action.IAction action)
- Specified by:
run
in interfaceorg.eclipse.ui.IActionDelegate
-
createLeftContent
protected StreamContent createLeftContent()
-
createRightContent
protected abstract StreamContent createRightContent(StreamContent left) throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
-
createContent
protected final StreamContent createContent(ContentWrapper content)
-
createContentFromFile
protected static final StreamContent createContentFromFile(ContentWrapper content)
-
compare
private void compare(StreamContent left, StreamContent right)
-
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interfaceorg.eclipse.ui.IActionDelegate
-
-