forked from thomaskelder/pathvisio-wikipathways-client
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added some progress bars to different situations and updated some err…
…or messages
- Loading branch information
Showing
10 changed files
with
166 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
import javax.swing.JTextField; | ||
import javax.xml.rpc.ServiceException; | ||
|
||
import org.pathvisio.core.debug.Logger; | ||
import org.pathvisio.wpclient.WikiPathwaysClientPlugin; | ||
import org.pathvisio.wpclient.validators.Validator; | ||
|
||
|
@@ -59,7 +60,7 @@ public LoginPanel(WikiPathwaysClientPlugin plugin) { | |
loggedin = false; | ||
} | ||
|
||
public void login() throws RemoteException, MalformedURLException, ServiceException { | ||
public boolean login() throws RemoteException, MalformedURLException, ServiceException { | ||
try { | ||
username = UserField.getText(); | ||
password = new String(PassField.getPassword()); | ||
|
@@ -76,17 +77,20 @@ public void login() throws RemoteException, MalformedURLException, ServiceExcept | |
JOptionPane.ERROR_MESSAGE); | ||
username = ""; | ||
password = ""; | ||
Logger.log.error("Wrong username. \n"); | ||
return false; | ||
} | ||
} catch (Exception ex) { | ||
System.out.println(ex.getMessage()); | ||
JOptionPane | ||
.showMessageDialog( | ||
JOptionPane.showMessageDialog( | ||
plugin.getDesktop().getFrame(), | ||
"You do not have permissions. \n Please Send an email to:\n [email protected]", | ||
"WikiPathways Login ERROR", | ||
"Login was unsuccessful. Please check your username and password.\n Do you have webservice write permissions? If not, please contact the develoeprs:\n [email protected]", | ||
"WikiPathways Login Error", | ||
JOptionPane.ERROR_MESSAGE); | ||
Logger.log.error("Login was unsuccessfull\n" + ex.getStackTrace() + "\n"); | ||
username = ""; | ||
password = ""; | ||
return false; | ||
} | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters