From 2e0d8d4334d0574ec5428111d6b9153aa433427d Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Mon, 26 May 2014 10:04:59 +0200 Subject: nix --- Dozentenmodul/src/gui/intro/Login_GUI.java | 44 ++++++++------------------ Dozentenmodul/src/gui/intro/MainMenue_GUI.java | 1 - 2 files changed, 14 insertions(+), 31 deletions(-) diff --git a/Dozentenmodul/src/gui/intro/Login_GUI.java b/Dozentenmodul/src/gui/intro/Login_GUI.java index 5b4ecbd9..5b47f4e0 100644 --- a/Dozentenmodul/src/gui/intro/Login_GUI.java +++ b/Dozentenmodul/src/gui/intro/Login_GUI.java @@ -196,9 +196,6 @@ public class Login_GUI extends JFrame { try { login = true; String passText = new String(lblpass.getPassword()); - System.out.println("Benutzer: " + lblusername.getText() - + "\nPasswort: " + passText); - // check if client has received a connection with information or a // null package if (checkClientPackage() == true) { @@ -207,28 +204,17 @@ public class Login_GUI extends JFrame { SessionData.session.setAuthToken(result.authToken); SessionData.session.setSessionID(result.sessionId); SessionData.session.setServerAdress(result.serverAddress); - System.out.println("Satellit-Adresse: " + result.serverAddress); - - //set connection to bwLehrpoolSuiteServer - ThriftConnection bwthrift=new ThriftConnection(); - server.Server.Client bwClient=bwthrift.getThriftConnection(); - System.out.println("Connection zu Satellit aufgebaut!"); + + // set connection to bwLehrpoolSuiteServer + ThriftConnection bwthrift = new ThriftConnection(); + server.Server.Client bwClient = bwthrift.getThriftConnection(); models.Client.clientcon.setClient(bwClient); - - - System.out - .println("Konnte mich beim MasterServer authentifizieren. Meine Session-ID ist " - + result.sessionId - + ", mein Token f\u00fcr den Satelliten " - + result.authToken); - if (login == true) { - /* - * - * - * Hier Daten speichern - */ + System.out.println("Session-ID: " + result.sessionId + + "\nToken: " + result.authToken); + if (login == true) { + //Daten speichern if (SessionData.session.getAuthToken() == null) { System.out.println("Token ist null"); JOptionPane.showMessageDialog(null, @@ -239,8 +225,8 @@ public class Login_GUI extends JFrame { UserInfo user = client.getUserFromToken(SessionData.session .getAuthToken()); - String hochschule = user.eMail.substring( - user.eMail.indexOf("@") + 1); + String hochschule = user.eMail.substring(user.eMail + .indexOf("@") + 1); person.verantwortlicher.setUsername(lblusername.getText() .substring(0, lblusername.getText().indexOf("@"))); @@ -248,7 +234,7 @@ public class Login_GUI extends JFrame { person.verantwortlicher.setVorname(user.firstName); person.verantwortlicher.setEMail(user.eMail); person.verantwortlicher.setHochschule(hochschule); - + try { // Lege config File an und entscheide welches Fenster // als naechstes geoeffnet wird @@ -332,14 +318,12 @@ public class Login_GUI extends JFrame { if (client != null) { // client contains information isClientReturnedCorrectly = true; - System.out.println("Masterserver (" + masterServerIP - + ") ist erreichbar, Verbindungsinformationen erhalten"); + System.out.println("Verbindungsinformationen erhalten"); } else { // client has returned with error isClientReturnedCorrectly = false; - System.out.println("Fehler: Client hat von Masterserver (" - + masterServerIP - + ") keine korrekten Verbindungsdaten erhalten."); + System.out + .println("Fehler: Keine korrekten Verbindungsdaten erhalten."); } return isClientReturnedCorrectly; diff --git a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java index b7dab076..59a35df3 100644 --- a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java +++ b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java @@ -31,7 +31,6 @@ import javax.swing.border.TitledBorder; import java.awt.ScrollPane; import javax.swing.JTextArea; import javax.swing.ImageIcon; - import models.Links; import models.SessionData; import java.awt.event.MouseAdapter; -- cgit v1.2.3-55-g7522 From f79966ee9851b8d6844ea0a565b9e6efda59f156 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Mon, 26 May 2014 10:06:28 +0200 Subject: -User und Passwort werden nicht mehr ausgegeben -Ausgaben insgesamt etwas ausgedünnt --- .../bin/gui/image/CreateImageTechnisch_GUI.class | Bin 8933 -> 8672 bytes Dozentenmodul/bin/gui/image/DeleteImage_GUI.class | Bin 12576 -> 12524 bytes .../bin/gui/image/EditImageAllgemein_GUI.class | Bin 9804 -> 10136 bytes .../bin/gui/image/FTPCreateUploader_GUI$7.class | Bin 1351 -> 727 bytes .../bin/gui/image/FTPCreateUploader_GUI$8.class | Bin 727 -> 728 bytes .../bin/gui/image/FTPCreateUploader_GUI.class | Bin 13362 -> 13135 bytes .../bin/gui/image/FTPDownloader_GUI.class | Bin 11192 -> 11247 bytes .../bin/gui/image/FTPEditUploader_GUI.class | Bin 12898 -> 12846 bytes .../bin/gui/image/SearchEditImage_GUI.class | Bin 12459 -> 12650 bytes Dozentenmodul/bin/gui/image/SearchImage_GUI.class | Bin 12240 -> 12409 bytes Dozentenmodul/bin/gui/intro/Login_GUI.class | Bin 10083 -> 9662 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class | Bin 692 -> 692 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class | Bin 2247 -> 2247 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class | Bin 1088 -> 1088 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class | Bin 1006 -> 1006 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class | Bin 977 -> 977 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class | Bin 1068 -> 1068 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class | Bin 1083 -> 1083 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class | Bin 974 -> 974 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class | Bin 996 -> 996 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class | Bin 1096 -> 1096 bytes Dozentenmodul/bin/gui/intro/MainMenue_GUI.class | Bin 10476 -> 10476 bytes Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class | Bin 5449 -> 5748 bytes .../gui/lecture/CreateLectureAllgemein_GUI.class | Bin 10976 -> 10714 bytes .../bin/gui/lecture/EditLectureAllgemein_GUI.class | Bin 10195 -> 9932 bytes .../lecture/ExtendedSearchForImages_GUI$3.class | Bin 1395 -> 773 bytes .../gui/lecture/ExtendedSearchForImages_GUI.class | Bin 6724 -> 6320 bytes .../src/gui/image/CreateImageFreigabe_GUI.java | 88 +++++++------- .../src/gui/lecture/EditLectureLink_GUI.java | 6 +- Dozentenmodul/src/models/Links.java | 134 +++++++++++---------- Dozentenmodulserver/bin/util/XMLCreator.class | Bin 7557 -> 7558 bytes 31 files changed, 116 insertions(+), 112 deletions(-) diff --git a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class index e1dc0068..101eeca5 100644 Binary files a/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class and b/Dozentenmodul/bin/gui/image/CreateImageTechnisch_GUI.class differ diff --git a/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class b/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class index de05d0ec..7f37814b 100644 Binary files a/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class and b/Dozentenmodul/bin/gui/image/DeleteImage_GUI.class differ diff --git a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class index e2ae84dc..aea7cc9d 100644 Binary files a/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class and b/Dozentenmodul/bin/gui/image/EditImageAllgemein_GUI.class differ diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$7.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$7.class index 225b1b06..e67f41d5 100644 Binary files a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$7.class and b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$7.class differ diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class index be70d58b..5b2e2f61 100644 Binary files a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class and b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI$8.class differ diff --git a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class index 38bd1e7f..6e81b472 100644 Binary files a/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class and b/Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class differ diff --git a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class index 24613829..41128bc8 100644 Binary files a/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class and b/Dozentenmodul/bin/gui/image/FTPDownloader_GUI.class differ diff --git a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class index 13e86cff..cb5966d1 100644 Binary files a/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class and b/Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class differ diff --git a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class index eec06e78..4a9e9a0f 100644 Binary files a/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class and b/Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class differ diff --git a/Dozentenmodul/bin/gui/image/SearchImage_GUI.class b/Dozentenmodul/bin/gui/image/SearchImage_GUI.class index db7cd89e..f2c03ce9 100644 Binary files a/Dozentenmodul/bin/gui/image/SearchImage_GUI.class and b/Dozentenmodul/bin/gui/image/SearchImage_GUI.class differ diff --git a/Dozentenmodul/bin/gui/intro/Login_GUI.class b/Dozentenmodul/bin/gui/intro/Login_GUI.class index 15cb2ba1..78bcd9b7 100644 Binary files a/Dozentenmodul/bin/gui/intro/Login_GUI.class and b/Dozentenmodul/bin/gui/intro/Login_GUI.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class index 4e2296e7..359af1fe 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$1.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class index 569827ad..1bbaae71 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$10.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class index e827afb1..1f8d4f7e 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$2.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class index 31a514d3..acfc42b0 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$3.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class index 852d5e14..17a2d992 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$4.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class index 34afa967..de6193d4 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$5.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class index 045661b3..24e03d07 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$6.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class index 8da2716a..302b8c84 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$7.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class index d411f9ab..cfa89387 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$8.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class index 5b26c8f5..31dd1069 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI$9.class differ diff --git a/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class b/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class index 4418d210..f14366f8 100644 Binary files a/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class and b/Dozentenmodul/bin/gui/intro/MainMenue_GUI.class differ diff --git a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class index c5ce2396..2957775c 100644 Binary files a/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class and b/Dozentenmodul/bin/gui/intro/VmWareLink_GUI.class differ diff --git a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class index 15823f5c..e804c5fa 100644 Binary files a/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class and b/Dozentenmodul/bin/gui/lecture/CreateLectureAllgemein_GUI.class differ diff --git a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class index 1d7ed4b2..80671923 100644 Binary files a/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class and b/Dozentenmodul/bin/gui/lecture/EditLectureAllgemein_GUI.class differ diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class index c5d4f8cf..959ba420 100644 Binary files a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class and b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI$3.class differ diff --git a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class index e4b4f646..e5a83ed6 100644 Binary files a/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class and b/Dozentenmodul/bin/gui/lecture/ExtendedSearchForImages_GUI.class differ diff --git a/Dozentenmodul/src/gui/image/CreateImageFreigabe_GUI.java b/Dozentenmodul/src/gui/image/CreateImageFreigabe_GUI.java index ce77282a..df610f6b 100644 --- a/Dozentenmodul/src/gui/image/CreateImageFreigabe_GUI.java +++ b/Dozentenmodul/src/gui/image/CreateImageFreigabe_GUI.java @@ -1,6 +1,5 @@ package gui.image; - import gui.intro.MainMenue_GUI; import java.awt.Dimension; @@ -26,15 +25,10 @@ import javax.swing.JMenuItem; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.border.TitledBorder; -import javax.swing.JTextArea; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; - -import javax.swing.JRadioButton; import javax.swing.ButtonGroup; -import javax.swing.JSpinner; -import javax.swing.SpinnerNumberModel; import models.Image; import models.Links; @@ -61,7 +55,7 @@ public class CreateImageFreigabe_GUI extends JFrame { } }); setResizable(false); - + try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException @@ -71,10 +65,10 @@ public class CreateImageFreigabe_GUI extends JFrame { } setTitle("bwLehrpool Suite *Prototyp* - Image erzeugen"); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); - int top=(screenSize.height - 722) / 2; - int left=(screenSize.width - 603) / 2; + int top = (screenSize.height - 722) / 2; + int left = (screenSize.width - 603) / 2; setBounds(left, top, 603, 722); - //setBounds(100, 100, 603, 722); + // setBounds(100, 100, 603, 722); getContentPane().setLayout(null); { JPanel panel = new JPanel(); @@ -88,11 +82,12 @@ public class CreateImageFreigabe_GUI extends JFrame { panel.add(lblNewLabel); lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18)); } - + JTextPane txtpnBitteWhlenSie = new JTextPane(); txtpnBitteWhlenSie.setEditable(false); txtpnBitteWhlenSie.setBackground(SystemColor.menu); - txtpnBitteWhlenSie.setText("W\u00E4hlen Sie bitte hier die von Ihnen gew\u00FCnschte Freigabe f\u00FCr Ihr Image aus."); + txtpnBitteWhlenSie + .setText("W\u00E4hlen Sie bitte hier die von Ihnen gew\u00FCnschte Freigabe f\u00FCr Ihr Image aus."); txtpnBitteWhlenSie.setBounds(10, 36, 509, 32); panel.add(txtpnBitteWhlenSie); } @@ -101,51 +96,54 @@ public class CreateImageFreigabe_GUI extends JFrame { contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5)); getContentPane().add(contentPanel); contentPanel.setLayout(null); - + JPanel panel_1 = new JPanel(); panel_1.setBackground(SystemColor.menu); - panel_1.setBorder(new TitledBorder(null, "Freigabe", TitledBorder.LEADING, TitledBorder.TOP, null, null)); + panel_1.setBorder(new TitledBorder(null, "Freigabe", + TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_1.setBounds(10, 51, 557, 124); contentPanel.add(panel_1); panel_1.setLayout(null); - + JLabel lblNewLabel_2 = new JLabel("Freigabemodus:"); lblNewLabel_2.setBounds(10, 55, 250, 20); panel_1.add(lblNewLabel_2); - + comboBox = new JComboBox(); - comboBox.setModel(new DefaultComboBoxModel(new String[] {"Lokal (Eigene Hochschule)", "\u00D6ffentlich (Alle Hochschulen)"})); + comboBox.setModel(new DefaultComboBoxModel(new String[] { + "Lokal (Eigene Hochschule)", + "\u00D6ffentlich (Alle Hochschulen)" })); comboBox.setSelectedIndex(0); comboBox.setBounds(270, 55, 250, 20); panel_1.add(comboBox); - + JLabel lblHauptmen = new JLabel("Hauptmen\u00FC"); lblHauptmen.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { - + CreateImageFreigabe_GUI.this.setVisible(false); - MainMenue_GUI main=new MainMenue_GUI(); + MainMenue_GUI main = new MainMenue_GUI(); main.setVisible(true); } }); lblHauptmen.setForeground(Color.BLUE); lblHauptmen.setBounds(10, 11, 61, 14); contentPanel.add(lblHauptmen); - + JLabel label_1 = new JLabel(">"); label_1.setBounds(69, 11, 13, 14); contentPanel.add(label_1); - + JLabel lblVlimage = new JLabel("VL-Image"); lblVlimage.setForeground(Color.BLUE); lblVlimage.setBounds(81, 11, 45, 14); contentPanel.add(lblVlimage); - + JLabel label_2 = new JLabel(">"); label_2.setBounds(133, 11, 13, 14); contentPanel.add(label_2); - + JLabel lblNewLabel_1 = new JLabel("Neu"); lblNewLabel_1.setBounds(146, 11, 46, 14); contentPanel.add(lblNewLabel_1); @@ -159,26 +157,26 @@ public class CreateImageFreigabe_GUI extends JFrame { JButton cancelButton = new JButton("Zur\u00FCck"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { - + Image.image.setShareMode(comboBox.getSelectedIndex()); - CreateImageTechnisch_GUI sr=new CreateImageTechnisch_GUI(); + CreateImageTechnisch_GUI sr = new CreateImageTechnisch_GUI(); sr.setVisible(true); dispose(); } }); cancelButton.setActionCommand("OK"); buttonPane.add(cancelButton); - //getRootPane().setDefaultButton(cancelButton); + // getRootPane().setDefaultButton(cancelButton); } { JButton continueButton = new JButton("Weiter"); continueButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Image.image.setShareMode(comboBox.getSelectedIndex()); - FTPCreateUploader_GUI ea=new FTPCreateUploader_GUI(); + FTPCreateUploader_GUI ea = new FTPCreateUploader_GUI(); ea.setVisible(true); dispose(); - + } }); continueButton.setActionCommand("Cancel"); @@ -186,38 +184,39 @@ public class CreateImageFreigabe_GUI extends JFrame { getRootPane().setDefaultButton(continueButton); } } - + JSeparator separator = new JSeparator(); separator.setBounds(0, 78, 597, 2); getContentPane().add(separator); - + JSeparator separator_1 = new JSeparator(); separator_1.setBounds(0, 627, 597, 2); getContentPane().add(separator_1); - + JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); - + JMenu mnNewMenu = new JMenu("Suchen"); menuBar.add(mnNewMenu); - + JMenuItem mntmVlSuche = new JMenuItem("VL Suche"); mnNewMenu.add(mntmVlSuche); - + JMenu mnNewMenu_1 = new JMenu("Hilfe"); menuBar.add(mnNewMenu_1); - + JMenuItem mntmFaq = new JMenuItem("FAQ"); mntmFaq.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent arg0) { - + String faq; - + faq = Links.getFAQ(); try { - Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + faq ); + Runtime.getRuntime().exec( + "rundll32 url.dll,FileProtocolHandler " + faq); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); @@ -226,17 +225,18 @@ public class CreateImageFreigabe_GUI extends JFrame { }); mnNewMenu_1.add(mntmFaq); - + JMenuItem mntmOtrs = new JMenuItem("OTRS"); mntmOtrs.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent arg0) { String otrs; - + otrs = Links.getOTRS(); - + try { - Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + otrs ); + Runtime.getRuntime().exec( + "rundll32 url.dll,FileProtocolHandler " + otrs); } catch (IOException f) { // TODO Auto-generated catch block f.printStackTrace(); @@ -246,6 +246,6 @@ public class CreateImageFreigabe_GUI extends JFrame { }); mnNewMenu_1.add(mntmOtrs); - + } } diff --git a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java index 3c93b46f..1d7a80eb 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java +++ b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java @@ -445,9 +445,7 @@ public class EditLectureLink_GUI extends JFrame { Links.openFAQ(); -<<<<<<< HEAD -======= - faq = Links.getFAQ(); + /*faq = Links.getFAQ(); try { @@ -456,7 +454,7 @@ public class EditLectureLink_GUI extends JFrame { // TODO Auto-generated catch block e.printStackTrace(); } ->>>>>>> 5d24cdec4d239f473ee2359493ab47d1ef3273dd + */ } }); diff --git a/Dozentenmodul/src/models/Links.java b/Dozentenmodul/src/models/Links.java index 860cae35..07db94a5 100644 --- a/Dozentenmodul/src/models/Links.java +++ b/Dozentenmodul/src/models/Links.java @@ -6,52 +6,55 @@ import java.net.URISyntaxException; import java.net.URL; public class Links { - + private static String FAQ = "http://bwlehrpool.hs-offenburg.de/"; private static String OTRS = "https://bwlehrpool-otrs.rz.hs-offenburg.de//otrs/customer.pl"; - private static String uriWindows="https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0"; - private static String uriLinux="https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0"; - + private static String uriWindows = "https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0"; + private static String uriLinux = "https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0"; + public static String getFAQ() { return FAQ; } - + public static String getOTRS() { return OTRS; } - -<<<<<<< HEAD + 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= 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 @@ -59,53 +62,56 @@ public class Links { } } - -public static void openOTRS() { - + + 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= 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; } - ->>>>>>> 5d24cdec4d239f473ee2359493ab47d1ef3273dd + } diff --git a/Dozentenmodulserver/bin/util/XMLCreator.class b/Dozentenmodulserver/bin/util/XMLCreator.class index cfdf6004..0c9c6d45 100644 Binary files a/Dozentenmodulserver/bin/util/XMLCreator.class and b/Dozentenmodulserver/bin/util/XMLCreator.class differ -- cgit v1.2.3-55-g7522