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, org.eclipse.handly.model.impl.support.IElementImplSupport, org.eclipse.handly.model.impl.support.IModelManager.Provider

    public final class V8Model
    extends org.eclipse.handly.model.impl.support.Element
    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

        org.eclipse.handly.model.impl.IElementImplExtension.CloseHint
    • Field Summary

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

        CLOSE_HINT, FORCE_OPEN
      • Fields inherited from interface org.eclipse.handly.model.impl.support.IElementImplSupport

        NEW_ELEMENTS, NO_BODY
    • 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 org.eclipse.handly.model.impl.support.IModelManager 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 org.eclipse.handly.model.impl.support.Element

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

        getAdapter
      • 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 org.eclipse.handly.model.impl.support.IElementImplSupport

        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
        Parameters:
        listener - the listener (not null)
        See Also:
        IV8Model.removeElementChangeListener(IElementChangeListener)
      • 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
        Parameters:
        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
        Parameters:
        name - the name of the V8 project (not null)
        Returns:
        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
        Returns:
        the V8 projects in this V8 model (never null)
        Throws:
        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
        Returns:
        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 org.eclipse.handly.model.impl.support.IElementImplSupport
      • equals

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

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

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

        public void validateExistence_​(org.eclipse.handly.context.IContext context)
        Specified by:
        validateExistence_ in interface org.eclipse.handly.model.impl.support.IElementImplSupport
      • 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 org.eclipse.handly.model.impl.support.IElementImplSupport
        Throws:
        org.eclipse.core.runtime.CoreException
      • getModelManager_

        public default org.eclipse.handly.model.impl.support.IModelManager getModelManager_()
        Specified by:
        getModelManager_ in interface org.eclipse.handly.model.impl.support.IModelManager.Provider