summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/models/Links.java
diff options
context:
space:
mode:
authorTobias Spitzer2014-08-25 12:59:24 +0200
committerTobias Spitzer2014-08-25 12:59:24 +0200
commita5b3b060fbc1641bf5e83f895fe0e517da9c9824 (patch)
treeebe775579f3b4c7c2d47c633ea0f24f50e82e4a0 /Dozentenmodul/src/models/Links.java
parentInitialrechte für Veranstaltungen nun Verfügbar (diff)
parentAnleitung zur Nutzung einer VMDK hinzugefügt (diff)
downloadtutor-module-a5b3b060fbc1641bf5e83f895fe0e517da9c9824.tar.gz
tutor-module-a5b3b060fbc1641bf5e83f895fe0e517da9c9824.tar.xz
tutor-module-a5b3b060fbc1641bf5e83f895fe0e517da9c9824.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tutor-module
Diffstat (limited to 'Dozentenmodul/src/models/Links.java')
-rw-r--r--Dozentenmodul/src/models/Links.java141
1 files changed, 6 insertions, 135 deletions
diff --git a/Dozentenmodul/src/models/Links.java b/Dozentenmodul/src/models/Links.java
index f72284b0..37963440 100644
--- a/Dozentenmodul/src/models/Links.java
+++ b/Dozentenmodul/src/models/Links.java
@@ -1,8 +1,5 @@
package models;
-import java.io.IOException;
-
-
public class Links {
private static String FAQ = "http://bwlehrpool.hs-offenburg.de/";
@@ -15,146 +12,20 @@ public class Links {
return FAQ;
}
+ public static String getAnleitungVMDK(){
+ return AnleitungVMDK;
+ }
+
public static String getOTRS() {
return OTRS;
}
- public static void openFAQ() {
-
- String faq = FAQ;
- Runtime rt = Runtime.getRuntime();
- String os = System.getProperty("os.name");
-
- try {
-
-
- if (os.indexOf( "Win" ) >= 0) {
-
- rt.exec( "rundll32 url.dll,FileProtocolHandler " + faq);
-
- } else if (os.indexOf( "Mac" ) >= 0) {
-
- rt.exec( "open " + faq);
-
- } else if (os.indexOf( "nix") >=0 || os.indexOf( "nux") >=0) {
-
- // Do a best guess on unix until we get a platform independent way
- // Build a list of browsers to try, in this order.
- String[] browsers = {"epiphany", "firefox", "mozilla", "konqueror",
- "netscape","opera","links","lynx"};
-
- StringBuffer cmd = new StringBuffer();
- for (int i=0; i<browsers.length; i++)
- cmd.append( (i==0 ? "" : " || " ) + browsers[i] +" \"" + faq + "\" ");
-
- rt.exec(new String[] { "sh", "-c", cmd.toString() });
- }
-
- if (os.indexOf("Win") >= 0) {
-
- // this doesn't support showing urls in the form of
- // "page.html#nameLink"
- rt.exec("rundll32 url.dll,FileProtocolHandler " + faq);
-
- } else if (os.indexOf("Mac") >= 0) {
-
- rt.exec("open " + faq);
-
- } else if (os.indexOf("nix") >= 0 || os.indexOf("nux") >= 0) {
-
- // Do a best guess on unix until we get a platform independent
- // way
- // Build a list of browsers to try, in this order.
- String[] browsers = { "epiphany", "firefox", "mozilla",
- "konqueror", "netscape", "opera", "links", "lynx" };
-
- // Build a command string which looks like
- // "browser1 "url" || browser2 "url" ||..."
- StringBuffer cmd = new StringBuffer();
- for (int i = 0; i < browsers.length; i++)
- cmd.append((i == 0 ? "" : " || ") + browsers[i] + " \""
- + faq + "\" ");
-
- rt.exec(new String[] { "sh", "-c", cmd.toString() });
- }
-
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- }
-
- public static void openOTRS() {
-
- String otrs = OTRS;
- Runtime rt = Runtime.getRuntime();
- String os = System.getProperty("os.name");
-
- try {
-
- if (os.indexOf( "Win" ) >= 0) {
-
- rt.exec( "rundll32 url.dll,FileProtocolHandler " + otrs);
-
- } else if (os.indexOf( "Mac" ) >= 0) {
-
- rt.exec( "open " + otrs);
-
- } else if (os.indexOf( "nix") >=0 || os.indexOf( "nux") >=0) {
-
- String[] browsers = {"epiphany", "firefox", "mozilla", "konqueror",
- "netscape","opera","links","lynx"};
-
- StringBuffer cmd = new StringBuffer();
- for (int i=0; i<browsers.length; i++)
- cmd.append( (i==0 ? "" : " || " ) + browsers[i] +" \"" + otrs + "\" ");
-
- rt.exec(new String[] { "sh", "-c", cmd.toString() });
- }
-
- if (os.indexOf("Win") >= 0) {
-
- // this doesn't support showing urls in the form of
- // "page.html#nameLink"
- rt.exec("rundll32 url.dll,FileProtocolHandler " + otrs);
-
- } else if (os.indexOf("Mac") >= 0) {
-
- rt.exec("open " + otrs);
-
- } else if (os.indexOf("nix") >= 0 || os.indexOf("nux") >= 0) {
-
- // Do a best guess on unix until we get a platform independent
- // way
- // Build a list of browsers to try, in this order.
- String[] browsers = { "epiphany", "firefox", "mozilla",
- "konqueror", "netscape", "opera", "links", "lynx" };
-
- // Build a command string which looks like
- // "browser1 "url" || browser2 "url" ||..."
- StringBuffer cmd = new StringBuffer();
- for (int i = 0; i < browsers.length; i++)
- cmd.append((i == 0 ? "" : " || ") + browsers[i] + " \""
- + otrs + "\" ");
-
- rt.exec(new String[] { "sh", "-c", cmd.toString() });
- }
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- }
-
public static String getUriWindows() {
return uriWindows;
}
public static String getUriLinux() {
return uriLinux;
- }
+ }
-}
+}// end class