Skip to content

Package: StatusMessageProvider

StatusMessageProvider

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008-2011 Chair for Applied Software Engineering,
3: * Technische Universitaet Muenchen.
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: ******************************************************************************/
13: package org.eclipse.emf.ecp.editor.e3;
14:
15: import org.eclipse.emf.ecore.EObject;
16:
17: /**
18: * Provides a message for the statusbar of the meeditor.
19: *
20: * @author helming
21: */
22: public interface StatusMessageProvider {
23:         /**
24:          * If a status message provider can return a message for a certain element.
25:          *
26:          * @param modelelement the modelelement
27:          * @return the priority
28:          */
29:         int canRender(EObject modelelement);
30:
31:         /**
32:          * Return the status message for a certain EObject.
33:          *
34:          * @param modelelement the modelelement
35:          * @return the status message
36:          */
37:         String getMessage(EObject modelelement);
38: }