mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[shelf] remove unused parameter
This commit is contained in:
+1
-1
@@ -139,7 +139,7 @@ public class PatchApplier<BinaryType extends FilePatch> {
|
||||
public void execute(boolean showSuccessNotification) {
|
||||
final Continuation continuation = ApplicationManager.getApplication().isDispatchThread() ?
|
||||
Continuation.createFragmented(myProject, true) :
|
||||
Continuation.createForCurrentProgress(myProject, true, "Apply patch");
|
||||
Continuation.createForCurrentProgress(myProject, true);
|
||||
final GatheringContinuationContext initContext =
|
||||
new GatheringContinuationContext();
|
||||
scheduleSelf(showSuccessNotification, initContext, false);
|
||||
|
||||
+1
-1
@@ -361,7 +361,7 @@ public class ShelveChangesManager extends AbstractProjectComponent implements JD
|
||||
@Nullable final List<ShelvedBinaryFile> binaryFiles,
|
||||
@Nullable final LocalChangeList targetChangeList,
|
||||
boolean showSuccessNotification) {
|
||||
final Continuation continuation = Continuation.createForCurrentProgress(myProject, true, "Unshelve changes");
|
||||
final Continuation continuation = Continuation.createForCurrentProgress(myProject, true);
|
||||
final GatheringContinuationContext initContext = new GatheringContinuationContext();
|
||||
scheduleUnshelveChangeList(changeList, changes, binaryFiles, targetChangeList, showSuccessNotification, initContext, false,
|
||||
false, null, null);
|
||||
|
||||
@@ -27,8 +27,8 @@ public class Continuation {
|
||||
myGeneralRunner = generalRunner;
|
||||
}
|
||||
|
||||
public static Continuation createForCurrentProgress(final Project project, final boolean cancellable, final String commonTitle) {
|
||||
return new Continuation(new SameProgressRunner(project, cancellable, commonTitle));
|
||||
public static Continuation createForCurrentProgress(final Project project, final boolean cancellable) {
|
||||
return new Continuation(new SameProgressRunner(project, cancellable));
|
||||
}
|
||||
|
||||
public static Continuation createFragmented(final Project project, final boolean cancellable) {
|
||||
@@ -59,7 +59,7 @@ public class Continuation {
|
||||
}
|
||||
|
||||
public void resumeOnNewIndicator(final Project project, final boolean cancellable, final String commonTitle) {
|
||||
final SameProgressRunner runner = new SameProgressRunner(project, cancellable, commonTitle);
|
||||
final SameProgressRunner runner = new SameProgressRunner(project, cancellable);
|
||||
runner.next(myGeneralRunner.myQueue);
|
||||
myGeneralRunner = runner;
|
||||
resume();
|
||||
|
||||
@@ -36,7 +36,7 @@ public class SameProgressRunner extends GeneralRunner {
|
||||
private final Semaphore mySemaphore;
|
||||
private final static Logger LOG = Logger.getInstance("#com.intellij.util.continuation.SameProgressRunner");
|
||||
|
||||
public SameProgressRunner(Project project, boolean cancellable, final String commonName) {
|
||||
public SameProgressRunner(Project project, boolean cancellable) {
|
||||
super(project, cancellable);
|
||||
|
||||
final Application application = ApplicationManager.getApplication();
|
||||
|
||||
@@ -118,7 +118,7 @@ public class GitComplexProcess {
|
||||
}
|
||||
|
||||
private void run() {
|
||||
Continuation continuation = Continuation.createForCurrentProgress(myProject, true, myTitle);
|
||||
Continuation continuation = Continuation.createForCurrentProgress(myProject, true);
|
||||
String taskTitle = "Git: " + myTitle;
|
||||
TaskDescriptor operation = new TaskDescriptor(taskTitle, Where.POOLED) {
|
||||
@Override public void run(final ContinuationContext context) {
|
||||
|
||||
Reference in New Issue
Block a user