Class V8Model

  • All Implemented Interfaces:
    IV8Element, IV8Model, org.eclipse.core.runtime.IAdaptable, org.eclipse.handly.model.IElement, org.eclipse.handly.model.IElementExtension, org.eclipse.handly.model.IModel, org.eclipse.handly.model.impl.IElementImpl, org.eclipse.handly.model.impl.IElementImplExtension, org.eclipse.handly.model.impl.IModelImpl,,

    public final class V8Model
    implements IV8Model, org.eclipse.handly.model.impl.IModelImpl
    Represents the V8 model element.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.handly.model.impl.IElementImplExtension

    • Field Summary

      • Fields inherited from interface org.eclipse.handly.model.impl.IElementImplExtension

      • Fields inherited from interface

    • Method Summary

      All Methods Instance Methods Concrete Methods Default Methods 
      Modifier and Type Method Description
      void addElementChangeListener​(org.eclipse.handly.model.IElementChangeListener listener)
      Adds the given listener for changes to elements in the V8 model.
      void buildStructure_​(org.eclipse.handly.context.IContext context, org.eclipse.core.runtime.IProgressMonitor monitor)  
      boolean equals​(Object obj)  
      boolean exists_()  
      int getModelApiLevel_()  
      org.eclipse.handly.context.IContext getModelContext_()  
      default getModelManager_()  
      org.eclipse.core.resources.IResource getResource_()  
      IV8ProjectHandle getV8Project​(String name)
      Returns the V8 project with the given name.
      IV8ProjectHandle[] getV8Projects()
      Returns the V8 projects in this V8 model.
      org.eclipse.core.resources.IWorkspace getWorkspace()
      Returns the workspace associated with this V8 model.
      int hashCode()  
      void removeElementChangeListener​(org.eclipse.handly.model.IElementChangeListener listener)
      Removes the given element change listener.
      void toStringName_​(StringBuilder builder, org.eclipse.handly.context.IContext context)  
      void validateExistence_​(org.eclipse.handly.context.IContext context)  
      • Methods inherited from class

        getName_, getParent_, toString
      • Methods inherited from class org.eclipse.core.runtime.PlatformObject

      • Methods inherited from interface org.eclipse.handly.model.IElementExtension

        exists, getAncestor, getChildren, getChildren, getLocationUri, getName, getResource
      • Methods inherited from interface org.eclipse.handly.model.impl.IElementImpl

        equalsAndSameParentChain_, fetchChildren_, fetchChildrenOfType_, getChildrenOfType_, getHandleMemento_, getLocationUri_, getRoot_, toDisplayString_
      • Methods inherited from interface org.eclipse.handly.model.impl.IElementImplExtension

        close_, getBody_, getBody_, getChildren_
      • Methods inherited from interface

        canEqual_, close_, defaultEquals_, defaultHashCode_, findBody_, getChildrenFromBody_, getElementManager_, getModel_, isOpenable_, newDoesNotExistException_, open_, openParent_, peekAtBody_, remove_, removing_, toString_, toStringAncestors_, toStringBody_, toStringChildren_
    • Method Detail

      • getModelApiLevel_

        public int getModelApiLevel_()
        Specified by:
        getModelApiLevel_ in interface org.eclipse.handly.model.impl.IModelImpl
      • getModelContext_

        public org.eclipse.handly.context.IContext getModelContext_()
        Specified by:
        getModelContext_ in interface org.eclipse.handly.model.impl.IModelImpl
      • addElementChangeListener

        public void addElementChangeListener​(org.eclipse.handly.model.IElementChangeListener listener)
        Description copied from interface: IV8Model
        Adds the given listener for changes to elements in the V8 model. Has no effect if an identical listener is already registered.

        Once registered, a listener starts receiving notification of changes to elements in the V8 model. The listener continues to receive notifications until it is removed.

        Specified by:
        addElementChangeListener in interface IV8Model
        listener - the listener (not null)
        See Also:
      • removeElementChangeListener

        public void removeElementChangeListener​(org.eclipse.handly.model.IElementChangeListener listener)
        Description copied from interface: IV8Model
        Removes the given element change listener. Has no effect if an identical listener is not registered.
        Specified by:
        removeElementChangeListener in interface IV8Model
        listener - the listener (not null)
      • getV8Project

        public IV8ProjectHandle getV8Project​(String name)
        Description copied from interface: IV8Model
        Returns the V8 project with the given name. The given name must be a valid path segment as defined by IPath.isValidSegment(String). This is a handle-only method. The project may or may not exist.
        Specified by:
        getV8Project in interface IV8Model
        name - the name of the V8 project (not null)
        the V8 project with the given name (never null)
      • getV8Projects

        public IV8ProjectHandle[] getV8Projects()
                                         throws org.eclipse.core.runtime.CoreException
        Description copied from interface: IV8Model
        Returns the V8 projects in this V8 model.
        Specified by:
        getV8Projects in interface IV8Model
        the V8 projects in this V8 model (never null)
        org.eclipse.core.runtime.CoreException - if this request fails
      • getWorkspace

        public org.eclipse.core.resources.IWorkspace getWorkspace()
        Description copied from interface: IV8Model
        Returns the workspace associated with this V8 model. This is a handle-only method.
        Specified by:
        getWorkspace in interface IV8Model
        the workspace associated with this V8 model (never null)
      • getResource_

        public org.eclipse.core.resources.IResource getResource_()
        Specified by:
        getResource_ in interface org.eclipse.handly.model.impl.IElementImpl
      • exists_

        public boolean exists_()
        Specified by:
        exists_ in interface org.eclipse.handly.model.impl.IElementImpl
        Specified by:
        exists_ in interface
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.eclipse.handly.model.IElement
        equals in class
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.eclipse.handly.model.IElement
        hashCode in class
      • toStringName_

        public void toStringName_​(StringBuilder builder,
                                  org.eclipse.handly.context.IContext context)
        Specified by:
        toStringName_ in interface
      • validateExistence_

        public void validateExistence_​(org.eclipse.handly.context.IContext context)
        Specified by:
        validateExistence_ in interface
      • buildStructure_

        public void buildStructure_​(org.eclipse.handly.context.IContext context,
                                    org.eclipse.core.runtime.IProgressMonitor monitor)
                             throws org.eclipse.core.runtime.CoreException
        Specified by:
        buildStructure_ in interface
      • getModelManager_

        public default getModelManager_()
        Specified by:
        getModelManager_ in interface