Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] How to capture refactoring action in Eclipse?



Hi,

the 3.0 release of Eclipse will provide a processor/participant
architecture for refactoring. You might want to have a look at
the proposal at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-ui-home/r3_0/proposals/refactoring/participants.html.

Participants will give you the change to capture refactorings affecting
other domains (like renaming a type or moving a method).

Dirk


                                                                           
             Hongbing Kou                                                  
             <hongbingkou@yaho                                             
             o.com>                                                     To 
             Sent by:                  jdt-dev@xxxxxxxxxxx                 
             jdt-dev-admin@ecl                                          cc 
             ipse.org                                                      
                                                                   Subject 
                                       [jdt-dev] How to capture            
             02/18/2004 09:46          refactoring action in Eclipse?      
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             jdt-dev@eclipse.o                                             
                    rg                                                     
                                                                           
                                                                           




Hi, Eclipsers,

I am interested in developing a plugin to capture
refactoring actions in Eclipse. I searched through
email archives and tried the following approaches:

1. Looked for refactoring listener of JDT but
apparently JDT doesn't have it.
2. Tried to listen to menu selection event in Eclipse
  A message in JDT archive mentioned Eclipse doesn't
have the mechanism to listen to random menu selection
and I did not find it either.
3. Used setGlobalActionHandler() to redefine
refactoring action but the original refactoring action
will be blocked out and it only works to drop-down
menu in the workbench not to popup menu.

Finally I checked out Eclipse source code and realized
that the ideal solution is to add action listeners to
Eclipse JDT. I want to ask two questions here:
1. Is my resolution correct or not? Is there better
way to accomplish this in Eclipse?
2. Could I contribute this to Eclipse JDT so that
future users of my plugin don't have to install the
customized JDT plugin?

Any suggestion will be appreciated.
Thanks,
Hongbing

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-dev




Back to the top