简体   繁体   中英

How does eclipse provide Override/implement methods widget?

Which class of eclipse displays a frame which called override/implement methods, when we right click-->source-->override methods

I don't know but maybe PDE Plug-in Spy can tell you: http://www.eclipse.org/pde/incubator/spy/

[EDIT] Here is what I did:

  1. I looked for the string "O&verride/Implement Methods..." in the Eclipse sources. It can be found here: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/tree/org.eclipse.jdt.ui/plugin.properties

  2. That gave me the property to search for: OverrideMethodsAction.label It can be found in the file plugin.xml :

     <action definitionId="org.eclipse.jdt.ui.edit.text.java.override.methods" label="%OverrideMethodsAction.label" retarget="true" menubarPath="org.eclipse.jdt.ui.source.menu/generateGroup" id="org.eclipse.jdt.ui.actions.OverrideMethods"> </action>
  3. The id is the class name.

You can find the source here: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/tree/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OverrideMethodsAction.java

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM