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.AbstractDtMergeCommandHandlerAn 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 SummaryFields Modifier and Type Field Description static StringREFKey for ref parameter.static StringREPOSITORYKey for repository parameter.
 - 
Constructor SummaryConstructors Constructor Description DtParametrizedMergeCommandHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(org.eclipse.core.commands.ExecutionEvent event)protected voidexpandRepositoryGroup(org.eclipse.core.commands.ExecutionEvent arg0, org.eclipse.egit.ui.internal.groups.RepositoryGroup arg1)org.eclipse.swt.widgets.ShellgetActiveShell(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.RepositoryGroupgetSelectedRepositoryGroup(org.eclipse.core.commands.ExecutionEvent arg0)org.eclipse.swt.widgets.ShellgetShell(org.eclipse.core.commands.ExecutionEvent arg0)org.eclipse.egit.ui.internal.repository.RepositoriesViewgetView(org.eclipse.core.commands.ExecutionEvent arg0)booleanisEnabled()protected booleanisWorkingDirSelection()protected booleanselectedRepositoriesHaveHead()protected booleanselectedRepositoryHasHead()voidsetEnabled(Object arg0)- 
Methods inherited from class com._1c.g5.v8.dt.internal.compare.git.ui.handler.AbstractDtMergeCommandHandlerexecuteMerge
 - 
Methods inherited from class org.eclipse.core.commands.AbstractHandleraddHandlerListener, dispose, fireHandlerChanged, hasListeners, isHandled, removeHandlerListener, setBaseEnabled
 
- 
 
- 
- 
- 
Field Detail- 
REPOSITORYpublic static final String REPOSITORY Key for repository parameter.- See Also:
- Constant Field Values
 
 - 
REFpublic static final String REF Key for ref parameter.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
executepublic Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException - Specified by:
- executein interface- org.eclipse.core.commands.IHandler
- Overrides:
- executein class- org.eclipse.egit.ui.internal.repository.tree.command.MergeCommand
- Throws:
- org.eclipse.core.commands.ExecutionException
 
 - 
isEnabledpublic boolean isEnabled() - Specified by:
- isEnabledin interface- org.eclipse.core.commands.IHandler
- Overrides:
- isEnabledin class- org.eclipse.egit.ui.internal.repository.tree.command.MergeCommand
 
 - 
getViewpublic 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
 
 - 
getShellpublic org.eclipse.swt.widgets.Shell getShell(org.eclipse.core.commands.ExecutionEvent arg0) 
 - 
setEnabledpublic void setEnabled(Object arg0) - Specified by:
- setEnabledin interface- org.eclipse.core.commands.IHandler2
- Overrides:
- setEnabledin class- org.eclipse.core.commands.AbstractHandler
 
 - 
getSelectedRepositoryGrouppublic 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
 
 - 
expandRepositoryGroupprotected 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
 
 - 
getSelectedNodespublic List<T> getSelectedNodes(org.eclipse.core.commands.ExecutionEvent arg0) throws org.eclipse.core.commands.ExecutionException - Throws:
- org.eclipse.core.commands.ExecutionException
 
 - 
getSelectedNodesprotected List<T> getSelectedNodes() 
 - 
getActiveShellpublic org.eclipse.swt.widgets.Shell getActiveShell(org.eclipse.core.commands.ExecutionEvent arg0) throws org.eclipse.core.commands.ExecutionException- Throws:
- org.eclipse.core.commands.ExecutionException
 
 - 
selectedRepositoryHasHeadprotected boolean selectedRepositoryHasHead() 
 - 
selectedRepositoriesHaveHeadprotected boolean selectedRepositoriesHaveHead() 
 - 
isWorkingDirSelectionprotected boolean isWorkingDirSelection() 
 - 
getSelectedFileAndFolderPathsprotected 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
 
 
- 
 
-