Mirko Stocker wrote: > Hi Chris > > On Wednesday 25 April 2007 16:28:19 Christopher Williams wrote: > >> I'm not sure if I'm pointing you to the right spot, but if you take a >> look at the JDT's ui plugin.xml they set up actions, menus and >> actionSetPartAssociations for refactoring. >> > > Thank you for your hints. I think I do now understand how they manage their > menus. But how do they add it to the resources view's context menu? And how > can I get rid of the existing rename there? Any clue? :) > To add something to this context menu you'll need an objectContribution that targets IFile (or IResource). I can send you some code if you want, but searching the Eclipse Help for objectContribution should work.
However: I don't think you should _remove_ the Rename call; instead use the refactoringParticipants extension point; you can register to be notified whenever a Rename happens, and you can then add your custom changes to the RenameChange. Look here: http://www.eclipse.org/articles/Article-LTK/ltk.html And if you want a concrete example, I did this in the rdt-jruby plugin: http://rubyforge.org/projects/rdt-jruby/ (check the plugin.xml in the CVS for details - you'll have to check it out, it seems like Rubyforge doesn't have a WebInterface for CVS anymore). murphee -- Blog @ http://jroller.com/page/murphee Maintainer of EclipseShell @ http://eclipse-shell.sourceforge.net/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Rubyeclipse-development mailing list Rubyeclipse-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development