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; }
/** * Getter for author. * * @return the author */ public User getAuthor() { return project.getAuthor(); }