Skip to content

Package: InternalElementRegistry

InternalElementRegistry

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: * Eike Stepper - initial API and implementation
13: * Jonas Helming - JavaDoc
14: *******************************************************************************/
15: package org.eclipse.emf.ecp.spi.core.util;
16:
17: import org.eclipse.emf.ecp.core.util.ECPElement;
18:
19: /**
20: * @author Eike Stepper
21: * @param <ELEMENT>
22: * @since 1.1
23: */
24: public interface InternalElementRegistry<ELEMENT extends ECPElement> {
25:         void addResolveListener(ResolveListener<ELEMENT> listener);
26:
27:         void removeResolveListener(ResolveListener<ELEMENT> listener);
28:
29:         /**
30:          * @author Eike Stepper
31:          * @param <ELEMENT> The type of this listener, must extend an {@link ECPElement}
32:          */
33:         public interface ResolveListener<ELEMENT extends ECPElement> {
34:                 void descriptorChanged(InternalDescriptor<ELEMENT> descriptor, boolean resolved) throws Exception;
35:         }
36: }