Skip to content

Package: ECPSWTView

ECPSWTView

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 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: * Jonas - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.ui.view.swt;
15:
16: import org.eclipse.emf.ecp.view.spi.context.ViewModelContext;
17: import org.eclipse.swt.widgets.Control;
18:
19: /**
20: * This is the result of a Rendering call.
21: * It contains the created SWT Control and the {@link ViewModelContext}.
22: *
23: * @author Jonas
24: * @noimplement This interface is not intended to be implemented by clients.
25: * @noextend This interface is not intended to be extended by clients.
26: */
27: public interface ECPSWTView {
28:
29:         /**
30:          * @return the root SWT Control of this view.
31:          */
32:         Control getSWTControl();
33:
34:         /**
35:          * Disposes the view.
36:          */
37:         void dispose();
38:
39:         /**
40:          * Returns the {@link ViewModelContext} which was used to create the current view.
41:          *
42:          * @return the {@link ViewModelContext}
43:          * @since 1.2
44:          */
45:         ViewModelContext getViewModelContext();
46: }