public class ResourceActionDelegate implements IActionDelegate {
protected IStructuredSelection fSelection;
private IWorkbenchSiteProgressService getActiveProgressService() {
IWorkbenchSiteProgressService service = null;
if (PlatformUI.isWorkbenchRunning()) {
IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (activeWorkbenchWindow != null) {
IWorkbenchPage activePage = activeWorkbenchWindow.getActivePage();
if (activePage != null) {