Class NewTextTablesWithLanguageComposite

All Implemented Interfaces:
Drawable

public class NewTextTablesWithLanguageComposite extends Composite
The composite used to display the composite to create new text files with languages.
Author:
Christopher Mindus
  • Constructor Details

    • NewTextTablesWithLanguageComposite

      public NewTextTablesWithLanguageComposite(Composite parent, ModuleModel model, int marginLeft, int marginRight, int marginTop, int marginBottom, ValidatorManager validatorManager, int widthHint, String baseTextTableName)
      Constructor.
      Parameters:
      parent - The parent composite.
      model - The module model for the text files.
      marginLeft - Left margin.
      marginRight - Right margin.
      marginTop - Top margin.
      marginBottom - Bottom margin.
      validatorManager - Verification callback to display message.
      widthHint - Hint of width of page composite.
      baseTextTableName - The name of the base text table, null for none.
  • Method Details

    • setInitialFocus

      public void setInitialFocus()
      Sets the focus to the base name.
    • createTextFiles

      public void createTextFiles(ModuleModel model, Map<Atom,KString> moreTexts, IProgressMonitor monitor) throws CoreException
      Creates the text files. The operation takes one tick on the monitor no matter the amount of text files.
      Parameters:
      model - Module model.
      moreTexts - Additional text to put in the text table, null for none.
      Throws:
      CoreException - For errors.
    • getBaseName

      public String getBaseName()
      Gets the first text table base name.
      Returns:
      The name without file extension.
    • openInParallel

      public void openInParallel(Display display, Shell shell)
      Opens the text files in an editor part in parallel.
      Parameters:
      display - The display.
      shell - The shell.
    • getCreatedFiles

      public IFile[] getCreatedFiles()
      Returns the files created.