Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
574a4dc
commit 78adb5a
Showing
3 changed files
with
32 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
....eclipse.emf.parsley.dsl/src/org/eclipse/emf/parsley/dsl/util/EmfParsleyDslModelUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Copyright (c) 2013 RCP Vision (http://www.rcp-vision.com) and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Lorenzo Bettini - initial API and implementation | ||
*/ | ||
package org.eclipse.emf.parsley.dsl.util; | ||
|
||
import static org.eclipse.xtext.EcoreUtil2.getContainerOfType; | ||
|
||
import org.eclipse.emf.ecore.EObject; | ||
import org.eclipse.emf.parsley.dsl.model.EmfFeatureAccess; | ||
|
||
public class EmfParsleyDslModelUtil { | ||
|
||
private EmfParsleyDslModelUtil() { | ||
// only static utility methods | ||
} | ||
|
||
public static EmfFeatureAccess containingEmfFeatureAccess(final EObject o) { | ||
return getContainerOfType(o, EmfFeatureAccess.class); | ||
} | ||
|
||
public static org.eclipse.emf.parsley.dsl.model.Module containingModule(final EObject o) { | ||
return getContainerOfType(o, | ||
org.eclipse.emf.parsley.dsl.model.Module.class); | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
...eclipse.emf.parsley.dsl/src/org/eclipse/emf/parsley/dsl/util/EmfParsleyDslModelUtil.xtend
This file was deleted.
Oops, something went wrong.