如何找到在Eclipse中重写的方法 [英] how to find overridable methods in eclipse

查看:1386
本文介绍了如何找到在Eclipse中重写的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

公共类test2的扩展ListActivity { }

如:我想找到什么是ListActivity的方法,可覆盖..what是短键找到这个在月食..怎样的方法可以通过Eclipse的智能感知这是假设的方法被带到onListItemClick某些参数可以listactivity被覆盖..how可以将它通过intellisense..or带来怎么能透过日食自动生成 例如:

  @覆盖
保护无效onListItemClick(ListView的L,视图V,INT位置,长的id){
    super.onListItemClick(L,V,位置ID);



}
 

解决方案

源代码>覆盖/实现方法

通过点击右键,菜单栏(Alt + S),ALT + SHIFT + S残疾人专用

ykaganovich指出的另一种方式,这是更快的覆盖单个成员。覆盖/实现允许多个成员通过一个单一的操作替代。

public class test2 extends ListActivity { }

eg:i want to find what are the methods in ListActivity that can be overridden ..what is the short key find this in eclipse.. how the method can be brought through eclipse intellisense that is suppose method onListItemClick with certain parameters that can be overriden in listactivity ..how can it be brought through intellisense..or how can it be automatically generated through eclipse eg:

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
    super.onListItemClick(l, v, position, id);



}

解决方案

Source > Override/Implement methods

Accessible via right click, menu bar (alt+s), alt+shift+s

ykaganovich points out another way, which is faster for overriding a single members. Override/Implement allows multiple members to be overridden through a single action.

这篇关于如何找到在Eclipse中重写的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆