Skip to content

Package: CheckedModelClassComposite

CheckedModelClassComposite

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: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.spi.common.ui;
15:
16: import org.eclipse.jface.viewers.CheckboxTreeViewer;
17:
18: /**
19: * This class provides a CheckedTree that allows the user to select {@link org.eclipse.emf.ecore.EPackage EPackages} and
20: * {@link org.eclipse.emf.ecore.EClass
21: * EClasses}.
22: *
23: * @author Eugen Neufeld
24: *
25: */
26: public interface CheckedModelClassComposite extends CompositeProvider {
27:
28:         /**
29:          * Returns the {@link CheckboxTreeViewer}.
30:          *
31:          * @return the viewer
32:          */
33:         CheckboxTreeViewer getViewer();
34:
35:         /**
36:          * Returns the selected objects.
37:          *
38:          * @return the selection
39:          */
40:         Object[] getSelection();
41:
42:         /**
43:          * Returns the checked Elements.
44:          *
45:          * @return an array containing the checked elements
46:          */
47:         Object[] getChecked();
48:
49:         /**
50:          * Initialize the selection by setting the checked elements.
51:          *
52:          * @param selection the objects to check
53:          */
54:         void setInitialSelection(Object[] selection);
55: }