Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Refactoring API - how can I handle the preview of a change
Refactoring API - how can I handle the preview of a change [message #259963] Sat, 02 May 2009 17:26 Go to next message
Eclipse UserFriend
Hello,

I'm new here, and I don't know if this is the right place for this
question, but let's go:

I'm developing a plugin with the refactoring API of Eclipse. I can get the
Change Object, but I need to handle the preview because I want to know
witch methods changes with the refactoring. I need this before I do the
refactoring. Anyone know how can I do this?

Thanks,

and sorry for my poor english

Gustavo
Re: Refactoring API - how can I handle the preview of a change [message #259975 is a reply to message #259963] Mon, 04 May 2009 10:21 Go to previous messageGo to next message
Eclipse UserFriend
If you follow the steps in
http://www.eclipse.org/articles/article.php?file=Article-Unl eashing-the-Power-of-Refactoring/index.html
is that not the kind of preview you are looking for?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm
Re: Refactoring API - how can I handle the preview of a change [message #259983 is a reply to message #259975] Mon, 04 May 2009 21:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi Paul,

thanks for the help.

I had already looked this article, but the preview showed in figure 12 is
handled by a internal api. I can't access this preview in my plugin code
(or I don' know how).

I want to make a method that access this preview and return the
differences between the original code and the refactored code. I need this
before the refactoring perform and I'm using the JDT implementation of the
LTK API. (I think this is possible, because this preview showed for the
user)

Can you tell me how I do this?

Thanks

Gustavo
Re: Refactoring API - how can I handle the preview of a change [message #259987 is a reply to message #259983] Mon, 04 May 2009 23:18 Go to previous message
Eclipse UserFriend
Problem solved,

I got the object CompilationUnitChange from the object Change. This object
has the method getPreviewContent().

Thanks for the attention.

Gustavo
Previous Topic:LTK Refactoring / Rename participants
Next Topic:0 references in workspace (no JRE)
Goto Forum:
  


Current Time: Tue May 13 18:29:45 EDT 2025

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

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

Back to the top