Package com._1c.g5.v8.dt.compare.ui
Class DtParametrizedMergeCommandHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- org.eclipse.egit.ui.internal.repository.tree.command.MergeCommand
-
- com._1c.g5.v8.dt.internal.compare.git.ui.handler.AbstractDtMergeCommandHandler
-
- com._1c.g5.v8.dt.compare.ui.DtParametrizedMergeCommandHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class DtParametrizedMergeCommandHandler extends com._1c.g5.v8.dt.internal.compare.git.ui.handler.AbstractDtMergeCommandHandler
An action handler for selecting a commit and merging it with the current branch using the DT mechanism of comparison and merging. Repository and ref should be set as event variables.
-
-
Field Summary
Fields Modifier and Type Field Description static String
REF
Key for ref parameter.static String
REPOSITORY
Key for repository parameter.protected org.eclipse.egit.core.RepositoryUtil
util
-
Constructor Summary
Constructors Constructor Description DtParametrizedMergeCommandHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(org.eclipse.core.commands.ExecutionEvent event)
protected void
expandRepositoryGroup(org.eclipse.core.commands.ExecutionEvent arg0, org.eclipse.egit.ui.internal.groups.RepositoryGroup arg1)
org.eclipse.swt.widgets.Shell
getActiveShell(org.eclipse.core.commands.ExecutionEvent arg0)
protected Collection<org.eclipse.core.runtime.IPath>
getSelectedFileAndFolderPaths(org.eclipse.core.commands.ExecutionEvent arg0)
protected List<T>
getSelectedNodes()
List<T>
getSelectedNodes(org.eclipse.core.commands.ExecutionEvent arg0)
org.eclipse.egit.ui.internal.groups.RepositoryGroup
getSelectedRepositoryGroup(org.eclipse.core.commands.ExecutionEvent arg0)
org.eclipse.swt.widgets.Shell
getShell(org.eclipse.core.commands.ExecutionEvent arg0)
org.eclipse.egit.ui.internal.repository.RepositoriesView
getView(org.eclipse.core.commands.ExecutionEvent arg0)
boolean
isEnabled()
protected boolean
isWorkingDirSelection()
protected boolean
selectedRepositoriesHaveHead()
protected boolean
selectedRepositoryHasHead()
void
setEnabled(Object arg0)
-
Methods inherited from class com._1c.g5.v8.dt.internal.compare.git.ui.handler.AbstractDtMergeCommandHandler
executeMerge
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isHandled, removeHandlerListener, setBaseEnabled
-
-
-
-
Field Detail
-
REPOSITORY
public static final String REPOSITORY
Key for repository parameter.- See Also:
- Constant Field Values
-
REF
public static final String REF
Key for ref parameter.- See Also:
- Constant Field Values
-
util
protected final org.eclipse.egit.core.RepositoryUtil util
-
-
Method Detail
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Specified by:
execute
in interfaceorg.eclipse.core.commands.IHandler
- Overrides:
execute
in classorg.eclipse.egit.ui.internal.repository.tree.command.MergeCommand
- Throws:
org.eclipse.core.commands.ExecutionException
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceorg.eclipse.core.commands.IHandler
- Overrides:
isEnabled
in classorg.eclipse.egit.ui.internal.repository.tree.command.MergeCommand
-
getView
public org.eclipse.egit.ui.internal.repository.RepositoriesView getView(org.eclipse.core.commands.ExecutionEvent arg0) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
getShell
public org.eclipse.swt.widgets.Shell getShell(org.eclipse.core.commands.ExecutionEvent arg0)
-
setEnabled
public void setEnabled(Object arg0)
- Specified by:
setEnabled
in interfaceorg.eclipse.core.commands.IHandler2
- Overrides:
setEnabled
in classorg.eclipse.core.commands.AbstractHandler
-
getSelectedRepositoryGroup
public org.eclipse.egit.ui.internal.groups.RepositoryGroup getSelectedRepositoryGroup(org.eclipse.core.commands.ExecutionEvent arg0) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
expandRepositoryGroup
protected void expandRepositoryGroup(org.eclipse.core.commands.ExecutionEvent arg0, org.eclipse.egit.ui.internal.groups.RepositoryGroup arg1) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
getSelectedNodes
public List<T> getSelectedNodes(org.eclipse.core.commands.ExecutionEvent arg0) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
getSelectedNodes
protected List<T> getSelectedNodes()
-
getActiveShell
public org.eclipse.swt.widgets.Shell getActiveShell(org.eclipse.core.commands.ExecutionEvent arg0) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
selectedRepositoryHasHead
protected boolean selectedRepositoryHasHead()
-
selectedRepositoriesHaveHead
protected boolean selectedRepositoriesHaveHead()
-
isWorkingDirSelection
protected boolean isWorkingDirSelection()
-
getSelectedFileAndFolderPaths
protected Collection<org.eclipse.core.runtime.IPath> getSelectedFileAndFolderPaths(org.eclipse.core.commands.ExecutionEvent arg0) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
-