diff -r fcb77f9783d2 -r 49c226a8748e cdt/cdt_6_0_x/org.eclipse.cdt.ui.tests/resources/refactoring/ExtractConstantHistory.rts --- a/cdt/cdt_6_0_x/org.eclipse.cdt.ui.tests/resources/refactoring/ExtractConstantHistory.rts Tue Aug 04 14:00:13 2009 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,232 +0,0 @@ -//!ExtractConstantInt -//#org.eclipse.cdt.ui.tests.refactoring.RefactoringHistoryTest -//@A.h -#ifndef A_H_ -#define A_H_ - -class A -{ -public: - A(); - virtual ~A(); - int foo(); - void bar(); -}; - -#endif /*A_H_*/ - -//= -#ifndef A_H_ -#define A_H_ - -class A -{ -public: - A(); - virtual ~A(); - int foo(); - void bar(); - static const int theAnswer = 42; -}; - -#endif /*A_H_*/ - -//@A.cpp -#include "A.h" - -A::A() -{ -} - -A::~A() -{ -} - -int A::foo() -{ - return 42; //Hallo -} - -void A::bar() -{ - int a = 42; - int b = 42; -} - -//= -#include "A.h" - -A::A() -{ -} - -A::~A() -{ -} - -int A::foo() -{ - return theAnswer; //Hallo -} - -void A::bar() -{ - int a = theAnswer; - int b = theAnswer; -} - -//@refScript.xml - - - - - - -//!replaceNumberProtected -//#org.eclipse.cdt.ui.tests.refactoring.RefactoringHistoryTest -//@A.h -#ifndef A_H_ -#define A_H_ - -class A -{ -public: - A(); - virtual ~A(); - int foo(); -}; - -#endif /*A_H_*/ - -//= -#ifndef A_H_ -#define A_H_ - -class A -{ -public: - A(); - virtual ~A(); - int foo(); -protected: - static const int theAnswer = 42; -}; - -#endif /*A_H_*/ - -//@A.cpp -#include "A.h" - -A::A() -{ -} - -A::~A() -{ -} - -int A::foo() -{ - return 42; -} - -//= -#include "A.h" - -A::A() -{ -} - -A::~A() -{ -} - -int A::foo() -{ - return theAnswer; -} - -//@refScript.xml - - - - - -//!replaceNumberPrivate -//#org.eclipse.cdt.ui.tests.refactoring.RefactoringHistoryTest -//@A.h -#ifndef A_H_ -#define A_H_ - -class A -{ -public: - A(); - virtual ~A(); - int foo(); -}; - -#endif /*A_H_*/ - -//= -#ifndef A_H_ -#define A_H_ - -class A -{ -public: - A(); - virtual ~A(); - int foo(); -private: - static const int theAnswer = 42; -}; - -#endif /*A_H_*/ - -//@A.cpp -#include "A.h" - -A::A() -{ -} - -A::~A() -{ -} - -int A::foo() -{ - return 42; -} - -//= -#include "A.h" - -A::A() -{ -} - -A::~A() -{ -} - -int A::foo() -{ - return theAnswer; -} - -//@refScript.xml - - - -