bug fixed for the tree on elements selection
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/databases-manager-portlet@98556 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
42713e33d5
commit
b1020383fc
|
@ -205,9 +205,13 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
// selected item has not loaded
|
||||
if ((numChildrenFolder == 0)
|
||||
&& (data.get(0).isLoaded() != true)) {
|
||||
|
||||
|
||||
|
||||
|
||||
treePanel.disableEvents(true);
|
||||
// to mask the tree panel
|
||||
treePanel.mask("Loading", "x-mask-loading");
|
||||
|
||||
// selectedItem.setIsSchema(false);
|
||||
|
||||
switch (treeDepthSelectedItem) {
|
||||
|
@ -218,7 +222,10 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
|
||||
case 2: // the selected item is the resource
|
||||
// selectedItem.setIsSchema(false);
|
||||
loadDBInfo(data.get(0));
|
||||
|
||||
|
||||
loadDBInfo(data.get(0), treePanel);
|
||||
// loadDBInfo(data.get(0));
|
||||
break;
|
||||
|
||||
case 3: // the selected item is a database
|
||||
|
@ -377,7 +384,7 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
}
|
||||
|
||||
// load information fo a database
|
||||
private void loadDBInfo(final FileModel element) {
|
||||
private void loadDBInfo(final FileModel element, final TreePanel<FileModel> tree) {
|
||||
|
||||
// System.out.println("Start RPC - getDBInfo");
|
||||
|
||||
|
@ -406,6 +413,10 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
|
||||
if (treePanel.isMasked())
|
||||
treePanel.unmask();
|
||||
|
||||
|
||||
|
||||
tree.enableEvents(true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -570,6 +581,10 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
|
||||
if (treePanel.isMasked())
|
||||
treePanel.unmask();
|
||||
|
||||
tree.enable();
|
||||
|
||||
tree.enableEvents(true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -622,6 +637,8 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
|
||||
if (treePanel.isMasked())
|
||||
treePanel.unmask();
|
||||
|
||||
treePanel.enableEvents(true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -674,6 +691,8 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
|
||||
if (treePanel.isMasked())
|
||||
treePanel.unmask();
|
||||
|
||||
treePanel.enableEvents(true);
|
||||
|
||||
}
|
||||
});
|
||||
|
@ -827,6 +846,8 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
|
||||
if (treePanel.isMasked())
|
||||
treePanel.unmask();
|
||||
|
||||
treePanel.enableEvents(true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -890,6 +911,8 @@ public class GxtTreePanel extends LayoutContainer {
|
|||
|
||||
if (treePanel.isMasked())
|
||||
treePanel.unmask();
|
||||
|
||||
treePanel.enableEvents(true);
|
||||
|
||||
}
|
||||
});
|
||||
|
|
|
@ -270,11 +270,18 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
// System.out.println(inputParameters.get(i).getName());
|
||||
|
||||
rootLogger.log(Level.INFO, inputParameters.get(i).getName());
|
||||
|
||||
|
||||
}
|
||||
|
||||
inputParameters.get(0).setValue(dataInput.get("ResourceName"));
|
||||
inputParameters.get(1).setValue(dataInput.get("DatabaseName"));
|
||||
|
||||
rootLogger.log(Level.INFO, "ResourceName: " + dataInput.get("ResourceName"));
|
||||
|
||||
rootLogger.log(Level.INFO, "DatabaseName: " + dataInput.get("DatabaseName"));
|
||||
|
||||
|
||||
|
||||
|
||||
String computationId = startComputation(algorithmId, inputParameters);
|
||||
|
||||
|
@ -371,6 +378,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements
|
|||
// System.out.println("output data retrieved");
|
||||
|
||||
rootLogger.log(Level.SEVERE, "output data retrieved");
|
||||
rootLogger.log(Level.SEVERE, "output data size: " + outputMap.size());
|
||||
|
||||
// System.out.println("size outputMap: " + outputMap.size());
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<inherits name='com.extjs.gxt.ui.GXT' />
|
||||
|
||||
<!-- <inherits name="com.google.gwt.logging.Logging"/> -->
|
||||
<inherits name="com.google.gwt.logging.Logging"/>
|
||||
|
||||
<!-- We need the JUnit module in the main module, -->
|
||||
<!-- otherwise eclipse complains (Google plugin bug?) -->
|
||||
|
@ -27,8 +27,8 @@
|
|||
<source path='client' />
|
||||
<source path='shared' />
|
||||
|
||||
<!-- <set-property name="gwt.logging.logLevel" value="SEVERE"/> -->
|
||||
<!-- <set-property name="gwt.logging.logLevel" value="INFO"/> -->
|
||||
<!-- <set-property name="gwt.logging.enabled" value="TRUE"/> -->
|
||||
<set-property name="gwt.logging.logLevel" value="SEVERE"/>
|
||||
<set-property name="gwt.logging.logLevel" value="INFO"/>
|
||||
<set-property name="gwt.logging.enabled" value="TRUE"/>
|
||||
|
||||
</module>
|
||||
|
|
Loading…
Reference in New Issue