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:
parent
6d73c91b9b
commit
93158b8bdc
|
@ -545,6 +545,8 @@ public class GxtBorderLayoutPanel extends ContentPanel {
|
||||||
rootLogger.log(Level.INFO, "ResourceName: " + resource);
|
rootLogger.log(Level.INFO, "ResourceName: " + resource);
|
||||||
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;
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -1066,47 +1068,52 @@ 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
|
||||||
|
|
||||||
|
//fire event
|
||||||
|
eventBus.fireEvent(new SelectedTableEvent());
|
||||||
|
|
||||||
Listener<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
|
// Listener<MessageBoxEvent> l = new Listener<MessageBoxEvent>() {
|
||||||
|
//
|
||||||
|
// @Override
|
||||||
|
// public void handleEvent(MessageBoxEvent be) {
|
||||||
|
// // TODO Auto-generated method stub
|
||||||
|
//
|
||||||
|
// // rootLogger.log(Level.INFO, "button clicked");
|
||||||
|
//
|
||||||
|
// eventBus.fireEvent(new SelectedTableEvent());
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
|
||||||
@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);
|
||||||
|
//
|
||||||
eventBus.fireEvent(new SelectedTableEvent());
|
// MessageBox.info("Information", "The table " + selectedTable
|
||||||
|
// + " was selected", l);
|
||||||
}
|
//
|
||||||
};
|
// // eventBus.fireEvent(new SelectedTableEvent());
|
||||||
|
//
|
||||||
if (selectedTable != null) {
|
// } else {
|
||||||
|
//
|
||||||
// MessageBox.alert("Information",
|
// // MessageBox.alert("Warning",
|
||||||
// "The table "+selectedTable+ " was selected",
|
// // "No table "+selectedTable+ " was selected",
|
||||||
// null);
|
// // null);
|
||||||
|
//
|
||||||
MessageBox.info("Information", "The table " + selectedTable
|
// MessageBox.info("Information", "No table was selected",
|
||||||
+ " was selected", l);
|
// null);
|
||||||
|
//
|
||||||
// eventBus.fireEvent(new SelectedTableEvent());
|
// }
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
// MessageBox.alert("Warning",
|
|
||||||
// "No table "+selectedTable+ " was selected",
|
|
||||||
// null);
|
|
||||||
|
|
||||||
MessageBox.info("Information", "No table was selected",
|
|
||||||
null);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue