diff options
Diffstat (limited to 'bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java')
-rw-r--r-- | bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java b/bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java index 5ddd7187..49348fec 100644 --- a/bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java +++ b/bundles/org.eclipse.e4.tools.event.spy/src/org/eclipse/e4/tools/event/spy/ui/CapturedEventFilters.java @@ -39,7 +39,7 @@ import org.eclipse.swt.widgets.ToolTip; public class CapturedEventFilters { private final static String NOT_SELECTED_VALUE = "-- expected value --"; - private Composite control; + private final Composite control; private Text valueText; @@ -111,7 +111,7 @@ public class CapturedEventFilters { valueText.setText(NOT_SELECTED_VALUE); valueText.addFocusListener(new FocusListener() { public void focusLost(FocusEvent e) { - if (valueText.getText().trim().isEmpty()) { + if (valueText.getText().trim().length() == 0) { valueText.setText(NOT_SELECTED_VALUE); } } @@ -194,7 +194,7 @@ public class CapturedEventFilters { } String value = valueText.getText(); - if (value.isEmpty() || value.equals(NOT_SELECTED_VALUE)) { + if (value.length() == 0 || value.equals(NOT_SELECTED_VALUE)) { getTooltip().setText(String.format("%s is empty", getFieldName(NOT_SELECTED_VALUE))); getTooltip().setVisible(true); return; |