Package org.eclipse.ui.services

Examples of org.eclipse.ui.services.ISourceProviderService


    updateSourceProviders(scanInstance);

   
  }
  private void updateSourceProviders(IScanInstance scanInstance) {
    final ISourceProviderService sps = (ISourceProviderService) PlatformUI.getWorkbench().getService(ISourceProviderService.class);
    updatePauseStateSourceProvider((PauseStateSourceProvider) sps.getSourceProvider(PauseStateSourceProvider.PAUSE_STATE), scanInstance);
    updateScannerStateSourceProvider((ScannerStateSourceProvider) sps.getSourceProvider(ScannerStateSourceProvider.SCAN_SELECTION_STATE), scanInstance);
  }
View Full Code Here


      Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
      ErrorDialog.displayError(shell, "Proxy service is null");
      return null;
    }
   
    ISourceProviderService sourceProviderService = (ISourceProviderService) HandlerUtil.getActiveWorkbenchWindow(event).getService(ISourceProviderService.class);
    ProxyStateSourceProvider proxyState = (ProxyStateSourceProvider) sourceProviderService.getSourceProvider(ProxyStateSourceProvider.PROXY_STATE);
    if(proxyState == null) {
      Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
      ErrorDialog.displayError(shell, "Proxy state provider is null");
      return null;
    }
View Full Code Here

    });
  }
 
  private void doUpdate() {
    transactionManager.updateTransactionInfo(transactionInfo);
    ISourceProviderService sourceProviderService = (ISourceProviderService) getViewSite().getWorkbenchWindow().getService(ISourceProviderService.class);
    InterceptQueueStateSourceProvider provider = (InterceptQueueStateSourceProvider) sourceProviderService.getSourceProvider(InterceptQueueStateSourceProvider.INTERCEPT_QUEUE_STATE);
    if (transactionInfo.isPending() == true) {
      provider.setPending(true);
    } else {
      provider.setSent(transactionInfo.getRequestStatus() == TransactionManager.TransactionStatus.STATUS_SENT);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.services.ISourceProviderService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.