Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Autocomplete and Functions in other classes(does not work in Newest PDT all in One)
Autocomplete and Functions in other classes [message #490351] Thu, 08 October 2009 12:31 Go to next message
Andi  is currently offline Andi Friend
Messages: 4
Registered: October 2009
Junior Member
Hello everyone,

I just downloaded the newest all in one package of PDT, after i got a new pc.

But now i have the problem that my PDT does not now the functions and variables of extended classes.

Example:

file1.php
Class Klasse1 {
    public $text1 = 'Hello';
    
    public function say_hello() {
        return $this->$text1;
    }
}


file2.php
Class Klasse2 extends Klasse1 {

    public function welcome() {
        $this->say_hello();
    }

}


On my old pc I got a list of available functions and variables when i typed $this->

At least after pressing Ctrl+Space I had a list including "say_hello" and "text1", to select one of the available variables and functions. But after installing the newes PDT all in one package, this does not work anymore.

Has anybody an idea why? The project is created as php-project. And the current perspective is PHP.

Would be very happy to get some help.

best regards
Andi
Re: Autocomplete and Functions in other classes [message #490359 is a reply to message #490351] Thu, 08 October 2009 12:49 Go to previous messageGo to next message
Michael Spector is currently offline Michael SpectorFriend
Messages: 110
Registered: July 2009
Senior Member

Hi,

What version of PDT? What was the previous version of PDT?
If you use new workspace does it work?

Thanks!
Re: Autocomplete and Functions in other classes [message #490364 is a reply to message #490359] Thu, 08 October 2009 13:02 Go to previous messageGo to next message
Andi  is currently offline Andi Friend
Messages: 4
Registered: October 2009
Junior Member
I don't know the version of the old PDT. Had no chance to look at the old system. And the workspace is a new one. I have completly new system. Created new workspace, new php-project into it and checked out my php from svn into the new php-project-folder in my workspace.
Re: Autocomplete and Functions in other classes [message #490366 is a reply to message #490364] Thu, 08 October 2009 13:21 Go to previous messageGo to next message
Michael Spector is currently offline Michael SpectorFriend
Messages: 110
Registered: July 2009
Senior Member

Please post:

1. PDT version you use.
2. Contents of .buildpath file in your project

Thanks,
Michael
Re: Autocomplete and Functions in other classes [message #490555 is a reply to message #490351] Fri, 09 October 2009 07:32 Go to previous messageGo to next message
Andi  is currently offline Andi Friend
Messages: 4
Registered: October 2009
Junior Member
I use the latest PDT 2.1 all in one package

Eclipse for PHP Developers
Build id: 20090920-1017

.buildpath:
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
	<buildpathentry kind="src" path=""/>
	<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>


.project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>BattledriftAdmintool</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.dltk.core.scriptbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.php.core.PHPNature</nature>
	</natures>
</projectDescription>



regards Andi

[Updated on: Fri, 09 October 2009 07:33]

Report message to a moderator

Re: Autocomplete and Functions in other classes [message #490920 is a reply to message #490351] Mon, 12 October 2009 12:06 Go to previous message
Andi  is currently offline Andi Friend
Messages: 4
Registered: October 2009
Junior Member
Can somebody give me a download link of a PDT-Version where the autocomplete function works correct?

best regards
Andi
Previous Topic:"Toggle Watchpoint" always greyed out
Next Topic:How to create project?
Goto Forum:
  


Current Time: Fri Apr 26 22:11:34 GMT 2024

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

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

Back to the top