link start!
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.util.Lexicon
|
||||
*/
|
||||
package com.tridium.platform.daemon.task;
|
||||
|
||||
import com.tridium.platform.daemon.task.DaemonSessionTask;
|
||||
import javax.baja.platform.ICancelHint;
|
||||
import javax.baja.util.Lexicon;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public class CancelableDaemonSessionTask
|
||||
extends DaemonSessionTask
|
||||
implements ICancelHint {
|
||||
private String cancelLabel;
|
||||
private boolean canceled;
|
||||
private ICancelHint cancelHint;
|
||||
private boolean allowCancel;
|
||||
|
||||
public synchronized void cancel() {
|
||||
if (this.allowCancel) {
|
||||
this.canceled = true;
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void setIsCancelEnabled(boolean bl) {
|
||||
this.allowCancel = bl;
|
||||
}
|
||||
|
||||
public synchronized boolean isCancelEnabled() {
|
||||
return this.allowCancel;
|
||||
}
|
||||
|
||||
public synchronized boolean isCanceled() {
|
||||
boolean bl = false;
|
||||
if (this.allowCancel && (this.canceled || this.cancelHint != null && this.cancelHint.isCanceled())) {
|
||||
bl = true;
|
||||
}
|
||||
return bl;
|
||||
}
|
||||
|
||||
public String getCancelLabel(String string) {
|
||||
return this.cancelLabel == null ? string : this.cancelLabel;
|
||||
}
|
||||
|
||||
public void setCancelLabel(String string) {
|
||||
this.cancelLabel = string;
|
||||
}
|
||||
|
||||
private final /* synthetic */ void this() {
|
||||
this.cancelLabel = null;
|
||||
this.canceled = false;
|
||||
this.allowCancel = true;
|
||||
}
|
||||
|
||||
public CancelableDaemonSessionTask(Lexicon lexicon, String string, String string2) {
|
||||
this(lexicon, string, string2, new Object[0], -1, null);
|
||||
}
|
||||
|
||||
public CancelableDaemonSessionTask(Lexicon lexicon, String string, String string2, Object[] objectArray) {
|
||||
this(lexicon, string, string2, objectArray, -1, null);
|
||||
}
|
||||
|
||||
public CancelableDaemonSessionTask(Lexicon lexicon, String string, String string2, int n) {
|
||||
this(lexicon, string, string2, new Object[0], n, null);
|
||||
}
|
||||
|
||||
public CancelableDaemonSessionTask(Lexicon lexicon, String string, String string2, Object[] objectArray, int n) {
|
||||
this(lexicon, string, string2, objectArray, n, null);
|
||||
}
|
||||
|
||||
public CancelableDaemonSessionTask(Lexicon lexicon, String string, String string2, ICancelHint iCancelHint) {
|
||||
this(lexicon, string, string2, new Object[0], -1, iCancelHint);
|
||||
}
|
||||
|
||||
public CancelableDaemonSessionTask(Lexicon lexicon, String string, String string2, Object[] objectArray, ICancelHint iCancelHint) {
|
||||
this(lexicon, string, string2, objectArray, -1, iCancelHint);
|
||||
}
|
||||
|
||||
public CancelableDaemonSessionTask(Lexicon lexicon, String string, String string2, int n, ICancelHint iCancelHint) {
|
||||
this(lexicon, string, string2, new Object[0], n, iCancelHint);
|
||||
}
|
||||
|
||||
public CancelableDaemonSessionTask(Lexicon lexicon, String string, String string2, Object[] objectArray, int n, ICancelHint iCancelHint) {
|
||||
super(lexicon, string, string2, objectArray, n);
|
||||
this.this();
|
||||
this.cancelHint = iCancelHint;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.baja.util.Lexicon
|
||||
*/
|
||||
package com.tridium.platform.daemon.task;
|
||||
|
||||
import javax.baja.util.Lexicon;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public class DaemonSessionTask {
|
||||
private String title;
|
||||
private String message;
|
||||
private int total;
|
||||
private int progress;
|
||||
private boolean immediate;
|
||||
|
||||
public String getTitle() {
|
||||
return this.title;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
public void setMessage(String string) {
|
||||
this.message = string;
|
||||
}
|
||||
|
||||
public void setProgress(int n) {
|
||||
this.progress = n;
|
||||
}
|
||||
|
||||
public int getProgress() {
|
||||
return this.progress;
|
||||
}
|
||||
|
||||
public int getTotal() {
|
||||
return this.total;
|
||||
}
|
||||
|
||||
public void setImmediate(boolean bl) {
|
||||
this.immediate = bl;
|
||||
}
|
||||
|
||||
public boolean isImmediate() {
|
||||
return this.immediate;
|
||||
}
|
||||
|
||||
private final /* synthetic */ void this() {
|
||||
this.immediate = false;
|
||||
}
|
||||
|
||||
public DaemonSessionTask(Lexicon lexicon, String string, String string2) {
|
||||
this(lexicon, string, string2, new Object[0], -1);
|
||||
}
|
||||
|
||||
public DaemonSessionTask(Lexicon lexicon, String string, String string2, Object[] objectArray) {
|
||||
this(lexicon, string, string2, objectArray, -1);
|
||||
}
|
||||
|
||||
public DaemonSessionTask(Lexicon lexicon, String string, String string2, int n) {
|
||||
this(lexicon, string, string2, new Object[0], n);
|
||||
}
|
||||
|
||||
public DaemonSessionTask(Lexicon lexicon, String string, String string2, Object[] objectArray, int n) {
|
||||
this.this();
|
||||
this.title = lexicon.getText(string);
|
||||
this.message = lexicon.getText(string2, objectArray);
|
||||
this.total = n;
|
||||
this.progress = 0;
|
||||
}
|
||||
|
||||
public DaemonSessionTask(String string, String string2, int n) {
|
||||
this.this();
|
||||
this.title = string;
|
||||
this.message = string2;
|
||||
this.total = n;
|
||||
this.progress = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package com.tridium.platform.daemon.task;
|
||||
|
||||
import com.tridium.platform.daemon.task.DaemonSessionTask;
|
||||
|
||||
public interface DaemonSessionTaskListener {
|
||||
public static final DaemonSessionTaskListener NULL_TASK_LISTENER = new DaemonSessionTaskListener(){
|
||||
|
||||
public final void taskStarted(DaemonSessionTask daemonSessionTask) {
|
||||
}
|
||||
|
||||
public final void taskUpdated(DaemonSessionTask daemonSessionTask) {
|
||||
}
|
||||
|
||||
public final void taskFinished(DaemonSessionTask daemonSessionTask) {
|
||||
}
|
||||
|
||||
public final boolean isCancelEnabled() {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
public void taskStarted(DaemonSessionTask var1);
|
||||
|
||||
public void taskUpdated(DaemonSessionTask var1);
|
||||
|
||||
public void taskFinished(DaemonSessionTask var1);
|
||||
|
||||
public boolean isCancelEnabled();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user