Skip to content

Package: CompositeProvider

CompositeProvider

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: * Eugen Neufeld - initial API and implementation
13: *
14: *******************************************************************************/
15:
16: package org.eclipse.emf.ecp.spi.common.ui;
17:
18: import org.eclipse.swt.widgets.Composite;
19:
20: /**
21: * @author Eugen Neufeld
22: */
23: public interface CompositeProvider {
24:         /**
25:          * This method creates a UI bundled into a {@link Composite} that can be used anywhere.
26:          *
27:          * @param parent the parent {@link Composite}
28:          * @return the created {@link Composite}
29:          */
30:         Composite createUI(Composite parent);
31:
32:         /**
33:          * Disposes this composite provider.
34:          */
35:         void dispose();
36: }