Package com._1c.g5.v8.dt.core.handle
Class V8ModelCore
- java.lang.Object
-
- com._1c.g5.v8.dt.core.handle.V8ModelCore
-
public class V8ModelCore extends Object
Facade to the V8 Model.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IV8File
create(org.eclipse.core.resources.IFile file)
Returns the V8 file corresponding to the given file, ornull
if unable to associate the given file with a V8 file.static IV8ProjectHandle
create(org.eclipse.core.resources.IProject project)
Returns the V8 project corresponding to the given project.static IV8Element
create(org.eclipse.core.resources.IResource resource)
Returns the V8 element corresponding to the given resource, ornull
if unable to associate the given resource with an element of the V8 Model.static IV8File
createFromNonProjectFile(URI uri)
static IV8Model
getV8Model()
Returns the V8 model element.
-
-
-
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, ornull
if unable to associate the given file with a V8 file.- Parameters:
file
- the given file (maybenull
)- Returns:
- the V8 file corresponding to the given file,
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 (maybenull
)- Returns:
- the V8 project corresponding to the given project,
or
null
if the given project isnull
-
create
public static IV8Element create(org.eclipse.core.resources.IResource resource)
Returns the V8 element corresponding to the given resource, ornull
if unable to associate the given resource with an element of the V8 Model.- Parameters:
resource
- the given resource (maybenull
)- 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
-
-