blob: 8d8524102d1783901d8d0a25836a8bc5f5de38ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package net.sourceforge.jnlp.browsertesting;
/**
* When all represent all configured browser, one represens one random
* (the first found) configured browser. Each other represents inidivdual browsers
*
*/
public enum Browsers {
none, all, one, opera, googleChrome, chromiumBrowser, firefox, midori,epiphany;
public String toExec() {
switch (this) {
case opera:
return "opera";
case googleChrome:
return "google-chrome";
case chromiumBrowser:
return "chromium-browser";
case firefox:
return "firefox";
case midori:
return "midori";
case epiphany:
return "epiphany";
default:
return null;
}
}
@Override
public String toString() {
if (toExec()!=null) return toExec();
switch (this) {
case all:
return "all";
case one:
return "one";
case none:
return "unset_browser";
default: return "unknown";
}
}
}
|