Revision 0a85a75b

b/src/gr/grnet/pithos/web/client/Const.java
61 61
    public static final String TXT_SHARE_FOLDER = "Share Folder";
62 62
    public static final String TXT_PRIVATE_LINK = "Private Link";
63 63
    public static final String TXT_PUBLIC_LINK = "Public Link";
64
    public static final String TXT_SHARED_WITH_ME = "Shared with me";
64 65

  
65 66
    public static final String HTML_NBSP = " ";
66 67

  
b/src/gr/grnet/pithos/web/client/Pithos.java
287 287
    private String userID = null;
288 288

  
289 289
    /**
290
     * Hold mappings from user UUIDs to emails and vice-versa.
290
     * Holds mappings from user UUIDs to emails and vice-versa.
291 291
     */
292 292
    private UserCatalogs userCatalogs = new UserCatalogs();
293 293

  
......
1302 1302
        });
1303 1303
        selectionModels.add(otherSharedTreeSelectionModel);
1304 1304
        otherSharedTreeViewModel = new OtherSharedTreeViewModel(Pithos.this, otherSharedTreeSelectionModel);
1305
        // #3784 We show it empty...
1306
        otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel);
1307
        trees.insert(otherSharedTreeView, 1);
1308

  
1305 1309
        LOG("Pithos::createOtherSharedTree(), initializing otherSharedTreeViewModel with a callback");
1306 1310
        otherSharedTreeViewModel.initialize(new Command() {
1307 1311
            @Override
1308 1312
            public void execute() {
1313
                // #3784 ... then remove the empty stuff and add a new view with the populated model
1314
                trees.remove(otherSharedTreeView);
1315

  
1309 1316
                otherSharedTreeView = new OtherSharedTreeView(otherSharedTreeViewModel);
1310 1317
                trees.insert(otherSharedTreeView, 1);
1311 1318
                treeViews.add(otherSharedTreeView);
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeView.java
35 35

  
36 36
package gr.grnet.pithos.web.client.othersharedtree;
37 37

  
38
import gr.grnet.pithos.web.client.Const;
38 39
import gr.grnet.pithos.web.client.FolderContextMenu;
39 40
import gr.grnet.pithos.web.client.PithosDisclosurePanel;
40 41
import gr.grnet.pithos.web.client.TreeView;
......
156 157
    public OtherSharedTreeView(OtherSharedTreeViewModel viewModel) {
157 158
        this.model = viewModel;
158 159
        
159
        PithosDisclosurePanel panel = new PithosDisclosurePanel((Resources) GWT.create(Resources.class), "Shared with me", false); 
160
        PithosDisclosurePanel panel = new PithosDisclosurePanel((Resources) GWT.create(Resources.class), Const.TXT_SHARED_WITH_ME, false);
160 161
        /*
161 162
         * Create the tree using the model. We use <code>null</code> as the default
162 163
         * value of the root node. The default value will be passed to

Also available in: Unified diff