File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
bundles/com.espressif.idf.sdk.config.ui/src/com/espressif/idf/sdk/config/ui Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ public class SDKConfigurationFilter extends PatternFilter
1010 @ Override
1111 protected boolean isLeafMatch (Viewer viewer , Object element )
1212 {
13-
1413 if (element instanceof KConfigMenuItem )
1514 {
1615 KConfigMenuItem highLevelElem = (KConfigMenuItem ) element ;
1716
18- return wordMatches (highLevelElem .getTitle ()) || recursiveMatch (highLevelElem );
17+ return wordMatches (highLevelElem .getTitle ()) || wordMatches (highLevelElem .getName ())
18+ || recursiveMatch (highLevelElem );
1919 }
2020
2121 return false ;
@@ -25,12 +25,12 @@ private boolean recursiveMatch(KConfigMenuItem parent)
2525 {
2626 if (parent .getChildren ().isEmpty ())
2727 {
28- return wordMatches (parent .getName ());
28+ return wordMatches (parent .getName ()) || wordMatches ( parent . getTitle ()) ;
2929 }
3030
3131 for (KConfigMenuItem child : parent .getChildren ())
3232 {
33- if (wordMatches (child .getName ()) || recursiveMatch (child ))
33+ if (wordMatches (child .getName ()) || wordMatches ( child . getTitle ()) || recursiveMatch (child ))
3434 {
3535 return true ;
3636 }
You can’t perform that action at this time.
0 commit comments