Skip to content

Package: ECPPrioritizedIObserver

ECPPrioritizedIObserver

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2012 EclipseSource Muenchen GmbH and others.
3: *
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: * wesendon - initial API and implementation
13: *
14: *******************************************************************************/
15:
16: package org.eclipse.emf.ecp.internal.core.util.observer;
17:
18: import org.eclipse.emf.ecp.core.util.observer.ECPObserver;
19:
20: /**
21: * An observer with a priority. The higher the number the more important is the observer.
22: *
23: * @author wesendon
24: */
25: public interface ECPPrioritizedIObserver extends ECPObserver {
26:
27:         /**
28:          * Returns the priority of this observer. The higher the number returned
29:          * by this method, the more likely it is that this observer is notified before
30:          * others.
31:          *
32:          * @return the priority of this observer
33:          */
34:         int getPriority();
35:
36: }