Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Refactoring
Refactoring [message #164397] Thu, 23 February 2006 22:01 Go to next message
Eclipse UserFriend
Originally posted by: zachi.wpi.edu

As a research project, I need to build a plug-in that will do some
C-language refactoring (elimination of globals, "method" extraction,
etc.). To get that working, I need a few pointers on:

(1) how to highlight multiple lines (or regions) in the editor
(2) how to change the DOM so it will change the source (or do I do it
the other way around?)

any help will be appreciated.

thanks,

Zachi
Re: Refactoring [message #165381 is a reply to message #164397] Tue, 07 March 2006 17:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: maarten.bodewes.gmail.com

Zachi Klopman wrote:
> As a research project, I need to build a plug-in that will do some
> C-language refactoring (elimination of globals, "method" extraction,
> etc.). To get that working, I need a few pointers on:
>
> (1) how to highlight multiple lines (or regions) in the editor
> (2) how to change the DOM so it will change the source (or do I do it
> the other way around?)
>
> any help will be appreciated.
>
You won't get an answer for this. You need to try to find these things
out yourself, and if you can't, show what you have done so that we can
see what you've done and correct it. Try to read into some AST (abstract
syntax tree) first.

Maarten
Re: Refactoring [message #166541 is a reply to message #164397] Fri, 24 March 2006 10:54 Go to previous message
Eclipse UserFriend
> (2) how to change the DOM so it will change the source (or do I do it
> the other way around?)

The DOM will not rewrite the source, so yes, you do it the other way
around: modify the source and recreate the DOM.

-Andrew
Previous Topic:How to use pathentry variables?
Next Topic:Eclipse CDT for eclipse 3.2 M5
Goto Forum:
  


Current Time: Sun May 11 09:16:50 EDT 2025

Powered by FUDForum. Page generated in 0.02500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top