summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul
diff options
context:
space:
mode:
authorunknown2014-05-25 17:48:07 +0200
committerunknown2014-05-25 17:48:07 +0200
commit1790fc458851a62a9831619612c56de0d6247d22 (patch)
treea730e3acec2813cc9e0630bdfb9425d7f40b9faa /Dozentenmodul
parentddd (diff)
downloadtutor-module-1790fc458851a62a9831619612c56de0d6247d22.tar.gz
tutor-module-1790fc458851a62a9831619612c56de0d6247d22.tar.xz
tutor-module-1790fc458851a62a9831619612c56de0d6247d22.zip
links + encoding
Diffstat (limited to 'Dozentenmodul')
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.classbin8422 -> 8422 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.classbin8933 -> 8933 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/DeleteImage_GUI.classbin12576 -> 12576 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.classbin9804 -> 9804 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.classbin8655 -> 8655 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.classbin1351 -> 727 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.classbin13362 -> 13362 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.classbin1325 -> 703 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.classbin1327 -> 704 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPDownloader_GUI.classbin11192 -> 11192 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.classbin12898 -> 12898 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchEditImage_GUI.classbin12459 -> 12459 bytes
-rw-r--r--Dozentenmodul/bin/gui/image/SearchImage_GUI.classbin12240 -> 12240 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/BillOfRights_GUI.classbin11020 -> 11020 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/MainMenue_GUI.classbin10476 -> 10476 bytes
-rw-r--r--Dozentenmodul/bin/gui/intro/VmWareLink_GUI.classbin5449 -> 5449 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.classbin10976 -> 10976 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.classbin10195 -> 10195 bytes
-rw-r--r--Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.classbin6724 -> 6724 bytes
-rw-r--r--Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/image/DeleteImage_GUI.java55
-rw-r--r--Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java30
-rw-r--r--Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java22
-rw-r--r--Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java13
-rw-r--r--Dozentenmodul/src/gui/image/FTPDownloader_GUI.java22
-rw-r--r--Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java22
-rw-r--r--Dozentenmodul/src/gui/image/SearchEditImage_GUI.java22
-rw-r--r--Dozentenmodul/src/gui/image/SearchImage_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/intro/BillOfRights_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/intro/MainMenue_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/intro/VmWareLink_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java20
-rw-r--r--Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java22
-rw-r--r--Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java20
-rw-r--r--Dozentenmodul/src/models/Links.java83
42 files changed, 137 insertions, 434 deletions
diff --git a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class
index 6460158f..3b6c600d 100644
--- a/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class
+++ b/Dozentenmodul/bin/gui/image/CreateImageAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class
index 82d24993..e1dc0068 100644
--- a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class
+++ b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class
index 43b41609..de05d0ec 100644
--- a/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class
+++ b/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class
index 33f96306..e2ae84dc 100644
--- a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class
+++ b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class
index 7253db83..b9990e6d 100644
--- a/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class
+++ b/Dozentenmodul/bin/gui/image/EditImageTechnisch_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class
index cc06860f..be70d58b 100644
--- a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class
index e6bf572b..38bd1e7f 100644
--- a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class
+++ b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.class
index dbc4fc9f..a0ddbbf4 100644
--- a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.class
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$5.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.class
index 2153646f..c1402f72 100644
--- a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.class
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI$6.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class
index 45ca0eae..24613829 100644
--- a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class
+++ b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class
index bde5917c..13e86cff 100644
--- a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class
+++ b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class
index 9fabf945..eec06e78 100644
--- a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class
+++ b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI.class
index 13b9fe67..db7cd89e 100644
--- a/Dozentenmodul/bin/gui/image/SearchImage_GUI.class
+++ b/Dozentenmodul/bin/gui/image/SearchImage_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class
index a7494fc1..dd4fba48 100644
--- a/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class
+++ b/Dozentenmodul/bin/gui/intro/BillOfRights_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class
index 3b5e5f77..4418d210 100644
--- a/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class
+++ b/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class
index 0b931e12..c5ce2396 100644
--- a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class
+++ b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class
index 8f480656..15823f5c 100644
--- a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class
+++ b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class
index e8fd3516..1d7ed4b2 100644
--- a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class
+++ b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class
Binary files differ
diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class
index c6169313..e4b4f646 100644
--- a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class
+++ b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class
Binary files differ
diff --git a/Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java b/Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java
index e6623c46..36c2bb4c 100644
--- a/Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java
+++ b/Dozentenmodul/src/gui/image/CreateImageAllgemein_GUI.java
@@ -304,16 +304,8 @@ public class CreateImageAllgemein_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -323,16 +315,8 @@ public class CreateImageAllgemein_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java b/Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java
index 308ff3b7..64023706 100644
--- a/Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java
+++ b/Dozentenmodul/src/gui/image/CreateImageTechnisch_GUI.java
@@ -364,16 +364,8 @@ public class CreateImageTechnisch_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -383,16 +375,8 @@ public class CreateImageTechnisch_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/image/DeleteImage_GUI.java b/Dozentenmodul/src/gui/image/DeleteImage_GUI.java
index c2ae79d5..fa1f991c 100644
--- a/Dozentenmodul/src/gui/image/DeleteImage_GUI.java
+++ b/Dozentenmodul/src/gui/image/DeleteImage_GUI.java
@@ -543,48 +543,8 @@ public class DeleteImage_GUI extends JFrame {
mntmFaq.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
- // Desktop desktop = Desktop.getDesktop();
-
- faq = Links.getFAQ();
-
- try {
- // Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
-
- Desktop.getDesktop().browse(new URL(faq).toURI());
-
- /*
- if (os.indexOf( "win" ) >= 0) {
-
- // this doesn't support showing urls in the form of "page.html#nameLink"
- rt.exec( "rundll32 url.dll,FileProtocolHandler " + url);
-
- } else if (os.indexOf( "mac" ) >= 0) {
-
- rt.exec( "open " + url);
-
- } 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] +" \"" + url + "\" ");
-
- rt.exec(new String[] { "sh", "-c", cmd.toString() });
-
- */
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (URISyntaxException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+
+ Links.openFAQ();
}
});
mnNewMenu_1.add(mntmFaq);
@@ -594,16 +554,9 @@ public class DeleteImage_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
+
+ Links.openOTRS();
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
mnNewMenu_1.add(mntmOtrs);
diff --git a/Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java b/Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java
index c0ad0a06..f540e9ec 100644
--- a/Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java
+++ b/Dozentenmodul/src/gui/image/EditImageAllgemein_GUI.java
@@ -324,23 +324,7 @@ public class EditImageAllgemein_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
-
- faq = Links.getFAQ();
-
- try {
- //Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- // desktop.browse(faq);
-
- Desktop.getDesktop().browse(new URL(faq).toURI());
-
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (URISyntaxException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ Links.openFAQ();
}
});
@@ -350,16 +334,8 @@ public class EditImageAllgemein_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java b/Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java
index 1bbfa699..fa806cb6 100644
--- a/Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java
+++ b/Dozentenmodul/src/gui/image/EditImageTechnisch_GUI.java
@@ -348,16 +348,8 @@ public class EditImageTechnisch_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
mnNewMenu_1.add(mntmFaq);
@@ -366,16 +358,8 @@ public class EditImageTechnisch_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java b/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java
index 3adb426a..544f7b93 100644
--- a/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java
+++ b/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java
@@ -372,16 +372,8 @@ public class FTPCreateUploader_GUI extends JFrame implements
menuItem.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openFAQ();
}
});
@@ -392,6 +384,9 @@ public class FTPCreateUploader_GUI extends JFrame implements
menuItem_1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
+
+ Links.openOTRS();
+
}
});
menu.add(menuItem_1);
diff --git a/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java b/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java
index 97a29849..cc1c297a 100644
--- a/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java
+++ b/Dozentenmodul/src/gui/image/FTPDownloader_GUI.java
@@ -301,16 +301,8 @@ public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -320,16 +312,8 @@ public class FTPDownloader_GUI extends JFrame implements PropertyChangeListener
menuItem_1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java b/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java
index 99fc034b..c0c362f9 100644
--- a/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java
+++ b/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java
@@ -364,16 +364,8 @@ public class FTPEditUploader_GUI extends JFrame implements
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -383,16 +375,8 @@ public class FTPEditUploader_GUI extends JFrame implements
menuItem_1.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java b/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java
index a810e1a6..593f8e06 100644
--- a/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java
+++ b/Dozentenmodul/src/gui/image/SearchEditImage_GUI.java
@@ -474,16 +474,8 @@ public class SearchEditImage_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -493,16 +485,8 @@ public class SearchEditImage_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/image/SearchImage_GUI.java b/Dozentenmodul/src/gui/image/SearchImage_GUI.java
index 8fbf015c..d03a218d 100644
--- a/Dozentenmodul/src/gui/image/SearchImage_GUI.java
+++ b/Dozentenmodul/src/gui/image/SearchImage_GUI.java
@@ -429,16 +429,8 @@ public class SearchImage_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -448,16 +440,8 @@ public class SearchImage_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java b/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java
index 67472c17..6ea3e1af 100644
--- a/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java
+++ b/Dozentenmodul/src/gui/image/SearchMethodLecture_GUI.java
@@ -249,16 +249,8 @@ public class SearchMethodLecture_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -268,16 +260,8 @@ public class SearchMethodLecture_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/intro/BillOfRights_GUI.java b/Dozentenmodul/src/gui/intro/BillOfRights_GUI.java
index fd1246bc..652cca80 100644
--- a/Dozentenmodul/src/gui/intro/BillOfRights_GUI.java
+++ b/Dozentenmodul/src/gui/intro/BillOfRights_GUI.java
@@ -197,16 +197,8 @@ public class BillOfRights_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -216,17 +208,9 @@ public class BillOfRights_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
+ Links.openOTRS();
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
-
}
});
diff --git a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
index 401cbda0..b7dab076 100644
--- a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
+++ b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java
@@ -402,16 +402,8 @@ public class MainMenue_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -421,16 +413,8 @@ public class MainMenue_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java b/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java
index c94586d8..607ccf17 100644
--- a/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java
+++ b/Dozentenmodul/src/gui/intro/VmWareLink_GUI.java
@@ -217,16 +217,8 @@ public class VmWareLink_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -237,16 +229,8 @@ public class VmWareLink_GUI extends JFrame {
mntmOTRS.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java b/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java
index 21d84e2a..b60d358b 100644
--- a/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java
@@ -497,16 +497,8 @@ public class CreateLectureAllgemein_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -516,16 +508,8 @@ public class CreateLectureAllgemein_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java b/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java
index ff19ed13..fd0fc33f 100644
--- a/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java
@@ -464,16 +464,8 @@ public class CreateLectureLink_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -483,17 +475,9 @@ public class CreateLectureLink_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
+ Links.openOTRS();
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
-
}
});
diff --git a/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java b/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java
index ec27b4f5..7559cebe 100644
--- a/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java
@@ -417,16 +417,8 @@ public class DeleteLecture_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -436,16 +428,8 @@ public class DeleteLecture_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java
index 67f86a13..8c5fa5fb 100644
--- a/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/EditLectureAllgemein_GUI.java
@@ -412,16 +412,8 @@ public class EditLectureAllgemein_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -431,16 +423,8 @@ public class EditLectureAllgemein_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java
index 1f3e395d..eb5a3748 100644
--- a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java
@@ -456,16 +456,8 @@ public class EditLectureLink_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -475,16 +467,8 @@ public class EditLectureLink_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java
index a57b126e..3bf46911 100644
--- a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java
@@ -475,16 +475,8 @@ public class EditLectureSearch_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -494,17 +486,9 @@ public class EditLectureSearch_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
+ Links.openOTRS();
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
-
}
});
diff --git a/Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java b/Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java
index d818ddeb..eb28246f 100644
--- a/Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/ExtendedSearchForImages_GUI.java
@@ -238,16 +238,8 @@ public class ExtendedSearchForImages_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -257,16 +249,8 @@ public class ExtendedSearchForImages_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
-
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java b/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java
index 31bb1605..221ecba7 100644
--- a/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java
+++ b/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java
@@ -366,16 +366,8 @@ public class SearchLecture_GUI extends JFrame {
@Override
public void mousePressed(MouseEvent arg0) {
- String faq;
+ Links.openFAQ();
- faq = Links.getFAQ();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq );
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
}
});
@@ -385,16 +377,8 @@ public class SearchLecture_GUI extends JFrame {
mntmOtrs.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent arg0) {
- String otrs;
- otrs = Links.getOTRS();
-
- try {
- Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs );
- } catch (IOException f) {
- // TODO Auto-generated catch block
- f.printStackTrace();
- }
+ Links.openOTRS();
}
});
diff --git a/Dozentenmodul/src/models/Links.java b/Dozentenmodul/src/models/Links.java
index dba1771d..729801e5 100644
--- a/Dozentenmodul/src/models/Links.java
+++ b/Dozentenmodul/src/models/Links.java
@@ -1,5 +1,10 @@
package models;
+import java.awt.Desktop;
+import java.io.IOException;
+import java.net.URISyntaxException;
+import java.net.URL;
+
public class Links {
private static String FAQ = "http://bwlehrpool.hs-offenburg.de/";
@@ -12,4 +17,82 @@ public class Links {
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) {
+
+ // 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) {
+
+ // 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();
+ }
+
+ }
}