exception managed in loadResources, loadDBInfo, loadSchema e loadTables methods for GxtTreePanel class through an alert
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@98316 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a4f588212d
commit
0b85126f89
|
@ -22,11 +22,15 @@ import org.gcube.portlets.user.databasesmanager.client.events.SelectedItemEvent;
|
||||||
import com.extjs.gxt.ui.client.Style.SelectionMode;
|
import com.extjs.gxt.ui.client.Style.SelectionMode;
|
||||||
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
import com.extjs.gxt.ui.client.event.ComponentEvent;
|
||||||
import com.extjs.gxt.ui.client.event.EventType;
|
import com.extjs.gxt.ui.client.event.EventType;
|
||||||
|
import com.extjs.gxt.ui.client.event.Listener;
|
||||||
|
import com.extjs.gxt.ui.client.event.MessageBoxEvent;
|
||||||
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
|
||||||
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
|
||||||
import com.extjs.gxt.ui.client.event.TreePanelEvent;
|
import com.extjs.gxt.ui.client.event.TreePanelEvent;
|
||||||
import com.extjs.gxt.ui.client.store.TreeStore;
|
import com.extjs.gxt.ui.client.store.TreeStore;
|
||||||
|
import com.extjs.gxt.ui.client.widget.Dialog;
|
||||||
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
import com.extjs.gxt.ui.client.widget.LayoutContainer;
|
||||||
|
import com.extjs.gxt.ui.client.widget.MessageBox;
|
||||||
import com.extjs.gxt.ui.client.widget.layout.FlowData;
|
import com.extjs.gxt.ui.client.widget.layout.FlowData;
|
||||||
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
|
||||||
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel;
|
import com.extjs.gxt.ui.client.widget.treepanel.TreePanel;
|
||||||
|
@ -273,6 +277,8 @@ public class GxtTreePanel extends LayoutContainer {
|
||||||
// rootLogger.log(Level.SEVERE, "GxtTreePanel-> FAILURE RPC getResource");
|
// rootLogger.log(Level.SEVERE, "GxtTreePanel-> FAILURE RPC getResource");
|
||||||
|
|
||||||
rootLogger.log(Level.SEVERE, "FAILURE RPC getResource");
|
rootLogger.log(Level.SEVERE, "FAILURE RPC getResource");
|
||||||
|
|
||||||
|
MessageBox.alert("Error ","<br/>Message:"+caught.getMessage(), null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,6 +348,9 @@ public class GxtTreePanel extends LayoutContainer {
|
||||||
// rootLogger.log(Level.SEVERE, "GxtTreePanel-> FAILURE RPC getDBInfo");
|
// rootLogger.log(Level.SEVERE, "GxtTreePanel-> FAILURE RPC getDBInfo");
|
||||||
|
|
||||||
rootLogger.log(Level.SEVERE, "FAILURE RPC getDBInfo");
|
rootLogger.log(Level.SEVERE, "FAILURE RPC getDBInfo");
|
||||||
|
|
||||||
|
MessageBox.alert("Error ","<br/>Message:"+caught.getMessage(), null);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -509,6 +518,9 @@ public class GxtTreePanel extends LayoutContainer {
|
||||||
// rootLogger.log(Level.SEVERE, "GxtTreePanel-> FAILURE RPC getDBSchema");
|
// rootLogger.log(Level.SEVERE, "GxtTreePanel-> FAILURE RPC getDBSchema");
|
||||||
|
|
||||||
rootLogger.log(Level.SEVERE, "FAILURE RPC getDBSchema");
|
rootLogger.log(Level.SEVERE, "FAILURE RPC getDBSchema");
|
||||||
|
|
||||||
|
MessageBox.alert("Error ","<br/>Message:"+caught.getMessage(), null);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -595,6 +607,8 @@ public class GxtTreePanel extends LayoutContainer {
|
||||||
Window.alert(caught.getMessage());
|
Window.alert(caught.getMessage());
|
||||||
// System.out.println("FAILURE");
|
// System.out.println("FAILURE");
|
||||||
rootLogger.log(Level.SEVERE, "FAILURE RPC getTables");
|
rootLogger.log(Level.SEVERE, "FAILURE RPC getTables");
|
||||||
|
|
||||||
|
MessageBox.alert("Error ","<br/>Message:"+caught.getMessage(), null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue