blob: d701c520dd537461835fb3c6d3c986db7af7d503 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008-2011 Chair for Applied Software Engineering, Technische Universitaet Muenchen. 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:
******************************************************************************/
package org.eclipse.emf.ecp.editor;
import org.eclipse.emf.ecore.EObject;
/**
* Provides a message for the statusbar of the meeditor.
*
* @author helming
*/
public interface StatusMessageProvider {
/**
* If a status message provider can return a message for a certain element.
*
* @param modelelement the modelelement
* @return the priority
*/
int canRender(EObject modelelement);
/**
* Return the status message for a certain EObject.
*
* @param modelelement the modelelement
* @return the status message
*/
String getMessage(EObject modelelement);
}