Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2008-02-28 16:43:33 +0000
committerMarkus Schorn2008-02-28 16:43:33 +0000
commita4513baa305ef32348e8588bb6d4f0221780d1d2 (patch)
tree4b421fe6b71e716eb1258042673b3393e4ba55c2 /core/org.eclipse.cdt.ui.tests
parent40e3f39a27319db4b5e3c38de6310c0ac823afc3 (diff)
downloadorg.eclipse.cdt-a4513baa305ef32348e8588bb6d4f0221780d1d2.tar.gz
org.eclipse.cdt-a4513baa305ef32348e8588bb6d4f0221780d1d2.tar.xz
org.eclipse.cdt-a4513baa305ef32348e8588bb6d4f0221780d1d2.zip
Introduce interfaces for c- and c++ specific visitors to allow for visitors that work for both c- and c++.
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java b/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java
index 6b590e5035d..ece0d7673b7 100644
--- a/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java
+++ b/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java
@@ -1,12 +1,12 @@
/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
+ * Copyright (c) 2005, 2008 IBM Corporation and others.
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * IBM Rational Software - Initial API and implementation
+ * IBM Rational Software - Initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.ui.tests.DOMAST;
@@ -64,6 +64,7 @@ import org.eclipse.ui.views.properties.PropertySheet;
import org.eclipse.cdt.core.dom.ast.ASTSignatureUtil;
import org.eclipse.cdt.core.dom.ast.ASTTypeUtil;
+import org.eclipse.cdt.core.dom.ast.ASTVisitor;
import org.eclipse.cdt.core.dom.ast.IASTArrayModifier;
import org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier;
import org.eclipse.cdt.core.dom.ast.IASTDeclaration;
@@ -87,9 +88,7 @@ import org.eclipse.cdt.core.dom.ast.IFunction;
import org.eclipse.cdt.core.dom.ast.IType;
import org.eclipse.cdt.core.dom.ast.IVariable;
import org.eclipse.cdt.core.dom.ast.IASTEnumerationSpecifier.IASTEnumerator;
-import org.eclipse.cdt.core.dom.ast.c.CASTVisitor;
import org.eclipse.cdt.core.dom.ast.c.ICASTDesignator;
-import org.eclipse.cdt.core.dom.ast.cpp.CPPASTVisitor;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTConstructorChainInitializer;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTTemplateParameter;
import org.eclipse.cdt.core.model.CModelException;
@@ -373,11 +372,11 @@ public class DOMAST extends ViewPart {
start=System.currentTimeMillis();
if (aTu instanceof CPPASTTranslationUnit ) {
action = new CPPPopulateASTViewAction(aTu, monitor);
- aTu.accept( (CPPASTVisitor) action);
+ aTu.accept( (ASTVisitor) action);
}
else if (aTu instanceof CASTTranslationUnit){
action = new CPopulateASTViewAction(aTu, monitor);
- aTu.accept( (CASTVisitor) action);
+ aTu.accept( (ASTVisitor) action);
}
monitor.worked(30);
System.out.println(DOM_AST_VIEW_DONE + GENERATING_INITIAL_TREE + COLON_SPACE + (System.currentTimeMillis()- start) );

Back to the top