Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/FilteredCheckboxTree.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/FilteredCheckboxTree.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/FilteredCheckboxTree.java
index 4b4c560b3..a7b0b949d 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/FilteredCheckboxTree.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/components/FilteredCheckboxTree.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010 Red Hat, Inc.
+ * Copyright (c) 2010, 2015 Red Hat, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* Chris Aniszczyk <caniszczyk@gmail.com> - initial implementation
+ * Lars Vogel <Lars.Vogel@vogella.com> - Bug 462866
*******************************************************************************/
package org.eclipse.egit.ui.internal.components;
@@ -120,6 +121,18 @@ public class FilteredCheckboxTree extends FilteredTree {
return parentText;
}
+ @Override
+ protected String getFilterString() {
+ String filterString = super.getFilterString();
+ if (!filterText.getText().equals(initialText)
+ && filterString.indexOf("*") != 0 //$NON-NLS-1$
+ && filterString.indexOf("?") != 0 //$NON-NLS-1$
+ && filterString.indexOf(".") != 0) {//$NON-NLS-1$
+ filterString = "*" + filterString; //$NON-NLS-1$
+ }
+ return filterString;
+ }
+
/**
* Clears the filter
*/
@@ -140,4 +153,4 @@ public class FilteredCheckboxTree extends FilteredTree {
protected long getRefreshJobDelay() {
return FILTER_DELAY;
}
-} \ No newline at end of file
+}

Back to the top