Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2014 itemis AG ( 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
 package org.eclipse.xtext.ui.editor.reconciler;
import  org.eclipse.core.runtime.IProgressMonitor;
import  org.eclipse.core.runtime.NullProgressMonitor;

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