Search in sources :

Example 1 with SvnConfiguration

use of org.jetbrains.idea.svn.SvnConfiguration in project intellij-community by JetBrains.

the class AutoSvnUpdater method actionPerformed.

@Override
protected void actionPerformed(@NotNull VcsContext context) {
    final SvnConfiguration configuration17 = SvnConfiguration.getInstance(myProject);
    configuration17.setForceUpdate(false);
    configuration17.setUpdateLockOnDemand(false);
    configuration17.setUpdateDepth(Depth.INFINITY);
    final SvnVcs vcs = SvnVcs.getInstance(myProject);
    for (FilePath root : myRoots) {
        configureUpdateRootInfo(root, configuration17.getUpdateRootInfo(root.getIOFile(), vcs));
    }
    super.actionPerformed(context);
}
Also used : FilePath(com.intellij.openapi.vcs.FilePath) SvnConfiguration(org.jetbrains.idea.svn.SvnConfiguration) SvnVcs(org.jetbrains.idea.svn.SvnVcs)

Example 2 with SvnConfiguration

use of org.jetbrains.idea.svn.SvnConfiguration in project intellij-community by JetBrains.

the class IntegratedSelectedOptionsDialog method saveOptions.

public void saveOptions() {
    SvnConfiguration svnConfig = myVcs.getSvnConfiguration();
    svnConfig.setMergeDryRun(myDryRunCheckbox.isSelected());
    svnConfig.setIgnoreSpacesInMerge(myIgnoreWhitespacesCheckBox.isSelected());
}
Also used : SvnConfiguration(org.jetbrains.idea.svn.SvnConfiguration)

Example 3 with SvnConfiguration

use of org.jetbrains.idea.svn.SvnConfiguration in project intellij-community by JetBrains.

the class MergeFromTheirsResolver method getAddedFilesPlaceOption.

private boolean getAddedFilesPlaceOption() {
    SvnConfiguration configuration = myVcs.getSvnConfiguration();
    Boolean add = configuration.isKeepNewFilesAsIsForTreeConflictMerge();
    if (add != null) {
        return add;
    }
    if (!containAdditions(myTheirsChanges) && !containAdditions(myTheirsBinaryChanges)) {
        return false;
    }
    return Messages.YES == MessageDialogBuilder.yesNo(TreeConflictRefreshablePanel.TITLE, "Keep newly created file(s) in their original place?").yesText("Keep").noText("Move").doNotAsk(new DialogWrapper.DoNotAskOption() {

        @Override
        public boolean isToBeShown() {
            return true;
        }

        @Override
        public void setToBeShown(boolean value, int exitCode) {
            if (!value) {
                configuration.setKeepNewFilesAsIsForTreeConflictMerge(exitCode == 0);
            }
        }

        @Override
        public boolean canBeHidden() {
            return true;
        }

        @Override
        public boolean shouldSaveOptionsOnCancel() {
            return true;
        }

        @NotNull
        @Override
        public String getDoNotShowMessage() {
            return CommonBundle.message("dialog.options.do.not.ask");
        }
    }).show();
}
Also used : SvnConfiguration(org.jetbrains.idea.svn.SvnConfiguration) NotNull(org.jetbrains.annotations.NotNull) DialogWrapper(com.intellij.openapi.ui.DialogWrapper)

Aggregations

SvnConfiguration (org.jetbrains.idea.svn.SvnConfiguration)3 DialogWrapper (com.intellij.openapi.ui.DialogWrapper)1 FilePath (com.intellij.openapi.vcs.FilePath)1 NotNull (org.jetbrains.annotations.NotNull)1 SvnVcs (org.jetbrains.idea.svn.SvnVcs)1