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 org.gcube.portlets.user.workspace.client.resources.Resources;
|
||||||
|
|
||||||
import com.extjs.gxt.ui.client.data.BaseModelData;
|
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.AbstractImagePrototype;
|
||||||
import com.google.gwt.user.client.ui.Image;
|
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?
|
}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())
|
if(this.isVreFolder())
|
||||||
absImgPr = Resources.getIconVREFolder();
|
absImgPr = Resources.getIconVREFolder();
|
||||||
|
|
|
@ -455,10 +455,9 @@ public class DialogGetInfo extends Dialog {
|
||||||
public void onSuccess(List<FileModel> result) {
|
public void onSuccess(List<FileModel> result) {
|
||||||
|
|
||||||
String location="";
|
String location="";
|
||||||
|
|
||||||
if(result!=null){
|
if(result!=null){
|
||||||
|
|
||||||
for (FileModel fileModel : result) {
|
for (FileModel fileModel : result) {
|
||||||
|
if(fileModel!=null)
|
||||||
location+="/"+fileModel.getName();
|
location+="/"+fileModel.getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1988,7 +1988,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
FolderModel parent = null;
|
FolderModel parent = null;
|
||||||
if(includeItemAsParent){
|
if(includeItemAsParent){
|
||||||
WorkspaceFolder wsFolder1 =(WorkspaceFolder) workspace.getItem(itemIdentifier); //root
|
WorkspaceFolder wsFolder1 =(WorkspaceFolder) workspace.getItem(itemIdentifier); //root
|
||||||
parent =builder.buildGXTFolderModelItemHandleSpecialFolder(wsFolder1, null, nameSpecialFolder);
|
parent = builder.buildGXTFolderModelItemHandleSpecialFolder(wsFolder1, null, nameSpecialFolder);
|
||||||
}
|
}
|
||||||
listParents.add(root);
|
listParents.add(root);
|
||||||
if(parent!=null)
|
if(parent!=null)
|
||||||
|
|
Loading…
Reference in New Issue