putValue(SMALL_ICON, ImageProvider.get("oauth", "oauth"));
}
@Override
public void actionPerformed(ActionEvent arg0) {
OAuthAuthorizationWizard wizard = new OAuthAuthorizationWizard(
OAuthAuthenticationPreferencesPanel.this,
apiUrl
);
wizard.setVisible(true);
if (wizard.isCanceled()) return;
OAuthAccessTokenHolder holder = OAuthAccessTokenHolder.getInstance();
holder.setAccessToken(wizard.getAccessToken());
holder.setSaveToPreferences(wizard.isSaveAccessTokenToPreferences());
pnlAdvancedProperties.setAdvancedParameters(wizard.getOAuthParameters());
refreshView();
}