1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

2004-08-25 Chris Wiebe

support for matching enclosed type names
	* browser/org/eclipse/cdt/internal/ui/browser/typehierarchy/OpenTypeHierarchyAction.java
	* src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java
This commit is contained in:
Chris Wiebe 2004-08-26 02:22:02 +00:00
parent 4732ac2c19
commit 2674ed534a
3 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,14 @@
2004-08-25 Chris Wiebe
support for matching enclosed type names
* browser/org/eclipse/cdt/internal/ui/browser/typehierarchy/OpenTypeHierarchyAction.java
* src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java
2004-08-25 Chris Wiebe
Got rid of little 'C' icons on the editor preference pages
* src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java
2004-08-25 Alain Magloire
Fix for 65761: Show all the include paths in the includes container.

View file

@ -181,7 +181,7 @@ public class OpenTypeHierarchyAction extends SelectionDispatchAction {
ITypeSearchScope projectScope = new TypeSearchScope();
projectScope.add(unit.getCProject());
int[] kinds = {ICElement.C_CLASS, ICElement.C_STRUCT};
ITypeInfo[] types = AllTypesCache.getTypes(projectScope, new QualifiedTypeName(name), kinds);
ITypeInfo[] types = AllTypesCache.getTypes(projectScope, new QualifiedTypeName(name), kinds, true);
if (types != null) {
List elements = new ArrayList(types.length);
for (int i = 0; i < types.length; ++i) {

View file

@ -273,7 +273,7 @@ public class AddIncludeOnSelectionAction extends Action implements IUpdate {
}
ITypeInfo[] results = null;
if (!monitor.isCanceled()) {
results = AllTypesCache.getTypes(scope, new QualifiedTypeName(name), types);
results = AllTypesCache.getTypes(scope, new QualifiedTypeName(name), types, true);
if (!monitor.isCanceled()) {
for (int i = 0; i < results.length; ++i) {
ITypeInfo info = results[i];