mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove unused TaskInfo.getProcessId
This commit is contained in:
@@ -136,11 +136,6 @@ public class CompilerTask extends Task.Backgroundable {
|
||||
onClose.run();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProcessId() {
|
||||
return "compilation";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldStartInBackground() {
|
||||
return !myModal;
|
||||
|
||||
@@ -115,11 +115,6 @@ public abstract class Task implements TaskInfo, Progressive {
|
||||
ProgressManager.getInstance().run(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProcessId() {
|
||||
return "<unknown>";
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public final String getTitle() {
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.openapi.progress;
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface TaskInfo {
|
||||
@@ -27,7 +26,4 @@ public interface TaskInfo {
|
||||
String getCancelTooltipText();
|
||||
|
||||
boolean isCancellable();
|
||||
|
||||
@NonNls
|
||||
String getProcessId();
|
||||
}
|
||||
|
||||
-5
@@ -56,7 +56,6 @@ public class BackgroundableProcessIndicator extends ProgressWindow {
|
||||
public BackgroundableProcessIndicator(@Nullable final Project project, @NotNull TaskInfo info, @NotNull PerformInBackgroundOption option) {
|
||||
super(info.isCancellable(), true, project, info.getCancelText());
|
||||
setOwnerTask(info);
|
||||
setProcessId(info.getProcessId());
|
||||
myOption = option;
|
||||
myInfo = info;
|
||||
setTitle(info.getTitle());
|
||||
@@ -79,10 +78,6 @@ public class BackgroundableProcessIndicator extends ProgressWindow {
|
||||
@Nls final String cancelButtonText,
|
||||
@Nls final String backgroundStopTooltip, final boolean cancellable) {
|
||||
this(project, new TaskInfo() {
|
||||
@Override
|
||||
public String getProcessId() {
|
||||
return "<unknown>";
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
|
||||
@@ -28,7 +28,6 @@ import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.EmptyRunnable;
|
||||
import com.intellij.openapi.wm.IdeFocusManager;
|
||||
import com.intellij.openapi.wm.WindowManager;
|
||||
import com.intellij.util.messages.Topic;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -60,7 +59,6 @@ public class ProgressWindow extends ProgressIndicatorBase implements BlockingPro
|
||||
private boolean myStoppedAlready;
|
||||
private boolean myStarted;
|
||||
protected boolean myBackgrounded;
|
||||
private String myProcessId = "<unknown>";
|
||||
@Nullable private volatile Runnable myBackgroundHandler;
|
||||
protected int myDelayInMillis = DEFAULT_PROGRESS_DIALOG_POSTPONE_TIME_MILLIS;
|
||||
private boolean myModalityEntered;
|
||||
@@ -234,15 +232,6 @@ public class ProgressWindow extends ProgressIndicatorBase implements BlockingPro
|
||||
((KeyEvent)event).getModifiers() == 0;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getProcessId() {
|
||||
return myProcessId;
|
||||
}
|
||||
|
||||
public void setProcessId(@NotNull String processId) {
|
||||
myProcessId = processId;
|
||||
}
|
||||
|
||||
protected void showDialog() {
|
||||
if (!isRunning() || isCanceled()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user