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 AbstractEditoreditorprotected ContentWrapperselectedContent
-
Constructor Summary
Constructors Constructor Description CompareWithAction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private voidcompare(StreamContent left, StreamContent right)protected StreamContentcreateContent(ContentWrapper content)protected static StreamContentcreateContentFromFile(ContentWrapper content)protected StreamContentcreateLeftContent()protected abstract StreamContentcreateRightContent(StreamContent left)java.lang.Objectexecute(org.eclipse.core.commands.ExecutionEvent event)voidrun(org.eclipse.jface.action.IAction action)voidselectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)voidsetActivePart(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:
executein 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:
setActivePartin interfaceorg.eclipse.ui.IObjectActionDelegate
-
run
public void run(org.eclipse.jface.action.IAction action)
- Specified by:
runin 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:
selectionChangedin interfaceorg.eclipse.ui.IActionDelegate
-
-