org.eclipse.emf.ecp.internal.ide.util
Class ViewModelHelper
java.lang.Object
org.eclipse.emf.ecp.internal.ide.util.ViewModelHelper
public final class ViewModelHelper
- extends Object
Helper class for view model objects.
Method Summary |
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. |
createViewModel
public static VView createViewModel(org.eclipse.core.resources.IFile modelFile,
org.eclipse.emf.ecore.EClass selectedEClass,
org.eclipse.core.resources.IFile selectedEcore)
throws IOException
- Creates a new view model file.
- Parameters:
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.
- Returns:
- the newly created
VView
- Throws:
IOException
- when something goes wrong while loading or saving the resource
Copyright © 2015. All Rights Reserved.