Skip to content

Package: SelectModelClassCompositeImpl

SelectModelClassCompositeImpl

nameinstructionbranchcomplexitylinemethod
SelectModelClassCompositeImpl(Collection, Collection, Collection)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
isCheckedTree()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

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: package org.eclipse.emf.ecp.spi.common.ui.composites;
16:
17: import java.util.Collection;
18:
19: import org.eclipse.emf.ecore.EClass;
20: import org.eclipse.emf.ecore.EPackage;
21: import org.eclipse.jface.viewers.TreeViewer;
22:
23: /**
24: * Helper class for creating a dialog which allows to select an {@link EClass}.
25: *
26: * @author Eugen Neufeld
27: *
28: */
29: public class SelectModelClassCompositeImpl extends AbstractEClassTreeSelectionComposite implements
30:         SelectionComposite<TreeViewer> {
31:
32:         /**
33:          * Constructor for providing the filter data manually.
34:          *
35:          * @param unsupportedEPackages {@link EPackage}s that are not available for selection
36:          * @param filteredEPackages {@link EPackage}s which are selectable
37:          * @param filteredEClasses {@link EClass}es which are selectable
38:          */
39:         public SelectModelClassCompositeImpl(Collection<EPackage> unsupportedEPackages,
40:                 Collection<EPackage> filteredEPackages, Collection<EClass> filteredEClasses) {
41:                 super(unsupportedEPackages, filteredEPackages, filteredEClasses);
42:         }
43:
44:         @Override
45:         protected boolean isCheckedTree() {
46:                 return false;
47:         }
48: }