-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathKerMLXpectGlobalScopeProvider.java
More file actions
34 lines (31 loc) · 1.19 KB
/
KerMLXpectGlobalScopeProvider.java
File metadata and controls
34 lines (31 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* SysML 2 Pilot Implementation
* Copyright (c) 2019 Model Driven Solutions, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Eclipse Public License as published by
* the Eclipse Foundation, version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Eclipse Public License for more details.
*
* You should have received a copy of the Eclipse Public License
* along with this program. If not, see <https://www.eclipse.org/legal/epl-2.0/>.
*
* @license EPL-2.0 <http://spdx.org/licenses/EPL-2.0>
*
* Contributors:
* Ed Seidewitz, MDS
*/
package org.omg.kerml.xpect;
import com.google.common.base.Predicate;
import org.eclipse.xtext.resource.IEObjectDescription;
import org.omg.kerml.xtext.scoping.KerMLGlobalScopeProvider;
public class KerMLXpectGlobalScopeProvider extends KerMLGlobalScopeProvider {
@Override
public Predicate<IEObjectDescription> getRootFilter() {
return description -> (!"Base".equals(description.getName().getFirstSegment()));
}
}