use of com.oxygenxml.git.view.actions.internal.PullAction in project oxygen-git-client-addon by oxygenxml.
the class GitActionsManager method getPullMergeAction.
/**
* @return The pull merge action.
*/
@NonNull
public AbstractAction getPullMergeAction() {
if (pullMergeAction == null) {
pullMergeAction = new PullAction(gitController, TRANSLATOR.getTranslation(Tags.PULL_MERGE), PullType.MERGE_FF);
final boolean hasRepository = hasRepository();
SwingUtilities.invokeLater(() -> pullMergeAction.setEnabled(hasRepository));
}
return pullMergeAction;
}
use of com.oxygenxml.git.view.actions.internal.PullAction in project oxygen-git-client-addon by oxygenxml.
the class GitActionsManager method getPullRebaseAction.
/**
* @return The pull merge action.
*/
@NonNull
public AbstractAction getPullRebaseAction() {
if (pullRebaseAction == null) {
pullRebaseAction = new PullAction(gitController, TRANSLATOR.getTranslation(Tags.PULL_REBASE), PullType.REBASE);
final boolean hasRepository = hasRepository();
SwingUtilities.invokeLater(() -> pullRebaseAction.setEnabled(hasRepository));
}
return pullRebaseAction;
}
Aggregations