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;
|
||||||
|
@ -274,6 +278,8 @@ public class GxtTreePanel extends LayoutContainer {
|
||||||
|
|
||||||
rootLogger.log(Level.SEVERE, "FAILURE RPC getResource");
|
rootLogger.log(Level.SEVERE, "FAILURE RPC getResource");
|
||||||
|
|
||||||
|
MessageBox.alert("Error ","<br/>Message:"+caught.getMessage(), null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -343,6 +349,9 @@ public class GxtTreePanel extends LayoutContainer {
|
||||||
|
|
||||||
rootLogger.log(Level.SEVERE, "FAILURE RPC getDBInfo");
|
rootLogger.log(Level.SEVERE, "FAILURE RPC getDBInfo");
|
||||||
|
|
||||||
|
MessageBox.alert("Error ","<br/>Message:"+caught.getMessage(), null);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -510,6 +519,9 @@ public class GxtTreePanel extends LayoutContainer {
|
||||||
|
|
||||||
rootLogger.log(Level.SEVERE, "FAILURE RPC getDBSchema");
|
rootLogger.log(Level.SEVERE, "FAILURE RPC getDBSchema");
|
||||||
|
|
||||||
|
MessageBox.alert("Error ","<br/>Message:"+caught.getMessage(), null);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -596,6 +608,8 @@ public class GxtTreePanel extends LayoutContainer {
|
||||||
// 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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue