
org.eclipse.scada.utils.progress.NullProgressMonitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.scada.utils Show documentation
Show all versions of org.eclipse.scada.utils Show documentation
Utility classes for use throughout the Eclipse SCADA project
The newest version!
/*******************************************************************************
* Copyright (c) 2015 IBH SYSTEMS GmbH 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
*
* Contributors:
* IBH SYSTEMS GmbH - initial API and implementation
*******************************************************************************/
package org.eclipse.scada.utils.progress;
/**
* A progress monitor which does nothing
*
* This can be used to prevent null checks on monitor variables
*
*
* There is no need to create an instance of this class
* {@link NullProgressMonitor#INSTANCE} can be used directly.
*
*
* @see ProgressMonitors#orDefault(ProgressMonitor)
*/
public class NullProgressMonitor implements ProgressMonitor
{
public static final ProgressMonitor INSTANCE = new NullProgressMonitor ();
private NullProgressMonitor ()
{
}
@Override
public void beginTask ( final String name, final int totalWork )
{
}
@Override
public void worked ( final int work )
{
}
@Override
public void done ()
{
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy