Package com.quantcomponents.ui.core

Examples of com.quantcomponents.ui.core.TaskMonitorAdapter


      dialog.run(true, true, new IRunnableWithProgress() {
        @Override
        public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
          try {
            chartModel.setSuspendUpdates(true);
            stockDatabase.getParent().fillHistoricalData(stockDatabase, newStartDate, newEndDate, new TaskMonitorAdapter(monitor, "Retrieving historical data..."));
            chartModel.setSuspendUpdates(false);
          } catch (Exception e) {
            MessageDialog.openError(getShell(), "Error", "Error while retrieving historical data: " + LangUtils.exceptionMessage(e));
          }
        }});
View Full Code Here


      dialog.setCancelable(true);
      dialog.run(true, true, new IRunnableWithProgress() {
        @Override
        public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
          try {
            contractList.addAll(marketDataManager.searchContracts(contractCriteria, new TaskMonitorAdapter(monitor, "Searching contracts...")));
          } catch (ConnectException e) {
            throw new InvocationTargetException(e);
          } catch (RequestFailedException e) {
            throw new InvocationTargetException(e);
          }
View Full Code Here

    dialog.setCancelable(true);
    dialog.run(true, true, new IRunnableWithProgress() {
      @Override
      public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        try {
          ITaskMonitor taskMonitor = new TaskMonitorAdapter(monitor, "Retrieving historical data...");
          marketDataManager.fillHistoricalData(stockDatabase, startDateTime, endDateTime, taskMonitor);
        } catch (Exception e) {
          throw new InvocationTargetException(e);
        }
      }});
View Full Code Here

    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.ui.core.TaskMonitorAdapter

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.