Revision c3e119f5
b/src/gr/grnet/pithos/web/client/FileList.java | ||
---|---|---|
35 | 35 |
|
36 | 36 |
package gr.grnet.pithos.web.client; |
37 | 37 |
|
38 |
import gr.grnet.pithos.web.client.foldertree.File; |
|
39 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
|
40 |
import gr.grnet.pithos.web.client.foldertree.FolderTreeView; |
|
41 |
|
|
42 |
import java.util.ArrayList; |
|
43 |
import java.util.Collections; |
|
44 |
import java.util.Comparator; |
|
45 |
import java.util.Iterator; |
|
46 |
import java.util.List; |
|
47 |
import java.util.Set; |
|
48 |
|
|
49 | 38 |
import com.google.gwt.cell.client.Cell.Context; |
50 | 39 |
import com.google.gwt.cell.client.ImageResourceCell; |
51 | 40 |
import com.google.gwt.cell.client.SafeHtmlCell; |
... | ... | |
73 | 62 |
import com.google.gwt.view.client.MultiSelectionModel; |
74 | 63 |
import com.google.gwt.view.client.ProvidesKey; |
75 | 64 |
import com.google.gwt.view.client.SelectionChangeEvent; |
65 |
import gr.grnet.pithos.web.client.foldertree.File; |
|
66 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
|
67 |
import gr.grnet.pithos.web.client.foldertree.FolderTreeView; |
|
68 |
|
|
69 |
import java.util.*; |
|
76 | 70 |
|
77 | 71 |
/** |
78 | 72 |
* A composite that displays the list of files in a particular folder. |
... | ... | |
415 | 409 |
if (DOM.eventGetType(event) == Event.ONDBLCLICK) |
416 | 410 |
if (getSelectedFiles().size() == 1) { |
417 | 411 |
File file = getSelectedFiles().get(0); |
418 |
Window.open(Pithos.getStorageAPIURL() + file.getOwnerID() + file.getUri(), "_blank", "");
|
|
412 |
Window.open(Pithos.getStorageViewURL() + file.getOwnerID() + file.getUri(), "_blank", "");
|
|
419 | 413 |
event.preventDefault(); |
420 | 414 |
return; |
421 | 415 |
} |
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
130 | 130 |
|
131 | 131 |
LOG("Computed STORAGE_API_URL = ", STORAGE_API_URL); |
132 | 132 |
} |
133 |
|
|
134 |
public static final String STORAGE_VIEW_URL; |
|
135 |
static { |
|
136 |
final String viewURL = getFromOtherPropertiesOrNull("STORAGE_VIEW_URL"); |
|
137 |
if(viewURL != null) { |
|
138 |
STORAGE_VIEW_URL = viewURL; |
|
139 |
} |
|
140 |
else { |
|
141 |
STORAGE_VIEW_URL = STORAGE_API_URL; |
|
142 |
} |
|
143 |
|
|
144 |
LOG("Computed STORAGE_VIEW_URL = ", STORAGE_VIEW_URL); |
|
145 |
} |
|
146 |
|
|
133 | 147 |
public static final String USER_CATALOGS_API_URL; |
134 | 148 |
static { |
135 | 149 |
if(OTHERPROPS_USER_CATALOGS_API_URL != null) { |
... | ... | |
1083 | 1097 |
return STORAGE_API_URL; |
1084 | 1098 |
} |
1085 | 1099 |
|
1100 |
public static String getStorageViewURL() { |
|
1101 |
return STORAGE_VIEW_URL; |
|
1102 |
} |
|
1103 |
|
|
1086 | 1104 |
public static String getUserCatalogsURL() { |
1087 | 1105 |
return USER_CATALOGS_API_URL; |
1088 | 1106 |
} |
Also available in: Unified diff