Search in sources :

Example 1 with PullAction

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;
}
Also used : PullAction(com.oxygenxml.git.view.actions.internal.PullAction) NonNull(org.eclipse.jgit.annotations.NonNull)

Example 2 with PullAction

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;
}
Also used : PullAction(com.oxygenxml.git.view.actions.internal.PullAction) NonNull(org.eclipse.jgit.annotations.NonNull)

Aggregations

PullAction (com.oxygenxml.git.view.actions.internal.PullAction)2 NonNull (org.eclipse.jgit.annotations.NonNull)2