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){
Timer timer = new Timer() {
@Override
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";
// Timer timer = new Timer() {
// @Override
// public void run()
// {
//
// if(result.size()>1)
// message = "bulks creators";
// System.out.println("New rpc getListFolderBulkCreator..........................");
//
// new InfoDisplay("Bulk Creator", "Found " + result.size() + " new " +message);
AppControllerExplorer.getEventBus().fireEvent(new BulkCreatorEvent(result));
// BulkCreatorWindow.getInstance().addProgressBar(result);
// cancel();
}
}
});
}
};
timer.scheduleRepeating(milliseconds);
// 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)
//// 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
public List<BulkCreatorModel> getListFolderBulkCreator() throws Exception {
try {
/* try {
Workspace workspace = getWorkspace();
List<FolderBulkCreator> listFBC = workspace.getFolderBulkCreatorManager().getActiveFolderBulkCreators();
@ -1405,7 +1405,8 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
throw new Exception(e.getMessage());
}
*/
return null;
}
@Override