mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Patch for Andrew Niefer
- set default C++ search sort order to be by path - modified search dialog to use checkboxes instead of radio buttons SearchFor buttons are now organized like this: Class / Struct Function Variable Union Method Field Enumeration Namespace Any Element When multiple buttons are selected, they are combined using the Or Pattern.
This commit is contained in:
parent
ebf52677b8
commit
b8321abb0a
3 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-09-03 Andrew Niefer
|
||||
- added CLASS_STRUCT to the SearchFor constants
|
||||
- Modified CSearchPattern to handle CLASS_STRUCT
|
||||
|
||||
2003-08-26 Bogdan Gheorghe
|
||||
- Added debug tracing statements to SearchEngine
|
||||
- Modified scanForNames in CSearchPattern to treat append
|
||||
|
|
|
@ -95,6 +95,8 @@ public interface ICSearchConstants {
|
|||
|
||||
public static final SearchFor MACRO = new SearchFor( 10 );
|
||||
|
||||
public static final SearchFor CLASS_STRUCT = new SearchFor( 11 );
|
||||
|
||||
/* Nature of match */
|
||||
|
||||
/**
|
||||
|
|
|
@ -76,7 +76,7 @@ public abstract class CSearchPattern implements ICSearchConstants, ICSearchPatte
|
|||
}
|
||||
|
||||
CSearchPattern pattern = null;
|
||||
if( searchFor == TYPE || searchFor == CLASS || searchFor == STRUCT || searchFor == ENUM || searchFor == UNION ){
|
||||
if( searchFor == TYPE || searchFor == CLASS || searchFor == STRUCT || searchFor == ENUM || searchFor == UNION || searchFor == CLASS_STRUCT ){
|
||||
pattern = createClassPattern( patternString, searchFor, limitTo, matchMode, caseSensitive );
|
||||
} else if ( searchFor == METHOD || searchFor == FUNCTION ){
|
||||
pattern = createMethodPattern( patternString, searchFor, limitTo, matchMode, caseSensitive );
|
||||
|
@ -239,6 +239,13 @@ public abstract class CSearchPattern implements ICSearchConstants, ICSearchPatte
|
|||
return orPattern;
|
||||
}
|
||||
|
||||
if( searchFor == CLASS_STRUCT ){
|
||||
OrPattern orPattern = new OrPattern();
|
||||
orPattern.addPattern( createClassPattern( patternString, CLASS, limitTo, matchMode, caseSensitive ) );
|
||||
orPattern.addPattern( createClassPattern( patternString, STRUCT, limitTo, matchMode, caseSensitive ) );
|
||||
return orPattern;
|
||||
}
|
||||
|
||||
IScanner scanner = ParserFactory.createScanner( new StringReader( patternString ), "TEXT", new ScannerInfo(), ParserMode.QUICK_PARSE, null );
|
||||
|
||||
IToken token = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue