Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2014 itemis AG (http://www.itemis.eu) and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
 
 package org.eclipse.xtext.ui.editor.reconciler;
 
import  org.eclipse.core.runtime.IProgressMonitor;
import  org.eclipse.core.runtime.NullProgressMonitor;

Author(s):
Sven Efftinge - Initial contribution and API
Since:
2.7
public class CancelIndicatorBasedProgressMonitor implements IProgressMonitor {
  private final IProgressMonitor doDelegate = new NullProgressMonitor();
  
  private final CancelIndicator cancelIndicator;
  
  public CancelIndicatorBasedProgressMonitor(final CancelIndicator cancelIndicator) {
    super();
    this. = cancelIndicator;
  }
  
  public boolean isCanceled() {
    return this..isCanceled();
  }
  
  public void beginTask(final String namefinal int totalWork) {
    this..beginTask(nametotalWork);
  }
  
  public void done() {
    this..done();
  }
  
  public void internalWorked(final double work) {
    this..internalWorked(work);
  }
  
  public void setCanceled(final boolean value) {
    this..setCanceled(value);
  }
  
  public void setTaskName(final String name) {
    this..setTaskName(name);
  }
  
  public void subTask(final String name) {
    this..subTask(name);
  }
  
  public void worked(final int work) {
    this..worked(work);
  }
New to GrepCode? Check out our FAQ X