mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-27 15:15:30 +00:00
- Implement WizardCancelActionListener to handle cancellation actions. - Create WizardDialog for managing dialog windows with window listener. - Add WizardDialogCallback for handling dialog callbacks. - Introduce WizardNextActionListener for handling next actions in the wizard. - Develop WizardPanel to manage the wizard's layout and navigation. - Implement WizardRunnable to run wizard actions in a separate thread. - Define WizardStepCallback interface for step callbacks in the wizard. - Create YAxisSelectorLayoutRunnable for managing layout updates. - Add YAxisSelectorPanel for selecting Y-axis options in the UI. - Remove unused interfaces and classes (cP, cT, co, cx, dx, eR, eU, ev).
77 lines
1.5 KiB
Java
77 lines
1.5 KiB
Java
package com.efiAnalytics.ui;
|
|
|
|
import bH.D;
|
|
import java.awt.Window;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class SleepPreventionManager {
|
|
private static SleepPreventionManager c = null;
|
|
|
|
dJ a = null;
|
|
|
|
public List b = new ArrayList();
|
|
|
|
public static dI a() {
|
|
if (c == null)
|
|
c = new dI();
|
|
return c;
|
|
}
|
|
|
|
public void a(eu parameu) {
|
|
this.b.add(parameu);
|
|
}
|
|
|
|
public void b() {
|
|
if (!d()) {
|
|
c();
|
|
this.a = new dJ(this);
|
|
this.a.start();
|
|
D.d("Starting Prevent Sleep");
|
|
}
|
|
}
|
|
|
|
public void c() {
|
|
if (this.a != null) {
|
|
this.a.a(false);
|
|
this.a = null;
|
|
D.d("Stopping Prevent Sleep");
|
|
}
|
|
}
|
|
|
|
public boolean d() {
|
|
return (this.a != null && this.a.a() && this.a.isAlive());
|
|
}
|
|
|
|
private boolean e() {
|
|
if (!this.b.isEmpty())
|
|
return true;
|
|
Window[] arrayOfWindow = Window.getWindows();
|
|
try {
|
|
for (Window window : arrayOfWindow) {
|
|
if (window.isVisible() && window.isActive())
|
|
return true;
|
|
}
|
|
} catch (Exception exception) {
|
|
D.a(exception);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
private boolean f() {
|
|
if (e()) {
|
|
for (eu eu : this.b) {
|
|
if (!eu.a())
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/com/efiAnalytics/ui/dI.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |