Class FileSwtParameter

All Implemented Interfaces:
SwtParameter<String>

public class FileSwtParameter extends BaseSwtStringParameter<FileSwtParameter>
SWT Parameter representing a File (String) value. Displays Textbox and browse button.

Will always use 2 horizontal spaces in GridLayout

Note: Currently doesn't validate if file is valid or exists. This allows for URL entries.

  • Field Details

    • browse

      private final org.eclipse.swt.widgets.Button browse
    • area

      private final org.eclipse.swt.widgets.Composite area
    • keyDialogTitle

      protected String keyDialogTitle
    • extension_list

      protected String[] extension_list
    • filenameHint

      private String filenameHint
  • Constructor Details

    • FileSwtParameter

      public FileSwtParameter(org.eclipse.swt.widgets.Composite parent, FileParameterImpl param)
    • FileSwtParameter

      public FileSwtParameter(org.eclipse.swt.widgets.Composite composite, String paramID, String labelKey, String[] extension_list, SwtParameterValueProcessor<FileSwtParameter,String> valueProcessor)
      Make a File selecting ui

      When parent is of GridLayout, resulting new widgets will take 2 columns

      Parameters:
      composite - Where widgets will be placed. Composite is not altered
      paramID - ID of the parameter (usually config id)
      labelKey - Messagebundle key for the text shown before the color button
      valueProcessor - null if you want to use COConfigurationManager
  • Method Details