Class EnterMappingDialog


  • public class EnterMappingDialog
    extends org.eclipse.swt.widgets.Dialog
    Shows a user 2 lists of strings and allows the linkage of values between values in the 2 lists
    • Constructor Detail

      • EnterMappingDialog

        public EnterMappingDialog​(org.eclipse.swt.widgets.Shell parent,
                                  String[] source,
                                  String[] target)
        Create a new dialog allowing the user to enter a mapping
        Parameters:
        parent - the parent shell
        source - the source values
        target - the target values
      • EnterMappingDialog

        public EnterMappingDialog​(org.eclipse.swt.widgets.Shell parent,
                                  String[] source,
                                  String[] target,
                                  List<SourceToTargetMapping> mappings)
        Create a new dialog allowing the user to enter a mapping
        Parameters:
        parent - the parent shell
        source - the source values
        target - the target values
        mappings - the already selected mappings (ArrayList containing SourceToTargetMapping s)
    • Method Detail

      • dispose

        public void dispose()
      • getData

        public void getData()
      • getSourceSeparator

        public String getSourceSeparator()
        Gets sourceSeparator
        Returns:
        value of sourceSeparator
      • setSourceSeparator

        public void setSourceSeparator​(String sourceSeparator)
        Parameters:
        sourceSeparator - The sourceSeparator to set
      • getTargetSeparator

        public String getTargetSeparator()
        Gets targetSeparator
        Returns:
        value of targetSeparator
      • setTargetSeparator

        public void setTargetSeparator​(String targetSeparator)
        Parameters:
        targetSeparator - The targetSeparator to set