else if(button.equals(REFRESH_BTN)) {
doRefresh();
} else if (button.equals(SHOW_INFO_BTN)) {
doShowAbout();
} else if (button.equals(CONNECTION_PICKER_BTN)) {
final PaloSuiteViewCreationDialog dia =
new PaloSuiteViewCreationDialog();
dia.addButtonListener(ViewImportDialog.BUTTON_OK,
new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
final XView[] xViews = dia.getSelectedViews();
if (xViews != null && xViews.length == 1) {
final String extId = view.getExternalId();
view.setExternalId("_");
((Workbench) Registry.get(Workbench.ID)).showWaitCursor(constants.applyingModifications());
String sessionId = ((Workbench)Registry.get(Workbench.ID)).getUser().getSessionId();
WPaloCubeViewServiceProvider.getInstance().saveView(sessionId,
view, new Callback<XViewModel>(){
public void onSuccess(XViewModel arg0) {
((Workbench) Registry.get(Workbench.ID)).hideWaitCursor();
xViews[0].setExternalId(extId);
modifyView(xViews[0], extId);
}
});
}
}
});
dia.show();
}
}