Class V8ModelCore


  • public class V8ModelCore
    extends Object
    Facade to the V8 Model.
    • Method Detail

      • getV8Model

        public static IV8Model getV8Model()
        Returns the V8 model element.
        Returns:
        the V8 model element (never null)
      • create

        public static IV8File create​(org.eclipse.core.resources.IFile file)
        Returns the V8 file corresponding to the given file, or null if unable to associate the given file with a V8 file.
        Parameters:
        file - the given file (maybe null)
        Returns:
        the V8 file corresponding to the given file, or null if unable to associate the given file with a V8 file
      • createFromNonProjectFile

        public static IV8File createFromNonProjectFile​(URI uri)
        Creates IV8File by the URI to the non project file
        Parameters:
        uri - URI to file in file system, the file does not have parent project
        Returns:
        created IV8File corresponding to the given URI or null if unable to associate the given file with a V8 file
      • create

        public static IV8ProjectHandle create​(org.eclipse.core.resources.IProject project)
        Returns the V8 project corresponding to the given project.

        Note that no check is done at this time on the existence or the nature of this project.

        Parameters:
        project - the given project (maybe null)
        Returns:
        the V8 project corresponding to the given project, or null if the given project is null
      • create

        public static IV8Element create​(org.eclipse.core.resources.IResource resource)
        Returns the V8 element corresponding to the given resource, or null if unable to associate the given resource with an element of the V8 Model.
        Parameters:
        resource - the given resource (maybe null)
        Returns:
        the V8 element corresponding to the given resource, or null if unable to associate the given resource with an element of the V8 Model