Package com.quantcomponents.marketdata

Examples of com.quantcomponents.marketdata.IRealTimeMarketDataManager


  }
 
  private void startAutoUpdate(final IStockDatabase stockDatabase) throws InvocationTargetException, InterruptedException {
    ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell());
    dialog.setCancelable(true);
    final IRealTimeMarketDataManager realTimeMarketDataManager = (IRealTimeMarketDataManager) marketDataManager;
    dialog.run(true, true, new IRunnableWithProgress() {
      @Override
      public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        try {
          ITaskMonitor taskMonitor = new TaskMonitorAdapter(monitor, "Starting auto-update...");
          realTimeMarketDataManager.startRealtimeUpdate(stockDatabase, true, taskMonitor);
        } catch (Exception e) {
          throw new InvocationTargetException(e);
        }
      }});
  }
View Full Code Here

TOP

Related Classes of com.quantcomponents.marketdata.IRealTimeMarketDataManager

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.