All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edelta.lib.EdeltaNopIssuePresenter Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package edelta.lib;

import org.eclipse.emf.ecore.ENamedElement;

/**
 * Since the {@link EdeltaIssuePresenter} must not be null, this is
 * a nop presenter that is used by default.
 * 
 * @author Lorenzo Bettini
 *
 */
public final class EdeltaNopIssuePresenter implements EdeltaIssuePresenter {
	public static final EdeltaIssuePresenter INSTANCE = new EdeltaNopIssuePresenter();

	private EdeltaNopIssuePresenter() {
		// just use the singleton INSTANCE
	}

	@Override
	public void showWarning(ENamedElement problematicObject, String message) {
		// nop
	}

	@Override
	public void showError(ENamedElement problematicObject, String message) {
		// nop
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy