diff options
author | Tobias Schwarz | 2014-04-04 09:45:41 +0000 |
---|---|---|
committer | Tobias Schwarz | 2014-04-04 09:45:41 +0000 |
commit | bf402477eaebabb839244417054c28d9419fe76e (patch) | |
tree | 97c27f1c9b04c6a8f246c5490dc45d1d5a520aaf /target_explorer | |
parent | d25615184b3c3d02c690bdba4559f32813c5a633 (diff) | |
download | org.eclipse.tcf-bf402477eaebabb839244417054c28d9419fe76e.tar.gz org.eclipse.tcf-bf402477eaebabb839244417054c28d9419fe76e.tar.xz org.eclipse.tcf-bf402477eaebabb839244417054c28d9419fe76e.zip |
Target Explorer: allow null and convert to ""
Diffstat (limited to 'target_explorer')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseDialogSelectionControl.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseDialogSelectionControl.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseDialogSelectionControl.java index aff950214..ad21a2832 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseDialogSelectionControl.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/BaseDialogSelectionControl.java @@ -140,10 +140,9 @@ public class BaseDialogSelectionControl extends BaseEditBrowseTextControl { * control. Subclasses may override this method to run additional logic just before * applying the selected element to the control. * - * @param selectedElement The selected element from that controls associated dialog. Must not be <code>null</code>. + * @param selectedElement The selected element from that controls associated dialog. */ protected void doApplyElementFromDialogControl(String selectedElement) { - Assert.isNotNull(selectedElement); - setEditFieldControlText(selectedElement); + setEditFieldControlText(selectedElement != null ? selectedElement.trim() : ""); //$NON-NLS-1$ } } |