Revision e9b8a745 src/gr/grnet/pithos/web/client/FileVersionsDialog.java
b/src/gr/grnet/pithos/web/client/FileVersionsDialog.java | ||
---|---|---|
54 | 54 |
import com.google.gwt.user.client.ui.CheckBox; |
55 | 55 |
import com.google.gwt.user.client.ui.FocusPanel; |
56 | 56 |
import com.google.gwt.user.client.ui.HasHorizontalAlignment; |
57 |
import com.google.gwt.user.client.ui.PopupPanel; |
|
57 | 58 |
import com.google.gwt.user.client.ui.VerticalPanel; |
58 | 59 |
|
59 | 60 |
/** |
... | ... | |
122 | 123 |
inner.addStyleName("inner"); |
123 | 124 |
|
124 | 125 |
fetchVersions(); |
125 |
|
|
126 |
outer.add(inner);
|
|
126 |
|
|
127 |
outer.add(inner);
|
|
127 | 128 |
|
128 | 129 |
// Create the 'OK' button, along with a listener that hides the dialog |
129 | 130 |
// when the button is clicked. |
... | ... | |
143 | 144 |
setWidget(outer); |
144 | 145 |
} |
145 | 146 |
|
147 |
private void doCenter() { |
|
148 |
super.center(); |
|
149 |
} |
|
150 |
|
|
151 |
@Override |
|
152 |
public void center() { |
|
153 |
fetchVersions(); |
|
154 |
} |
|
155 |
|
|
146 | 156 |
protected void fetchVersions() { |
147 | 157 |
String path = file.getUri() + "?format=json&version=list"; |
148 | 158 |
GetRequest<FileVersions> getVersions = new GetRequest<FileVersions>(FileVersions.class, app.getApiPath(), file.getOwner(), path) { |
... | ... | |
150 | 160 |
@Override |
151 | 161 |
public void onSuccess(FileVersions _result) { |
152 | 162 |
inner.add(createVersionPanel(_result.getVersions())); |
163 |
doCenter(); |
|
153 | 164 |
} |
154 | 165 |
|
155 | 166 |
@Override |
Also available in: Unified diff