mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 14:15:20 +00:00
56 lines
2.3 KiB
Java
56 lines
2.3 KiB
Java
package ao;
|
|
|
|
import com.efiAnalytics.ui.aN;
|
|
import com.efiAnalytics.ui.bV;
|
|
import d.PropertiesExtensionInDPackage;
|
|
import d.HashMapUsingArrayList;
|
|
import java.util.Properties;
|
|
import javax.swing.event.HyperlinkEvent;
|
|
import javax.swing.event.HyperlinkListener;
|
|
|
|
class bv implements HyperlinkListener {
|
|
bv(bu parambu) {}
|
|
|
|
public void hyperlinkUpdate(HyperlinkEvent paramHyperlinkEvent) {
|
|
long l = 0L;
|
|
char c = 'ߐ';
|
|
if (paramHyperlinkEvent.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED) && System.currentTimeMillis() - l > c) {
|
|
l = System.currentTimeMillis();
|
|
if (paramHyperlinkEvent.getDescription().indexOf(":") != -1 && !paramHyperlinkEvent.getDescription().startsWith("http:") && !paramHyperlinkEvent.getDescription().startsWith("https:") && !paramHyperlinkEvent.getDescription().startsWith("file:")) {
|
|
String str = paramHyperlinkEvent.getDescription();
|
|
try {
|
|
String str1 = str.substring(0, str.indexOf(":"));
|
|
String str2 = str.substring(str.indexOf(":") + 1);
|
|
String str3 = "";
|
|
if (str2.indexOf("?") != -1) {
|
|
str3 = (str2.indexOf("?") != -1) ? str.substring(str.indexOf("?") + 1) : "";
|
|
str2 = str2.substring(0, str2.indexOf("?"));
|
|
}
|
|
if (str1.equals("appAction")) {
|
|
PropertiesExtensionInDPackage PropertiesExtensionInDPackage = PropertiesExtensionInDPackage.a(str3);
|
|
HashMapUsingArrayList.a().a(str2, (Properties)PropertiesExtensionInDPackage);
|
|
} else {
|
|
bV.d("Unsure how to handle link: " + str, this.a.a);
|
|
}
|
|
} catch (Exception exception) {
|
|
bV.d("Unsure how to handle this link:\n" + paramHyperlinkEvent.getDescription() + ", Message:\n" + exception.getMessage(), this.a.a);
|
|
}
|
|
} else if (paramHyperlinkEvent.getURL().getProtocol().startsWith("http")) {
|
|
aN.a(paramHyperlinkEvent.getURL().toString());
|
|
} else {
|
|
try {
|
|
this.a.a.setPage(paramHyperlinkEvent.getURL());
|
|
} catch (Exception exception) {
|
|
System.out.println("Tried to load web help, but something went wrong.");
|
|
exception.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/ao/bv.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |