Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-04-04 09:45:41 +0000
committerTobias Schwarz2014-04-04 09:45:41 +0000
commitbf402477eaebabb839244417054c28d9419fe76e (patch)
tree97c27f1c9b04c6a8f246c5490dc45d1d5a520aaf /target_explorer
parentd25615184b3c3d02c690bdba4559f32813c5a633 (diff)
downloadorg.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.java5
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$
}
}

Back to the top