Class JavaProject

  • All Implemented Interfaces:
    org.eclipse.core.resources.IResourceDeltaVisitor

    public class JavaProject
    extends java.lang.Object
    implements org.eclipse.core.resources.IResourceDeltaVisitor
    The Java project class. It handles Java file enumeration, visiting, and most of all the source folders with the iizi metadata for parsing.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doValidateReferences​(boolean doReCheck)
      Validates the references for this project.
      protected void finalize()
      Finalized?
      JavaRootContainer getJavaRootContainer()
      Gets the property Java container root for Module projects.
      ModuleModel getModuleModel()
      Gets the Module model.
      org.eclipse.core.resources.IProject getProject()
      Gets the project.
      boolean isParsingRequired()
      Checks if this project is included in any of the Module projects, thus needs parsing.
      void onSaveProject​(java.io.File file)
      Saves the project metadata.
      boolean visit​(org.eclipse.core.resources.IResourceDelta delta)
      If one of the folders are found, let the main class handle the visiting.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getJavaRootContainer

        public JavaRootContainer getJavaRootContainer()
        Gets the property Java container root for Module projects.
      • doValidateReferences

        public void doValidateReferences​(boolean doReCheck)
        Validates the references for this project.
        Parameters:
        doReCheck - If a re-check of all references must be done.
      • getProject

        public org.eclipse.core.resources.IProject getProject()
        Gets the project.
      • getModuleModel

        public ModuleModel getModuleModel()
        Gets the Module model.
        Returns:
        The Module model or null if not yet created or not a Module project.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Finalized?
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable - For finalizer errors.
      • visit

        public boolean visit​(org.eclipse.core.resources.IResourceDelta delta)
                      throws org.eclipse.core.runtime.CoreException
        If one of the folders are found, let the main class handle the visiting.
        Specified by:
        visit in interface org.eclipse.core.resources.IResourceDeltaVisitor
        Throws:
        org.eclipse.core.runtime.CoreException
      • onSaveProject

        public void onSaveProject​(java.io.File file)
                           throws org.eclipse.core.runtime.CoreException
        Saves the project metadata.
        Throws:
        org.eclipse.core.runtime.CoreException - For file I/O errors.
      • isParsingRequired

        public boolean isParsingRequired()
        Checks if this project is included in any of the Module projects, thus needs parsing.