Class RuntimeBuilderLauncher

java.lang.Object
com.iizigo.run.RuntimeBuilderLauncher
All Implemented Interfaces:
IEditorLauncher

public class RuntimeBuilderLauncher extends Object implements IEditorLauncher
Launches the iiziRun Builder with a file name.
Author:
Christopher Mindus
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    launchBuild(Shell shell, IFile file)
    Launches the job, or opens the configuration if there is a problem in the file.
    loadForBuild(IFile file, ModuleModel module, IRuntimeBuilder runtimeBuilder)
    Loads a Module project's .iiziRun for a build: the container set up for the project and placed in the tree its references are resolved in, as the property page holds it - a referenced color (%Project:/style/...) names a loaded Module project, a platform role the base palette, installed first (CC-FIX-NAMED-COLOR-UNRESOLVED; loaded with no tree, every such reference was "not found" and a build would have baked the unresolved magenta).
    void
    open(IPath path)
    Open the file.
  • Constructor Details

    • RuntimeBuilderLauncher

      public RuntimeBuilderLauncher()
      Default constructor.
  • Method Details

    • open

      public void open(IPath path)
      Open the file.
      Specified by:
      open in interface IEditorLauncher
    • loadForBuild

      public static EditorRuntimeBuilderProps loadForBuild(IFile file, ModuleModel module, IRuntimeBuilder runtimeBuilder) throws CoreException
      Loads a Module project's .iiziRun for a build: the container set up for the project and placed in the tree its references are resolved in, as the property page holds it - a referenced color (%Project:/style/...) names a loaded Module project, a platform role the base palette, installed first (CC-FIX-NAMED-COLOR-UNRESOLVED; loaded with no tree, every such reference was "not found" and a build would have baked the unresolved magenta). The seam the harness tests use below the dialogs of launchBuild(Shell,IFile) (R-45).
      Parameters:
      file - The .iiziRun file.
      module - The Module project of the file.
      runtimeBuilder - The runtime builder.
      Returns:
      The container, never null.
      Throws:
      CoreException - If the file cannot be loaded or holds no runtime builder property.
    • launchBuild

      public static boolean launchBuild(Shell shell, IFile file) throws CancelException
      Launches the job, or opens the configuration if there is a problem in the file.
      Parameters:
      shell - A shell.
      file - The iiziRun Builder configuration file ".iiziRun" in a Module project.
      Returns:
      true for success, false if configuration was opened.
      Throws:
      CancelException - If the file name is not ".iiziRun" or it's not a Module project.