Update of /cvsroot/cpptool/rfta/src/eclipseplugin/CppBridge
In directory sc8-pr-cvs1:/tmp/cvs-serv10043/eclipseplugin/CppBridge
Modified Files:
EclipseBridge_RenameLocaleVariable.cpp EclipseDocumentHelper.h
Log Message:
-- integrated preprocessor (replaced all NonSemanticBlanker)
Index: EclipseBridge_RenameLocaleVariable.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/eclipseplugin/CppBridge/EclipseBridge_RenameLocaleVariable.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** EclipseBridge_RenameLocaleVariable.cpp 15 Feb 2003 13:32:03 -0000 1.1
--- EclipseBridge_RenameLocaleVariable.cpp 13 Jan 2004 22:27:35 -0000 1.2
***************
*** 8,11 ****
--- 8,12 ----
#include <rfta/refactoring/RefactoringError.h>
#include <rfta/refactoring/RenameTempRefactoring.h>
+ #include <rfta/parser/Source.h>
#include "..\generatedcode\org_eclipse_cpprefactoring_internal_EclipseBridge.h"
***************
*** 22,26 ****
LONG _stdcall testexc(struct _EXCEPTION_POINTERS *ExceptionInfo)
{
! MessageBox(NULL,"Userdefined C++ Exception Handler. Choose CANCEL in next dialog to debug.","C++ Exception Catched",MB_OK);
return EXCEPTION_CONTINUE_SEARCH;
}
--- 23,27 ----
LONG _stdcall testexc(struct _EXCEPTION_POINTERS *ExceptionInfo)
{
! MessageBox(NULL,"Userdefined C++ Exception handler within Refactoring-Eclipse-Plugin. Choose CANCEL in next dialog to debug.","C++ Exception Catched",MB_OK);
return EXCEPTION_CONTINUE_SEARCH;
}
***************
*** 33,37 ****
#endif
! /**
* function is called from eclipse environment and does
* apply RenameLocalVar-Refactoring.
--- 34,38 ----
#endif
! /**
* function is called from eclipse environment and does
* apply RenameLocalVar-Refactoring.
***************
*** 49,52 ****
--- 50,56 ----
jclass JavaException = 0;
EclipseHandler * hdl = 0;
+
+ // create a simple source manager (TODO: integrate this with the IDE file managment)
+ Refactoring::NullSourceManager manager;
try {
***************
*** 59,63 ****
{
EclipseDocumentHelper& doc = hdl->getActiveDocument();
! Refactoring::RenameTempRefactoring refactoring( doc, doc.getSelectionRange().getStartIndex() );
oldname = refactoring.getOldVariableName().c_str();
--- 63,68 ----
{
EclipseDocumentHelper& doc = hdl->getActiveDocument();
! Refactoring::SourcePtr sourceDoc_ = Refactoring::SourcePtr( new Refactoring::Source(doc.shared_from_this()) );
! Refactoring::RenameTempRefactoring refactoring( sourceDoc_, manager, doc.getSelectionRange().getStartIndex() );
oldname = refactoring.getOldVariableName().c_str();
Index: EclipseDocumentHelper.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/eclipseplugin/CppBridge/EclipseDocumentHelper.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** EclipseDocumentHelper.h 16 May 2003 19:55:01 -0000 1.2
--- EclipseDocumentHelper.h 13 Jan 2004 22:27:35 -0000 1.3
***************
*** 11,15 ****
#include <jni.h>
#include <string>
! #include <rfta/refactoring/TextDocument.h>
class EclipseDocumentHelper: public Refactoring::TextDocument {
--- 11,15 ----
#include <jni.h>
#include <string>
! #include <rfta/parser/TextDocument.h>
class EclipseDocumentHelper: public Refactoring::TextDocument {
|