Package org.apache.hop.ui.core.dialog
Class EnterMappingDialog
- java.lang.Object
-
- org.eclipse.swt.widgets.Dialog
-
- org.apache.hop.ui.core.dialog.EnterMappingDialog
-
public class EnterMappingDialog extends org.eclipse.swt.widgets.DialogShows a user 2 lists of strings and allows the linkage of values between values in the 2 lists
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classEnterMappingDialog.GuessPair
-
Constructor Summary
Constructors Constructor Description EnterMappingDialog(org.eclipse.swt.widgets.Shell parent, String[] source, String[] target)Create a new dialog allowing the user to enter a mappingEnterMappingDialog(org.eclipse.swt.widgets.Shell parent, String[] source, String[] target, List<SourceToTargetMapping> mappings)Create a new dialog allowing the user to enter a mapping
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidgetData()StringgetSourceSeparator()Gets sourceSeparatorStringgetTargetSeparator()Gets targetSeparatorList<SourceToTargetMapping>open()voidsetSourceSeparator(String sourceSeparator)voidsetTargetSeparator(String targetSeparator)
-
-
-
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 shellsource- the source valuestarget- 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 shellsource- the source valuestarget- the target valuesmappings- the already selected mappings (ArrayList containingSourceToTargetMappings)
-
-
Method Detail
-
open
public List<SourceToTargetMapping> open()
-
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
-
-