blob: 8cea7a2384a03d095988d2f6f75b648b7e94f7a0 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 Obeo.
* 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
*
* Contributors:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.emf.compare.ide.ui.internal.logical.resolver;
import static com.google.common.base.Preconditions.checkNotNull;
import org.eclipse.emf.compare.ide.internal.utils.IProxyCreationListener;
import org.eclipse.emf.compare.ide.ui.internal.util.ThreadSafeProgressMonitor;
/**
* Asbtract super-class of {@link IProxyCreationListener}s to use for computing the logical model.
*
* @author <a href="mailto:laurent.delaigue@obeo.fr">Laurent Delaigue</a>
*/
public abstract class AbstractMonitoredProxyCreationListener implements IProxyCreationListener {
/** The progress monitor. */
protected final ThreadSafeProgressMonitor tspm;
/** The diagnostic. */
protected final DiagnosticSupport diagnostic;
/**
* Constructor.
*
* @param monitor
* The monitor to use, must not be {@code null}
* @param diagnostic
* The diagnostic, must not be {@code null}
*/
public AbstractMonitoredProxyCreationListener(ThreadSafeProgressMonitor monitor,
DiagnosticSupport diagnostic) {
this.tspm = checkNotNull(monitor);
this.diagnostic = checkNotNull(diagnostic);
}
}