Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » extension points in org.eclipse.ltk.core.refactoring
extension points in org.eclipse.ltk.core.refactoring [message #325846] Thu, 28 February 2008 20:52 Go to next message
Jason Hocker is currently offline Jason HockerFriend
Messages: 43
Registered: July 2009
Member
I need help understanding the refactoring API. I am concerned with
renaming, moving, deleting, and copying certain files in the navigator. I'm
not sure if I should be using the extension points in
org.eclipse.ltk.core.refactoring. When the user clicks one of our files in
the navigator, I want that file, and others, to have the operation performed
on them. Should I change the refactoring of rename, etc, or instead use
IResourceChangeListeners?

Is this type of refactoring documented or is the documentation in the code?
Re: extension points in org.eclipse.ltk.core.refactoring [message #325873 is a reply to message #325846] Fri, 29 February 2008 13:43 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You would use participants to update other files when you see
move/delete/rename. There is an article available at:

http://www.eclipse.org/articles/Article-LTK/ltk.html


Later,
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/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: extension points in org.eclipse.ltk.core.refactoring [message #325875 is a reply to message #325873] Fri, 29 February 2008 14:35 Go to previous messageGo to next message
Jason Hocker is currently offline Jason HockerFriend
Messages: 43
Registered: July 2009
Member
What is the extension point org.eclipse.ltk.core.refactoring used for then?
I don't see that in the article.


"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:fq91vp$58e$1@build.eclipse.org...
> You would use participants to update other files when you see
> move/delete/rename. There is an article available at:
>
> http://www.eclipse.org/articles/Article-LTK/ltk.html
>
>
> Later,
> 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/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Re: extension points in org.eclipse.ltk.core.refactoring [message #325926 is a reply to message #325875] Mon, 03 March 2008 14:00 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jay Simpson wrote:
> What is the extension point org.eclipse.ltk.core.refactoring used for then?
> I don't see that in the article.

It is mentioned (just in passing :-) in the "Refactoring Participants
(as of Eclipse 3.2M2)" box. Those extensions are how a plugin would
contribute new refactorings (and participants to existing refactorings).

There should be some information in the extension point description.
And as they mention, if you import the PDE plugins as source you should
see examples of the participants being used (so when a Java class is
renamed, the plugin.xml files can be updated to the new class name, etc).

i.e. so if you wanted to add a new MoveMyModel refactoring, you would
use org.eclipse.ltk.core.refactoring.refactoringContributions and if you
wanted to update some of your files on a Java Move refactoring you would
use org.eclipse.ltk.core.refactoring.moveParticipants.

As of 3.4 the navigator move, delete, and rename menu actions default to
using LTK refactorings. That means that adding a participant would
allow you to participate in those operations.

Later,
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/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Eclipse NLS class in non-osgi environment
Next Topic:Disposing listeners added to Selection service
Goto Forum:
  


Current Time: Thu Nov 14 09:03:30 GMT 2024

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

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

Back to the top