From: Baptiste L. <gai...@fr...> - 2003-04-11 13:55:52
|
I'll be on holidays until April 22. Progress on the CodeModel are going well. I'm currently working on the declaration expression (declaration of variables). Some case still need to be tested (and maybe implemented): - modifying primary type - modifying variable name - modifying/adding a secondary type prefix - modifying/adding a type suffix - modifying/adding a variable initializer (assignment or constructor) You're welcome to try your hand at it. Once it is done, the code model for expression will need to be extended to include datas required for refactoring (ids, and symbol for inline temp). The aim is to provide a high-level layer for source code manipulation, so refactoring are implemented without 'touching' the text directly. Also, last week-end I've played a bit with Boost.Python, a library for binding C++ to python objects. Results are fairly impressive (take very little time to map a class once you figured out how to do it). I'm thinking of using python to implement the code analysis and refactoring layer of the code. This would hopefully help us going faster. What do you think ? Baptiste. --- Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html Language: English, French |
From: Devrim E. <de...@ma...> - 2003-04-11 15:52:50
|
Baptiste Lepilleur wrote: > I'll be on holidays until April 22. > > Progress on the CodeModel are going well. I'm currently working on the >declaration expression (declaration of variables). Some case still need to be >tested (and maybe implemented): > - modifying primary type > - modifying variable name > - modifying/adding a secondary type prefix > - modifying/adding a type suffix > - modifying/adding a variable initializer (assignment or constructor) > > You're welcome to try your hand at it. > > Once it is done, the code model for expression will need to be extended to >include datas required for refactoring (ids, and symbol for inline temp). > > The aim is to provide a high-level layer for source code manipulation, so >refactoring are implemented without 'touching' the text directly. > > Also, last week-end I've played a bit with Boost.Python, a library for >binding C++ to python objects. Results are fairly impressive (take very little >time to map a class once you figured out how to do it). > Hi, I have been a member of the mailing list for some time now,but I shall confess I haven't been reading all the mails posted. I use Jedit for C++ development on Linux. As far as I know cpptool has a plugin for Eclipse. I am not well informed about how it can be interfaced to other editor, e.g. jedit but I would like to hear and learn about it. Jedit being a java based editor, it supports python for plugins. Therefore it is possible to write a python script and run it in Jedit. I would be interested in learning how it can be possible to integrate CppTool to Jedit via python interface. Or is there any other way of doing it ? > > I'm thinking of using python to implement the code analysis and refactoring >layer of the code. This would hopefully help us going faster. What do you >think ? > I am not familiar with internals of CppTool but this kind of layer I have for my own projects and they significantly speed up development. > > Baptiste. > >--- >Baptiste Lepilleur <gai...@fr...> >http://gaiacrtn.free.fr/index.html >Language: English, French > > >------------------------------------------------------- >This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger >for complex code. Debugging C/C++ programs can leave you feeling lost and >disoriented. TotalView can help you find your way. Available on major UNIX >and Linux platforms. Try it free. www.etnus.com >_______________________________________________ >Cpptool-develop mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cpptool-develop > > > > |
From: Andre B. <and...@gm...> - 2003-04-12 11:49:12
|
Devrim Erdem wrote: > I have been a member of the mailing list for some time now,but I shall > confess I haven't been reading all the mails posted. > > I use Jedit for C++ development on Linux. As far as I know cpptool has > a plugin for Eclipse. I am not well informed about how it can be > interfaced to other editor, e.g. jedit but I would like to hear and > learn about it. > > Jedit being a java based editor, it supports python for plugins. > Therefore it is possible to write a python script and run it in Jedit. > > I would be interested in learning how it can be possible to integrate > CppTool to Jedit via python interface. Or is there any other way of > doing it ? > >> >> I'm thinking of using python to implement the code analysis and >> refactoring layer of the code. This would hopefully help us going >> faster. What do you think ? >> > I am not familiar with internals of CppTool but this kind of layer I > have for my own projects and they significantly speed up development. > Hello Devrim, I'm the author of the eclipse plugin. The way I've implemented this was very similar to the Visual-Studio-Plugin. I've written a native class which simply maps the access/modify routines of a text document of our CppTool into access/modify routines of the java-class responsible for the editor of eclipse. This was very simple since only very basic operations need to be written. - get selection text - set selection area - set selection text such things are very common for an editor. So if you find such an interface in phyton it would be possible to integrate. To check the other plugins look at EclipseDocumentHelper.cpp/h (this is the interface between CppTool and Eclipse-Editor) VCLinebasedTextDocument.cpp/h (this is the interface between CppTool and VisualStudio-Editor) nice to meet you, André Baresel The summer is starting in berlin, GREAT ! |
From: Devrim E. <de...@ma...> - 2003-04-12 14:33:52
|
Andre Baresel wrote: > Devrim Erdem wrote: > >> I have been a member of the mailing list for some time now,but I >> shall confess I haven't been reading all the mails posted. >> >> I use Jedit for C++ development on Linux. As far as I know cpptool >> has a plugin for Eclipse. I am not well informed about how it can be >> interfaced to other editor, e.g. jedit but I would like to hear and >> learn about it. >> >> Jedit being a java based editor, it supports python for plugins. >> Therefore it is possible to write a python script and run it in Jedit. >> >> I would be interested in learning how it can be possible to integrate >> CppTool to Jedit via python interface. Or is there any other way of >> doing it ? >> >>> >>> I'm thinking of using python to implement the code analysis and >>> refactoring layer of the code. This would hopefully help us going >>> faster. What do you think ? >>> >> >> I am not familiar with internals of CppTool but this kind of layer I >> have for my own projects and they significantly speed up development. >> > Hello Devrim, > > I'm the author of the eclipse plugin. The way I've implemented this > was very similar to the Visual-Studio-Plugin. I've written a native > class which > simply maps the access/modify routines of a text document of our > CppTool into access/modify routines of the java-class responsible for > the editor > of eclipse. This was very simple since only very basic operations need > to be written. > - get selection text > - set selection area > - set selection text > such things are very common for an editor. So if you find such an > interface in phyton it would be possible to integrate. Sure there exists such functionality in Jedit's python interface. But i have a question. I understand that there are refactoring operations which will need to modify several files at once. Are those also supported already in CppTool and in your native class ? > > > To check the other plugins look at > EclipseDocumentHelper.cpp/h (this is the interface > between CppTool and Eclipse-Editor) > VCLinebasedTextDocument.cpp/h (this is the interface between > CppTool and VisualStudio-Editor) > > nice to meet you, > André Baresel > > The summer is starting in berlin, > GREAT ! Also in Rosenheim, Bayern ! |
From: Andre B. <and...@gm...> - 2003-04-12 19:15:01
|
> > >> Hello Devrim, >> >> I'm the author of the eclipse plugin. The way I've implemented this >> was very similar to the Visual-Studio-Plugin. I've written a native >> class which >> simply maps the access/modify routines of a text document of our >> CppTool into access/modify routines of the java-class responsible for >> the editor >> of eclipse. This was very simple since only very basic operations >> need to be written. >> - get selection text >> - set selection area >> - set selection text >> such things are very common for an editor. So if you find such an >> interface in phyton it would be possible to integrate. > > > Sure there exists such functionality in Jedit's python interface. > > But i have a question. I understand that there are refactoring > operations which will need to modify several files at once. Are those > also supported already in CppTool and in your native class ? Well, refactoring is only working at file level at the moment, so there's no interface yet defined to do modifications at project level where several files need to be changed. So the interface described above, is the only thing is needed at the moment. As you can see due the last postings, we are preparing the next step which is operating at file level. Routines to parse and modify source at the level of a file have been created during the last weeks. until later, André |
From: Baptiste L. <gai...@fr...> - 2003-04-23 08:09:29
|
----- Original Message ----- From: "Devrim Erdem" <de...@ma...> To: <and...@gm...>; <cpp...@li...> Sent: Saturday, April 12, 2003 4:35 PM Subject: Re: [Cpptool-develop] Status... > Andre Baresel wrote: > > > Devrim Erdem wrote: > > > >> I have been a member of the mailing list for some time now,but I > >> shall confess I haven't been reading all the mails posted. > >> > >> I use Jedit for C++ development on Linux. As far as I know cpptool > >> has a plugin for Eclipse. I am not well informed about how it can be > >> interfaced to other editor, e.g. jedit but I would like to hear and > >> learn about it. > >> > >> Jedit being a java based editor, it supports python for plugins. > >> Therefore it is possible to write a python script and run it in Jedit. > >> > >> I would be interested in learning how it can be possible to integrate > >> CppTool to Jedit via python interface. Or is there any other way of > >> doing it ? > >> > >>> > >>> I'm thinking of using python to implement the code analysis and > >>> refactoring layer of the code. This would hopefully help us going > >>> faster. What do you think ? > >>> > >> > >> I am not familiar with internals of CppTool but this kind of layer I > >> have for my own projects and they significantly speed up development. > >> > > Hello Devrim, > > > > I'm the author of the eclipse plugin. The way I've implemented this > > was very similar to the Visual-Studio-Plugin. I've written a native > > class which > > simply maps the access/modify routines of a text document of our > > CppTool into access/modify routines of the java-class responsible for > > the editor > > of eclipse. This was very simple since only very basic operations need > > to be written. > > - get selection text > > - set selection area > > - set selection text > > such things are very common for an editor. So if you find such an > > interface in phyton it would be possible to integrate. > > Sure there exists such functionality in Jedit's python interface. Does Jython support python extension (python module implemented in DLL) ? If it is the case, the we could move from using JNI for binding to using Boost.Python + Jython. What would be needed then is subclassing a TextDocument class exported to python. > > But i have a question. I understand that there are refactoring > operations which will need to modify several files at once. Are those > also supported already in CppTool and in your native class ? Modification are done using the TextDocument interface, which at the current you provide when asking for a refactoring (all works on the active document). Working on multiple files introduce other issues, such as: undo/redo: does the IDE support group command (all text modification made on multiple documents can be automatically undo) ? project interface: interfacing with the IDE to retreive the files that compose the project, and obtaining a TextDocument interface for those file. Baptiste. > > To check the other plugins look at > > EclipseDocumentHelper.cpp/h (this is the interface > > between CppTool and Eclipse-Editor) > > VCLinebasedTextDocument.cpp/h (this is the interface between > > CppTool and VisualStudio-Editor) > > > > nice to meet you, > > André Baresel > > > > The summer is starting in berlin, > > GREAT ! > > Also in Rosenheim, Bayern ! |