Fixed Bug #5218
Added Workspace root to the Breadcrumb git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@132173 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
43be5a4caa
commit
41de6d9141
|
@ -9,7 +9,6 @@ import org.gcube.portlets.user.workspace.client.interfaces.GXTFolderItemTypeEnum
|
|||
import org.gcube.portlets.user.workspace.client.resources.Resources;
|
||||
|
||||
import com.extjs.gxt.ui.client.data.BaseModelData;
|
||||
import com.google.gwt.core.shared.GWT;
|
||||
import com.google.gwt.user.client.ui.AbstractImagePrototype;
|
||||
import com.google.gwt.user.client.ui.Image;
|
||||
|
||||
|
@ -294,7 +293,7 @@ public class FileModel extends BaseModelData implements Serializable {
|
|||
|
||||
}else if(this.isShared()){ //IS A SHARED FOLDER?
|
||||
|
||||
GWT.log("setting icon "+this.getName()+" is shared: "+this.isShared() + ", this.isVreFolder() "+this.isVreFolder() +", this.isShareable() "+this.isShareable());
|
||||
//GWT.log("setting icon "+this.getName()+" is shared: "+this.isShared() + ", this.isVreFolder() "+this.isVreFolder() +", this.isShareable() "+this.isShareable());
|
||||
|
||||
if(this.isVreFolder())
|
||||
absImgPr = Resources.getIconVREFolder();
|
||||
|
|
|
@ -455,11 +455,10 @@ public class DialogGetInfo extends Dialog {
|
|||
public void onSuccess(List<FileModel> result) {
|
||||
|
||||
String location="";
|
||||
|
||||
if(result!=null){
|
||||
|
||||
for (FileModel fileModel : result) {
|
||||
location+="/"+fileModel.getName();
|
||||
if(fileModel!=null)
|
||||
location+="/"+fileModel.getName();
|
||||
}
|
||||
}
|
||||
if(location.isEmpty())
|
||||
|
|
|
@ -1988,7 +1988,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
FolderModel parent = null;
|
||||
if(includeItemAsParent){
|
||||
WorkspaceFolder wsFolder1 =(WorkspaceFolder) workspace.getItem(itemIdentifier); //root
|
||||
parent =builder.buildGXTFolderModelItemHandleSpecialFolder(wsFolder1, null, nameSpecialFolder);
|
||||
parent = builder.buildGXTFolderModelItemHandleSpecialFolder(wsFolder1, null, nameSpecialFolder);
|
||||
}
|
||||
listParents.add(root);
|
||||
if(parent!=null)
|
||||
|
|
Loading…
Reference in New Issue