Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-06-13 06:04:38 +0000
committerTobias Schwarz2013-06-13 06:04:59 +0000
commit7c70ec575ffd0f7070ded548a5b5e5804e461f28 (patch)
tree2ba855d7ae86753f2fabc2d3082a5aba999380e9 /target_explorer
parenta1c67b653e54a8ada77ec83dc79a048efc75cf26 (diff)
downloadorg.eclipse.tcf-7c70ec575ffd0f7070ded548a5b5e5804e461f28.tar.gz
org.eclipse.tcf-7c70ec575ffd0f7070ded548a5b5e5804e461f28.tar.xz
org.eclipse.tcf-7c70ec575ffd0f7070ded548a5b5e5804e461f28.zip
Target Explorer: change button enablement
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/net/RemoteHostAddressControl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/net/RemoteHostAddressControl.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/net/RemoteHostAddressControl.java
index 882dd0758..81edb2094 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/net/RemoteHostAddressControl.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/net/RemoteHostAddressControl.java
@@ -77,7 +77,7 @@ public class RemoteHostAddressControl extends BaseEditBrowseTextControl {
public void modifyText(ModifyEvent e) {
super.modifyText(e);
boolean enabled = isValid() &&
- (!(getEditFieldValidator() instanceof NameOrIPValidator) || !((NameOrIPValidator)getEditFieldValidator()).isIP());
+ (!(getEditFieldValidator() instanceof NameOrIPValidator) || ((NameOrIPValidator)getEditFieldValidator()).isName());
getButtonControl().setEnabled(enabled);
if (enabled && getControlDecoration() != null) {
getControlDecoration().hide();
@@ -94,7 +94,7 @@ public class RemoteHostAddressControl extends BaseEditBrowseTextControl {
if (enabled) {
// The "Check" button needs specific enablement
getButtonControl().setEnabled(isValid() &&
- (!(getEditFieldValidator() instanceof NameOrIPValidator) || !((NameOrIPValidator)getEditFieldValidator()).isIP()));
+ (!(getEditFieldValidator() instanceof NameOrIPValidator) || ((NameOrIPValidator)getEditFieldValidator()).isName()));
}
}

Back to the top