问题
Which class of eclipse displays a frame which called override/implement methods, when we right click-->source-->override methods
回答1:
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:
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
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>
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
来源:https://stackoverflow.com/questions/7090169/how-does-eclipse-provide-override-implement-methods-widget