public static final String TXT_SHARE_FOLDER = "Share Folder";
public static final String TXT_PRIVATE_LINK = "Private Link";
public static final String TXT_PUBLIC_LINK = "Public Link";
+ public static final String TXT_SHARED_WITH_ME = "Shared with me";
public static final String HTML_NBSP = " ";
private String userID = null;
/**
- * Hold mappings from user UUIDs to emails and vice-versa.
+ * Holds mappings from user UUIDs to emails and vice-versa.
*/
private UserCatalogs userCatalogs = new UserCatalogs();
});
selectionModels.add(otherSharedTreeSelectionModel);
otherSharedTreeViewModel = new OtherSharedTreeViewModel(Pithos.this, otherSharedTreeSelectionModel);
+ // #3784 We show it empty...
+ otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel);
+ trees.insert(otherSharedTreeView, 1);
+
LOG("Pithos::createOtherSharedTree(), initializing otherSharedTreeViewModel with a callback");
otherSharedTreeViewModel.initialize(new Command() {
@Override
public void execute() {
+ // #3784 ... then remove the empty stuff and add a new view with the populated model
+ trees.remove(otherSharedTreeView);
+
otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel);
trees.insert(otherSharedTreeView, 1);
treeViews.add(otherSharedTreeView);
package gr.grnet.pithos.web.client.othersharedtree;
+import gr.grnet.pithos.web.client.Const;
import gr.grnet.pithos.web.client.FolderContextMenu;
import gr.grnet.pithos.web.client.PithosDisclosurePanel;
import gr.grnet.pithos.web.client.TreeView;
public OtherSharedTreeView(OtherSharedTreeViewModel viewModel) {
this.model = viewModel;
- PithosDisclosurePanel panel = new PithosDisclosurePanel((Resources) GWT.create(Resources.class), "Shared with me", false);
+ PithosDisclosurePanel panel = new PithosDisclosurePanel((Resources) GWT.create(Resources.class), Const.TXT_SHARED_WITH_ME, false);
/*
* Create the tree using the model. We use <code>null</code> as the default
* value of the root node. The default value will be passed to