2

我刚刚完成了一个新的 eclipse helios 安装,我想知道为什么自动完成不能正常工作;在我的旧版本(ganymede/galileo)中是这样。

它适用于简单的函数和类方法,但是:

  • 它不知道从其他类继承的方法
  • 它不会显示返回的链式方法的自动完成$this

例如:

class y
{
    protected $_a;

    public function setA($a)
    {
        $this->_a = $a;
        return $this;
    }
}

class x extends y
{
    protected $_b;

    public function setB($b)
    {
        $this->_b = $b;
        return $this;
    }
}

$x = new x;
$x->[AUTOCOMPLETION]

这里[AUTOCOMPLETION]只显示直接在 中实现的方法x,而不是 中的方法y

当我做:

$x->setB(123)
  ->[AUTOCOMPLETION]

...自动完成根本不起作用。这两种情况在我以前的版本中都很好用。那么有什么问题呢?我是否配置错误?

4

2 回答 2

0

在 Mac 上工作正常。它显示了 setA 和 setB

在 bugzilla 中发布错误报告

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT

于 2010-09-27T02:07:00.167 回答
0

原来我使用的版本被窃听了。Eclipse 3.7.2 再次正常工作。

于 2012-04-14T10:45:47.010 回答