Workspace: problem on breadcrumb

https://support.d4science.org/issues/1804
This issue has been fixed.

Updated pom version at 6.10.1

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@121818 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-12-14 14:12:22 +00:00
parent feb8e0647f
commit c823901d9f
2 changed files with 7 additions and 5 deletions

View File

@ -10,7 +10,7 @@
<groupId>org.gcube.portlets.user</groupId>
<artifactId>workspace-tree-widget</artifactId>
<version>6.10.0-SNAPSHOT</version>
<version>6.10.1-SNAPSHOT</version>
<name>gCube Workspace Tree Widget</name>
<description>
gCube Workspace Tree Widget.

View File

@ -1754,6 +1754,7 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
}else if(event instanceof SubTreeLoadedEvent){
GWT.log("SubTreeLoadedEvent...");
SubTreeLoadedEvent subTreeEvent = (SubTreeLoadedEvent) event;
sub.setParentItemSelected(subTreeEvent.getPathParentsList());
@ -2377,10 +2378,11 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
});
}
/**
* Deselecte current selection.
* Deselect current selection.
*/
private void deselecteCurrentSelection(){
private void deselectCurrentSelection(){
FileModel fileModelSelected = explorerPanel.getAsycTreePanel().getSelectedFileModelItem();
if(fileModelSelected!=null)
explorerPanel.getAsycTreePanel().deselectItem(fileModelSelected);
@ -2522,7 +2524,7 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
if(fileModel!=null){
if(explorerPanel.getAsycTreePanel().isSearch())
deselecteCurrentSelection();
deselectCurrentSelection();
if(fileModel.isDirectory()){
if(fileModel.getParentFileModel()!=null)
@ -2576,7 +2578,7 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
loadItemFromWorkspace(itemIdentifier);
}
else{
deselecteCurrentSelection();
deselectCurrentSelection();
this.explorerPanel.getAsycTreePanel().selectItem(itemIdentifier); //select item
}
}