146147148149150151152153
herokuApplicationService.update(getToken()); } } public void reset() { final Credentials credentials = herokuApplicationService.getCredentials(); this.tokenField.setText(credentials != null ? credentials.getToken() : null); }
333435363738394041
// todo move to config public Credentials login(final String token) { if (!validateToken(token)) { showCredentialsError(); return new Credentials(null); } return new Credentials(token); }