Class TypesBuilder

java.lang.Object
org.eclipse.core.internal.events.InternalBuilder
org.eclipse.core.resources.IncrementalProjectBuilder
org.libreoffice.ide.eclipse.core.builders.TypesBuilder
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension

public class TypesBuilder extends org.eclipse.core.resources.IncrementalProjectBuilder

Main builder of the UNO-IDL projects, it computes the language specific type files and types registry from the idl files. In order to split the work, the different tasks have been split into several builders:

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The builder ID as set in the plugin.xml file.
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder

    AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.core.resources.IProject[]
    build(int kind, Map<String,String> args, org.eclipse.core.runtime.IProgressMonitor monitor)
    static void
    build(org.eclipse.core.resources.IProject prj, org.eclipse.core.runtime.IProgressMonitor monitor)
    Build the types of a project.
    static void
    buildIdl(IUnoidlProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
    Runs the idl files compilation.

    Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder

    clean, forgetLastBuiltState, getBuildConfig, getCommand, getContext, getDelta, getProject, getRule, hasBeenBuilt, isInterrupted, needRebuild, rememberLastBuiltState, requestProjectRebuild, requestProjectsRebuild, setInitializationData, startupOnInitialize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TypesBuilder

      public TypesBuilder()
  • Method Details

    • build

      protected org.eclipse.core.resources.IProject[] build(int kind, Map<String,String> args, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
      Specified by:
      build in class org.eclipse.core.resources.IncrementalProjectBuilder
      Throws:
      org.eclipse.core.runtime.CoreException
    • build

      public static void build(org.eclipse.core.resources.IProject prj, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception
      Build the types of a project.
      Parameters:
      prj - the project to build
      monitor - a monitor to report the build progress
      Throws:
      Exception - if anything wrong happens during the build
    • buildIdl

      public static void buildIdl(IUnoidlProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception
      Runs the idl files compilation.
      Parameters:
      project - the uno project to build
      monitor - a monitor to watch the progress
      Throws:
      Exception - if anything wrong happened