Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » When will PDT support
When will PDT support [message #479479] Tue, 11 August 2009 09:57 Go to next message
Eclipse UserFriend
Originally posted by: mnm.criion.net

$this->Object->"auto-completion here" when objects are given as
construct parameters and stored as class members?

I am still on PDT 1.05 as the newer (2.x) are too slow for production
environments regarding auto-completion.
--
-michael
Re: When will PDT support [message #479560 is a reply to message #479479] Tue, 11 August 2009 14:50 Go to previous messageGo to next message
Mark Kirchner is currently offline Mark KirchnerFriend
Messages: 8
Registered: July 2009
Junior Member
> $this->Object->"auto-completion here" when objects are given as
> construct parameters and stored as class members?

PDT 2.1.1 already does that if you properly document the members
("Object" in your case):

class FooClass {
/**
* @var BarClass
*/
public $Object;

public function __construct(BarClass $o) {
$this->Object = $o;
}

public function worker() {
$this->Object->|
}
}

class BarClass {
public function doSomething() {}
public function doSomeOtherThing() {}
}

Code-assist invoked at the "|"-position in worker() suggests both
methods of "BarClass".

> I am still on PDT 1.05 as the newer (2.x) are too slow for production
> environments regarding auto-completion.

Hm, don't kwow if 1.05 is able to do stuff like that, sorry.

HTH,
Mark
Re: When will PDT support (CC/CA properly) [message #479626 is a reply to message #479479] Tue, 11 August 2009 18:20 Go to previous messageGo to next message
elkuku is currently offline elkukuFriend
Messages: 22
Registered: July 2009
Junior Member
Hi Michael,
don't know if that helps but - You are not alone ;)

We have been told, that this will be fixed ... somewhat soon..
let me quote Roy Ganor:
---
Just to make a note here that the Eclipse PDT and DLTK teams are working
these days on important performance issues regarding the issues raised here.

You will be able to see it fixed on the 2.2 head work.

Stay tuned for the next integration build :)

Roy
---

I am also on 1.05 for "critical" projects but I try to test the version
2 branch from time to time..

Regards,
Nikolai

Michael Madsen schrieb:
> $this->Object->"auto-completion here" when objects are given as
> construct parameters and stored as class members?
>
> I am still on PDT 1.05 as the newer (2.x) are too slow for production
> environments regarding auto-completion.
Re: When will PDT support (CC/CA properly) [message #479675 is a reply to message #479626] Tue, 11 August 2009 22:59 Go to previous messageGo to next message
Tom Walter is currently offline Tom WalterFriend
Messages: 8
Registered: July 2009
Junior Member
Anecdotally, it seems to me that 2.1.1 is already a lot better than
2.1.0 was in terms of code completion speed. Worth upgrading.

Cheers
Tom

Nikolai Plath wrote:
> Hi Michael,
> don't know if that helps but - You are not alone ;)
>
> We have been told, that this will be fixed ... somewhat soon..
> let me quote Roy Ganor:
> ---
> Just to make a note here that the Eclipse PDT and DLTK teams are working
> these days on important performance issues regarding the issues raised here.
>
> You will be able to see it fixed on the 2.2 head work.
>
> Stay tuned for the next integration build :)
>
> Roy
> ---
>
> I am also on 1.05 for "critical" projects but I try to test the version
> 2 branch from time to time..
>
> Regards,
> Nikolai
>
> Michael Madsen schrieb:
>> $this->Object->"auto-completion here" when objects are given as
>> construct parameters and stored as class members?
>>
>> I am still on PDT 1.05 as the newer (2.x) are too slow for production
>> environments regarding auto-completion.
Re: When will PDT support [message #479717 is a reply to message #479560] Wed, 12 August 2009 07:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mnm.criion.net

Thanks for the update Mark.

As a test I tried the phpdoc and guess what, it worked! In PDT 1.0.5 of
all things! I mean if this has been "the way" to get code completion why
has non of the devs told us since this has been a feature outcry for so
long?
--
-michael
Re: When will PDT support [message #485802 is a reply to message #479560] Tue, 15 September 2009 06:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mnm.criion.net

Sorry for bringing this up again, but can this be done inside functions
where objects are not passed by parameter, e.g. if I get it from an array?

I have tried to put

function meh($array) {
/**
* $var SomeClass
*/
$object = $array[0];
}

but that does not work.

Any suggestions?
--
-michael
Re: When will PDT support [message #485814 is a reply to message #485802] Tue, 15 September 2009 07:36 Go to previous messageGo to next message
Mark Kirchner is currently offline Mark KirchnerFriend
Messages: 8
Registered: July 2009
Junior Member
Michael Madsen schrieb:
> function meh($array) {
> /**
> * $var SomeClass
> */
> $object = $array[0];
> }

This does the trick:

function meh($array) {
/* $object SomeClass */
$object = $array[0];
}

Well, at least in PDT 2.1.2 it does, but I think 1.0.5 should be ok, too.

HTH,
Mark
Re: When will PDT support [message #485879 is a reply to message #485814] Tue, 15 September 2009 12:17 Go to previous message
Eclipse UserFriend
Originally posted by: mnm.criion.net

Thank you mark, but it was a nogo on 105 :/
--
-michael
Previous Topic:[Announce] PDT 2.1.3 S200909140706 is available
Next Topic:Cannot install Zend Debugger
Goto Forum:
  


Current Time: Fri Apr 26 06:29:41 GMT 2024

Powered by FUDForum. Page generated in 0.03379 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top