Exemplo n.º 1
0
 public ExchangeUser getExchangeUser() {
   ExchangeUser user = PropertiesFactory.eINSTANCE.createExchangeUser();
   if (project.getAuthor() != null) {
     IPreferenceStore prefStore = PlatformUI.getPreferenceStore();
     String connectionEmail = project.getAuthor().getLogin();
     String string = prefStore.getString(connectionEmail);
     if (string != null) {
       String[] split = string.split(":");
       if (split.length == 3) {
         user.setLogin(split[0]);
         user.setUsername(split[1]);
         user.setPassword(split[2]);
       } else {
         user.setLogin("");
         user.setUsername("");
         user.setPassword("");
       }
     }
   }
   return user;
 }
Exemplo n.º 2
0
 /**
  * Getter for author.
  *
  * @return the author
  */
 public User getAuthor() {
   return project.getAuthor();
 }