MessageBox Info removed for TablesList

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@98660 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-07-15 15:56:11 +00:00
parent 6d73c91b9b
commit 93158b8bdc
1 changed files with 41 additions and 34 deletions

View File

@ -546,6 +546,8 @@ public class GxtBorderLayoutPanel extends ContentPanel {
rootLogger.log(Level.INFO, "DatabaseName: " + database); rootLogger.log(Level.INFO, "DatabaseName: " + database);
rootLogger.log(Level.INFO, "SchemaName: " + schema); rootLogger.log(Level.INFO, "SchemaName: " + schema);
tablesListNotNull = false;
// FileModel schema; // FileModel schema;
// FileModel database; // FileModel database;
// FileModel resource; // FileModel resource;
@ -619,7 +621,7 @@ public class GxtBorderLayoutPanel extends ContentPanel {
// // selectedItem.getName()); // // selectedItem.getName());
// } // }
tablesListNotNull = false;
// create RpcProxy object to use the load configuration // create RpcProxy object to use the load configuration
@ -1067,46 +1069,51 @@ public class GxtBorderLayoutPanel extends ContentPanel {
Button cancel = (Button) tablesLoaded.getButtonBar().getWidget(1); Button cancel = (Button) tablesLoaded.getButtonBar().getWidget(1);
rootLogger.log(Level.INFO, "button: " + cancel.getText()); rootLogger.log(Level.INFO, "button: " + cancel.getText());
//listener for buttons
ok.addSelectionListener(new SelectionListener<ButtonEvent>() { ok.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override @Override
public void componentSelected(ButtonEvent ce) { public void componentSelected(ButtonEvent ce) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
Listener<MessageBoxEvent> l = new Listener<MessageBoxEvent>() { //fire event
@Override
public void handleEvent(MessageBoxEvent be) {
// TODO Auto-generated method stub
// rootLogger.log(Level.INFO, "button clicked");
eventBus.fireEvent(new SelectedTableEvent()); eventBus.fireEvent(new SelectedTableEvent());
} // Listener<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
}; //
// @Override
if (selectedTable != null) { // public void handleEvent(MessageBoxEvent be) {
// // TODO Auto-generated method stub
// MessageBox.alert("Information", //
// "The table "+selectedTable+ " was selected", // // rootLogger.log(Level.INFO, "button clicked");
// null); //
MessageBox.info("Information", "The table " + selectedTable
+ " was selected", l);
// eventBus.fireEvent(new SelectedTableEvent()); // eventBus.fireEvent(new SelectedTableEvent());
//
// }
// };
} else { // if (selectedTable != null) {
//
// MessageBox.alert("Warning", // // MessageBox.alert("Information",
// "No table "+selectedTable+ " was selected", // // "The table "+selectedTable+ " was selected",
// // null);
//
// MessageBox.info("Information", "The table " + selectedTable
// + " was selected", l);
//
// // eventBus.fireEvent(new SelectedTableEvent());
//
// } else {
//
// // MessageBox.alert("Warning",
// // "No table "+selectedTable+ " was selected",
// // null);
//
// MessageBox.info("Information", "No table was selected",
// null); // null);
//
MessageBox.info("Information", "No table was selected", // }
null);
}
} }
}); });