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:
parent
f6b016386a
commit
eab4559c2e
|
@ -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()
|
||||
// {
|
||||
//
|
||||
// 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)
|
||||
//// message = "bulks creators";
|
||||
////
|
||||
//// new InfoDisplay("Bulk Creator", "Found " + result.size() + " new " +message);
|
||||
//
|
||||
// if(result.size()>1)
|
||||
// message = "bulks creators";
|
||||
// AppControllerExplorer.getEventBus().fireEvent(new BulkCreatorEvent(result));
|
||||
//// BulkCreatorWindow.getInstance().addProgressBar(result);
|
||||
//
|
||||
// new InfoDisplay("Bulk Creator", "Found " + result.size() + " new " +message);
|
||||
|
||||
AppControllerExplorer.getEventBus().fireEvent(new BulkCreatorEvent(result));
|
||||
// BulkCreatorWindow.getInstance().addProgressBar(result);
|
||||
|
||||
// cancel();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
timer.scheduleRepeating(milliseconds);
|
||||
//// cancel();
|
||||
// }
|
||||
//
|
||||
//
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// };
|
||||
//
|
||||
// timer.scheduleRepeating(milliseconds);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue