public final class ViewModelHelper extends Object
Modifier and Type | Method and Description |
---|---|
static VView |
createViewModel(org.eclipse.core.resources.IFile modelFile,
org.eclipse.emf.ecore.EClass selectedEClass,
org.eclipse.core.resources.IFile selectedEcore)
Creates a new view model file.
|
public static VView createViewModel(org.eclipse.core.resources.IFile modelFile, org.eclipse.emf.ecore.EClass selectedEClass, org.eclipse.core.resources.IFile selectedEcore) throws IOException
modelFile
- the file in which the view should be savedselectedEClass
- the Root EClass for the new VView
selectedEcore
- the ecore containing the selectedEClass. If the selectedEcore is null,
then the selectedEClass must come from an EPackage which is registered by default in
the
package registry.VView
IOException
- when something goes wrong while loading or saving the resourceCopyright © 2017. All rights reserved.