merged with branch

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@86490 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-12-03 13:21:46 +00:00
parent f6b016386a
commit eab4559c2e
2 changed files with 40 additions and 39 deletions

View File

@ -63,44 +63,44 @@ public class PollingWorkspace {
public static void pollBulkCreator(int milliseconds){ public static void pollBulkCreator(int milliseconds){
Timer timer = new Timer() { // Timer timer = new Timer() {
@Override // @Override
public void run() // public void run()
{ // {
System.out.println("New rpc getListFolderBulkCreator..........................");
rpcWorkspaceService.getListFolderBulkCreator(new AsyncCallback<List<BulkCreatorModel>>() {
@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
}
@Override
public void onSuccess(List<BulkCreatorModel> result) {
if(result.size()>0){
// String message = "bulk creator";
// //
// if(result.size()>1) // System.out.println("New rpc getListFolderBulkCreator..........................");
// message = "bulks creators";
// //
// new InfoDisplay("Bulk Creator", "Found " + result.size() + " new " +message); // rpcWorkspaceService.getListFolderBulkCreator(new AsyncCallback<List<BulkCreatorModel>>() {
//
AppControllerExplorer.getEventBus().fireEvent(new BulkCreatorEvent(result)); // @Override
// BulkCreatorWindow.getInstance().addProgressBar(result); // public void onFailure(Throwable caught) {
// // TODO Auto-generated method stub
// cancel(); //
} // }
//
// @Override
} // public void onSuccess(List<BulkCreatorModel> result) {
}); // if(result.size()>0){
} //
}; //// String message = "bulk creator";
////
timer.scheduleRepeating(milliseconds); //// if(result.size()>1)
//// message = "bulks creators";
////
//// new InfoDisplay("Bulk Creator", "Found " + result.size() + " new " +message);
//
// AppControllerExplorer.getEventBus().fireEvent(new BulkCreatorEvent(result));
//// BulkCreatorWindow.getInstance().addProgressBar(result);
//
//// cancel();
// }
//
//
// }
// });
// }
// };
//
// timer.scheduleRepeating(milliseconds);
} }
} }

View File

@ -1389,7 +1389,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
@Override @Override
public List<BulkCreatorModel> getListFolderBulkCreator() throws Exception { public List<BulkCreatorModel> getListFolderBulkCreator() throws Exception {
try { /* try {
Workspace workspace = getWorkspace(); Workspace workspace = getWorkspace();
List<FolderBulkCreator> listFBC = workspace.getFolderBulkCreatorManager().getActiveFolderBulkCreators(); List<FolderBulkCreator> listFBC = workspace.getFolderBulkCreatorManager().getActiveFolderBulkCreators();
@ -1405,7 +1405,8 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
throw new Exception(e.getMessage()); throw new Exception(e.getMessage());
} }
*/
return null;
} }
@Override @Override