Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### 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 saved
    `selectedEClass` - 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

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2015. All Rights Reserved.