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);
}
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());
}
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();
}
Aggregations