Re: [pdt-dev] Migrating to Git

2012-07-06 Thread Robert Gruendler

Hi,

thanks for the info. The main reason i was asking is because i was 
unsure if the cvs tree i'm using is still being used.


Migrating it together with switching to maven/tycho absolutely makes sense!


regards

-robert



On 7/6/12 14:52 , Jacek Pospycha?a wrote:
One thing that's holding us back wrt migration is that PDT is still 
being built with Athena CBI. System that once popular, has been 
abandoned a while ago and it doesn't nicely support Git.
I wanted to migrate to Git together with jump to Maven/Tycho based 
build, but it's more work.


But if you're asking then maybe indeed we should switch to Git sooner 
while staying with current build.



*From:* pdt-dev-boun...@eclipse.org [pdt-dev-boun...@eclipse.org] on 
behalf of Robert Gründler [r.gruend...@gmail.com]

*Sent:* 06 July 2012 00:36
*To:* PDT Developers
*Subject:* Re: [pdt-dev] Migrating to Git

are there any news on the git migration?

regards

-robert





___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev



___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


[pdt-dev] ModelException when calling newSuperTypeHierarchy() during indexing

2011-11-14 Thread Robert Gruendler

Hi,

i'm still trying to figure out how to get a complete supertype hierarchy 
during indexing of a PHP class.


Here's a simple PHPIndexingVisitorExtension that produces the exception:

public class TestIndexingVisitorExtension
extends PhpIndexingVisitorExtension {

@Override
public boolean visit(TypeDeclaration s) throws Exception
{

try {
if (s instanceof ClassDeclaration) {
IType type = sourceModule.getType(s.getName());
ITypeHierarchy hierarchy = 
type.newSupertypeHierarchy(new NullProgressMonitor());

}
} catch (ModelException e) {
e.printStackTrace();
}

return super.visit(s);
}

}

The exception thrown is SubTest [in SubTest.php [in src [in project 
root [in test does not exist when calling type.newSupertypeHierarchy()


The class SubTest does exist in the project, in fact it's the class 
that's open in the current editor.


Am i using the API in a wrong way, or is this a bug?


regards

-robert


___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


[pdt-dev] Execute PHP Script from extension

2011-11-04 Thread Robert Gruendler

Hi all,

is it possible to execute a PHP Script from the workspace in the 
background and get the output of the script?


regards

-robert


___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


[pdt-dev] Generate PHP code

2011-09-16 Thread Robert Gruendler
Hi,

i'm wondering what's the best way to generate PHP code from within a PDT 
extension. Is it possible to manually create an AST and
dump it to a file somewhere?

Or should i simply use template files and fill them with variables?


cheers


-robert
___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


[pdt-dev] Install latest nightly from hudson

2011-09-10 Thread Robert Gruendler
Hi,

until recently the nightly PDT builds were available via the hudson CI tool at 
https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/. Every build produced 
an artifact named something like 

pdt-Update-N[TIMESTAMP].zip


It looks like the structure of the build system has been changed, as those 
files are not available anymore. Does anyone know
how to install the nightly PDT build at the moment?


regards


-robert



___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: [pdt-dev] PDT 2.2 Project Plan

2010-03-22 Thread Robert Gruendler
same here.

although i really support the project and appreciate the help one receives as a 
developer
on this list, the end-user information could be enhanced.

For example it's a bit confusing that the current development version is 
presented
as the first option in the installation wiki, whereas the current 2.2 build
is broken, which imho is not such a good experience for people trying out pdt:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=305877


regards

-robert


On Mar 22, 2010, at 7:59 PM, Nikolai Plath wrote:

 Sorry folks but... i second that
 
 Am 22.03.2010 08:26, schrieb Sjaak Eenhuis:
 This is not a project plan. Its a list consisting of alfanumeric codes with 
 dates associated.
 
 
 M311/12/2010M3 milestone
 M412/18/2010M4 milestone
 
 etc
 
 The only thing this plan teaches us is that there are milestones, but they 
 don't tell in what land they stand.
 
 Beside the fact that this table doesn't contain any usable data, the data 
 that is inside is incorrect. We learn that milestone 3 will be delivered 
 after the final product has been released. :-)
 
 As a pdt user I feel the urge to say something about this, because the last 
 pdt release went online a long time ago, and the goals are still a secret.
 I would like to suggest that you seek out better ways to handle conflicting 
 interests between Zend Studio and PDT, or if you feel this isn't the 
 problem, we could try to find out the real cause.
 
 I understood that you have finished the rewrite with h2-indexing, maybe we 
 could add this as an achievement on the plan page? This is a good message to 
 all the people that suffers from autocompletion inertia.
 
 Btw I kind of love pdt. As an avid 'supporter' of this project I thank you 
 all again for all the efforts made.
 
 
 
 
 Subject: RE: [pdt-dev] PDT 2.2 Project Plan
 Date: Sat, 20 Mar 2010 22:10:35 +0200
 From: r...@zend.com
 To: pdt-dev@eclipse.org
 
 You can find the project plan for PDT here:
 http://www.eclipse.org/projects/project-plan.php?projectid=tools.pdt
 We are currently working on Eclipse PDT issues and fix issues marked as
 P1.
 
 Anything in particular that you are searching for?
 Roy
 -Original Message-
 From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org]
 On Behalf Of sNop
 Sent: Saturday, March 20, 2010 12:17 AM
 To: PDT Developers
 Subject: Re: [pdt-dev] PDT 2.2 Project Plan
 
 Hi,
 
 i'm lacking actualizations of the PDT's webpages too. They should be
 actualized more often.
 
 So the communication with PDT users is very bad.
 
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 

 _
 Het laatste nieuws, shownieuws en voetbalnieuws op MSN.nl
 http://nl.msn.com/___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 
 
 
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev

___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: [pdt-dev] No code assistance for PHP Language Library

2010-03-03 Thread Robert Gruendler
Hi Roy,

here you go:

.settings/org.eclipse.php.core.prefs:

#Wed Mar 03 15:21:13 CET 2010
eclipse.preferences.version=1
include_path=0;/asdf

.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
nameasdf/name
comment/comment
projects
/projects
buildSpec
buildCommand

nameorg.eclipse.wst.validation.validationbuilder/name
arguments
/arguments
/buildCommand
buildCommand
nameorg.eclipse.dltk.core.scriptbuilder/name
arguments
/arguments
/buildCommand
/buildSpec
natures
natureorg.eclipse.php.core.PHPNature/nature
/natures
/projectDescription


On Mar 3, 2010, at 2:56 PM, Roy Ganor wrote:

 Hi Robert,
 Can you share your .settings folder, .buildpath and .project files?
  
 Best regards,
 Roy
 From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On 
 Behalf Of Robert Gruendler
 Sent: Wednesday, March 03, 2010 2:08 PM
 To: PDT Developers
 Subject: [pdt-dev] No code assistance for PHP Language Library
  
 Hi all,
  
 i don't get any code assistance for the php language library in php projects.
  
 The only assistance that shows up,are the template proposals, like try/catch, 
 fn etc.
  
 My PDT extension is completely disabled in the run environment, and i've 
 tested this
 bug also on a standalone eclipse installation with the latest pdt 2.2.
  
 Version Info:
 Eclipse: 3.5.2 Build id: M20100211-1343
 DLTK: 2.0.0 (CVS HEAD)
 PDT: 2.2.0 (CVS HEAD)
  
 Anyone else experiencing this problem?
  
 regards
  
 -robert
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev

___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: [pdt-dev] No code assistance for PHP Language Library

2010-03-03 Thread Robert Gruendler
H Alex,

i tested it in a fresh workspace, same problem.

Where exactly can the PDT proposal computer disabled? I couldn't find it
on the php preference page.


regards,


-robert


On Mar 3, 2010, at 2:53 PM, Alex Panchenko wrote:

 Hi,
 
 It's possible that PDT proposal computer was disabled in preferences (e.g. if 
 exception was thrown), so it makes sense to test in a *new* workspace.
 
 Regards,
 Alex
 
 - Original Message -
 From: Roy Ganor r...@zend.com
 To: PDT Developers pdt-dev@eclipse.org
 Sent: Wednesday, March 3, 2010 7:56:24 PM GMT +06:00 Almaty, Novosibirsk
 Subject: RE: [pdt-dev] No code assistance for PHP Language Library
 
 Hi Robert,
 Can you share your .settings folder, .buildpath and .project files?
  
 Best regards,
 Roy
 From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On 
 Behalf Of Robert Gruendler
 Sent: Wednesday, March 03, 2010 2:08 PM
 To: PDT Developers
 Subject: [pdt-dev] No code assistance for PHP Language Library
  
 Hi all,
  
 i don't get any code assistance for the php language library in php projects.
  
 The only assistance that shows up,are the template proposals, like try/catch, 
 fn etc.
  
 My PDT extension is completely disabled in the run environment, and i've 
 tested this
 bug also on a standalone eclipse installation with the latest pdt 2.2.
  
 Version Info:
 Eclipse: 3.5.2 Build id: M20100211-1343
 DLTK: 2.0.0 (CVS HEAD)
 PDT: 2.2.0 (CVS HEAD)
  
 Anyone else experiencing this problem?
  
 regards
  
 -robert
 
 ___ pdt-dev mailing list 
 pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev

___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: [pdt-dev] No code assistance for PHP Language Library

2010-03-03 Thread Robert Gruendler
some more info:

the root for that exception seems to be in 
org.eclipse.dltk.internal.core.index2.IndexerManager, line 47:

IConfigurationElement[] elements = 
Platform.getExtensionRegistry()
.getConfigurationElementsFor(INDEXER_POINT);

The elements Array is empty, so the indexer field is null.


regards

-robert


On Mar 3, 2010, at 10:10 PM, Robert Gruendler wrote:

 i was looking at the .log file of the workspace which doesn't have code 
 assistance, 
 and i'm getting this exception everytime i trigger code assistance:
 
 !MESSAGE PHPCore plugin internal error
 !STACK 0
 java.lang.NullPointerException
   at java.util.Arrays$ArrayList.init(Arrays.java:3357)
   at java.util.Arrays.asList(Arrays.java:3343)
   at 
 org.eclipse.php.internal.core.codeassist.strategies.GlobalTypesStrategy.getTypes(GlobalTypesStrategy.java:120)
   at 
 org.eclipse.php.internal.core.codeassist.strategies.GlobalTypesStrategy.apply(GlobalTypesStrategy.java:74)
   at 
 org.eclipse.php.internal.core.codeassist.strategies.GlobalElementsCompositeStrategy.apply(GlobalElementsCompositeStrategy.java:43)
   at 
 org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:89)
   at org.eclipse.dltk.internal.core.Openable$1.run(Openable.java:494)
 
 
 Seems like the code assistance is activated, and the reason for no code 
 assistance is an internal exception.
 
 Another thing that points into that direction is that code assistance isn't 
 working at a project scope, ie:
 
 public class Foo {
 
   protected $bar;
 
   public function test() {
   
 $this- --- triggers the exception too.
 
   }
 
 }
 
 regards
 
 -robert
 
 
 
 On Mar 3, 2010, at 4:56 PM, Robert Gruendler wrote:
 
 is there any temporary workaround to re-activate the code assistance for
 the language library ?
 
 
 regards
 
 -robert
 
 
 
 
 On Mar 3, 2010, at 3:47 PM, Roy Ganor wrote:
 
 Hi Alex, I see that Mylyn-DLTK bridge plugin is the only one that plays 
 with these preferences. Probably for wrapping things with its own proposals 
 list.
 Anyway, the unpleasant situation where empty proposals list is shown should 
 be fixes somehow.
  
 Thanks!
 Roy
 From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On 
 Behalf Of Alex Panchenko
 Sent: Wednesday, March 03, 2010 4:30 PM
 To: PDT Developers
 Subject: Re: [pdt-dev] No code assistance for PHP Language Library
  
 JDT has preference page to manage them, DLTK uses preferences but without 
 preference page.
 Actually I couldn't find the code changing it, but I remember once it was 
 somehow disabled in my development workspace.
 
 Regards,
 Alex
 
 - Original Message -
 From: Roy Ganor r...@zend.com
 To: PDT Developers pdt-dev@eclipse.org
 Sent: Wednesday, March 3, 2010 8:19:00 PM GMT +06:00 Almaty, Novosibirsk
 Subject: RE: [pdt-dev] No code assistance for PHP Language Library
 
 BTW, any reason why a user would select to disable the script category? You 
 mentioned on exception but it seems odd to me that it is common.
 Are there other situations where this category can be disabled?
  
 Thanks!
 Roy
 From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On 
 Behalf Of Alex Panchenko
 Sent: Wednesday, March 03, 2010 3:54 PM
 To: PDT Developers
 Subject: Re: [pdt-dev] No code assistance for PHP Language Library
  
 Hi,
  
 It's possible that PDT proposal computer was disabled in preferences (e.g. 
 if exception was thrown), so it makes sense to test in a *new* workspace.
 
 Regards,
 Alex
 
 - Original Message -
 From: Roy Ganor r...@zend.com
 To: PDT Developers pdt-dev@eclipse.org
 Sent: Wednesday, March 3, 2010 7:56:24 PM GMT +06:00 Almaty, Novosibirsk
 Subject: RE: [pdt-dev] No code assistance for PHP Language Library
 
 Hi Robert,
 Can you share your .settings folder, .buildpath and .project files?
  
 Best regards,
 Roy
 From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On 
 Behalf Of Robert Gruendler
 Sent: Wednesday, March 03, 2010 2:08 PM
 To: PDT Developers
 Subject: [pdt-dev] No code assistance for PHP Language Library
  
 Hi all,
  
 i don't get any code assistance for the php language library in php 
 projects.
  
 The only assistance that shows up,are the template proposals, like 
 try/catch, fn etc.
  
 My PDT extension is completely disabled in the run environment, and i've 
 tested this
 bug also on a standalone eclipse installation with the latest pdt 2.2.
  
 Version Info:
 Eclipse: 3.5.2 Build id: M20100211-1343
 DLTK: 2.0.0 (CVS HEAD)
 PDT: 2.2.0 (CVS HEAD)
  
 Anyone else experiencing this problem?
  
 regards
  
 -robert
 
 ___ pdt-dev mailing list 
 pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
 
 ___ pdt-dev mailing list 
 pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev

Re: [pdt-dev] Extending the project wizard

2010-03-01 Thread Robert Gruendler
I don't think if that's really necessary. I've something like this working now,
by extending the PHPProjectCreationWizard, and overriding the 
addPages() method, where i added my custom page.

If you need to add stuff to specific pages, you can 
extend the specific page too and override createControl(Composite parent)
method.

Do you think this approach has disadvantages ?

best

-robert


On Mar 1, 2010, at 3:02 PM, Alex Panchenko wrote:

 Hi Robert,
 
 Not yet. I'll try to find some time for it during March. 
 Thanks for reminder :)
 
 Regards,
 Alex
 
 - Original Message -
 From: Robert Gruendler rob...@dubture.com
 To: PDT Developers pdt-dev@eclipse.org
 Sent: Thursday, February 25, 2010 2:31:37 AM GMT +06:00 Almaty, Novosibirsk
 Subject: Re: [pdt-dev] Extending the project wizard
 
 Hi Alex,
 
 is the refactoring regarding the ProjectWizard done ? 
 
 thanks!
 
 -robert
 
 
 On Nov 14, 2009, at 4:17 AM, Alex Panchenko wrote:
 
 Hi,
 
 The plan is to move some code parts from TCL project wizard into base DLTK 
 project wizard.
 I hope to do it before Christmas.
 
 Regards,
 Alex
 
 - Original Message -
 From: Robert Gründler rob...@dubture.com
 To: pdt-dev@eclipse.org
 Sent: Saturday, November 14, 2009 1:41:44 AM GMT +06:00 Almaty, Novosibirsk
 Subject: Re: [pdt-dev] Extending the project wizard
 
 Hi again,
 
 the DLTK team recommended me to have a look at the TCL Project Creation 
 wizard, however, it simply
 extends the dltk project wizard, which means i would need to implement 
 the Project wizard for the framework
 completely by scratch, plus re-implement the functionality the php 
 project wizard provides right now.
 
 Are there any plans for the near future to implement either the 
 wizard-extension points or the solution
 recommended by Konstantin using the facet project framework?
 
 best
 
 -robert
 
 
 
 
 Am 11/6/09 6:45 PM, schrieb Michael Spector:
 I think it's a question to DLTK team, since PDT extends DLTK's project 
 wizard.
 
 Best regards,
 Michael
 
 On Fri, Nov 6, 2009 at 7:37 PM, Konstantin Komissarchik
 konstantin.komissarc...@oracle.com  wrote:
 
 PDT Team,
 
 As a side note, has there been any further thoughts on utilizing faceted
 project framework in PDT? Using the framework would give extenders like
 Robert a natural way to build on PDT projects with little effort on the 
 part
 of PDT.
 
 - Konstantin
 
 
 -Original Message-
 From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On
 Behalf Of Robert Gründler
 Sent: Friday, November 06, 2009 9:32 AM
 To: pdt-dev@eclipse.org
 Subject: [pdt-dev] Extending the project wizard
 
 Hi,
 
 i would like to extend the php project wizard, but according to this post
 to the mailing list, the phpwizardpages extension is not used anymore:
 
 http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg03659.html
 
 Does anoyne know if it's possible to add some UI elements to the
 pdt New Project... wizard ?
 
 
 thanks !
 
 
 -robert
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.425 / Virus Database: 270.14.51/2482 - Release Date: 11/06/09
 07:38:00
 
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 
 
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 
 
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev

___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: [pdt-dev] Newbie question: asking for help to get a PDT development environment setup

2010-02-25 Thread Robert Gruendler
I've checked out the latest cvs version, but i get a couple of build errors:


IStructuredTextFoldingProvider cannot be resolved to a type 
StructuredTextFoldingProviderPHP.java   
/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/folding line 62 Java 
Problem

It seems the import 
org.eclipse.wst.sse.ui.internal.projection.IStructuredTextFoldingProvider;

can't be resolved.


Anyone knows which package i'm missing?

thanks!


-robert



On Feb 15, 2010, at 6:30 AM, 赵忠伟 wrote:

 Hi,David
 
 You can have a look at http://wiki.eclipse.org/Extending_PDT_2.2
 
 My development environment is eclipse 3.5 modeling version(it is a little 
 big,300M+) + wtp + dltk source code.
 
 And by the way,if you want this feature,you also could submit a bug about 
 this.Recently I have fixed a bug(bug 201108,but not upload the patch yet) 
 like this very much.
 
 On Mon, Feb 15, 2010 at 12:40 AM, David Négrier 
 d.negr...@thecodingmachine.com wrote:
 Hi list,
 
 First of all, a big thanks to all the developers working on PDT. I've been 
 using it for years, and it's definitely a great tool.
 I'm writing this mail because I would like to try improving the autocomplete 
 feature, but since I'm a bit of a noob regarding Eclipse plug-in development, 
 I'd need just some hints to get started.
 
 In short, here is what I'm trying to do:
 
 I would like to improve PDT so that it can autocomplete arrays.
 
 For instance, imagine a sample code like this:
 
 class MyClass {
 public $a;
 }
 
 /**
  * @return arrayMyClass
  */
 function myFunc() {
 return array(new MyClass());
 }
 
 $arr = myFunc();
 foreach ($arr as $elem) {
 $elem-   /** Here, we would get some autocompletion on the MyClass 
 fields */
 }
 I would like to code the support for the arrayObject notation (similar to 
 C++ templates or Java annotations).
 In most of PHP code I'm writing, methods and functions are returning arrays. 
 And we don't have a correct autocompletion for these. I would like to address 
 this issue.
 
 I've had a quick look at PDT code, and I found in PHPSimpleTypes.java that 
 all arrays are modeled using the DLTK MultiTypeType class. I'm not a DLTK 
 expert, but it seems that MultiTypeType class accepts inner types using the 
 addType method.
 
 So basically, I don't know if it can be easily done, but I would like to give 
 a try and implement this support for generics in PDT. My problem: I'm an 
 experienced Java and PHP developer, but I'm a complete newbie regarding 
 Eclipse plug-in development.
 Of course, I read the PDT wiki, especially this page: 
 http://wiki.eclipse.org/PDT_Development_Environment
 Then, I tried to install the environment.
 Here is the step I followed:
 
 Since I wanted the latest trunk version of PDT, I tried to set-up an 
 up-to-date environement. 
 
 The PDT wiki is a bit lacking information about it, certainly because this is 
 a common task for Eclipse plug-in developers.
 
 Step 1: I downloaded the Eclipse RPC release
 Step 2: I started Eclipse, opened a new workspace, and Added those 2 update 
 sites:
 - http://download.eclipse.org/releases/galileo (the default Eclipse 
 repository)
 - http://download.eclipse.org/tools/mylyn/update/e3.4/ (the Mylin update 
 site)
 
 Then, I added those plugins:
 - Web Page Editor
 - Eclipse XML Editors and Tools
 - Eclipse Web Developer Tools
 
 Now, I think I understood PDT 2.2 is using DLTK 2.0. Right now, I couldn't 
 get an update site for DLTK 2.0 (or I did not find it) so I downloaded it 
 from the DLTK website: 
 - http://download.eclipse.org/technology/dltk/downloads/
 I grabed the latest version (2.0M5) of the plugin and I unpacked it into the 
 Eclipse directory.
 I downloaded 2 files: Core Frameworks and DLTK Mylyn Intergation
 
 Step 3: I followed instruction on the PDT wiki here:
 - http://wiki.eclipse.org/PDT_Development_Environment
 
 Now, I have an environment that seems to be setup. There is no compilation 
 error, so I thought everything was ok.
 But I'm unable to start or export the project. When I open the PHPIde.product 
 file and go to the Dependencies tab, I'm realize I'm missing many 
 dependencies (org.eclipse.dltk.core.index, org.eclipse.emf, org.eclipse.xsd, 
 etc...)
 
 So I'm a bit lost. Is there a place where I could find the list of plugins 
 that need to be installed to get a working PDT 2.2 environment?
 Should I use a branch instead of the trunk?
 Did I miss something? Should I start with another base Eclipse distribution? 
 Would any of you developers have suggestions regarding nice articles 
 explaining how to get started with Eclipse plugins or DLTK?
 
 Any help getting started would be greatly appreciated.
 
 Regards,
 -- 
 David Négrier
 
 
 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev
 
 
 
 
 -- 
 
 Thanks!
 
 Best Regards!
 
 Zhao
 ___
 pdt-dev 

[pdt-dev] Unable to open editor

2010-02-14 Thread Robert Gruendler
Hi all,

i'm using pdt 2.2 and dltk 2.0 in eclipse 3.5.

After updating dltk to the latest version, i cannot open php editors anymore. 

I've filed a bug report with the full stack trace here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=302801

Should the current pdt version from 
http://download.eclipse.org/tools/pdt/updates/2.2/interim/ 
work with latest dlkt version?


Thanks 


-robert



___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: [pdt-dev] How to add code-completion for PHP Framework

2009-10-29 Thread Robert Gruendler

Hi again,

one more question regarding code completion extensions:

Some framework classes use components, which are declared
in a class variable, like this:

$components = array('Foo', 'Bar');

After declaring those components, the fields 'Foo' and 'Bar',
are accessible via $this-Foo and $this-Bar.

Any hint which extension point i should use to add those fields
to the code completion of classes which declare the $components
array ?


thanks!

-robert
On 10/28/2009 7:45 AM, rob...@dubture.com wrote:

Hi Michael,

thanks a lot, this got me started, it's working fine now.

best

-robert

On Wed, 28 Oct 2009 13:08:58 +0200, Michael Spectorspek...@gmail.com
wrote:
   

Hi Robert,

I think goalEvaluatorFactories extension point would be sufficient for
 

this
   

specific purpose.
You just need to add a rule that evaluates structures like:
ClassRegistry::init('MyObject'), and returns type (MyObject) for such
cases.
Take a look at

 

org.eclipse.php.internal.core.typeinference.evaluators.InstanceCreationEvaluator
   

as an example, which evaluates structures like: new MyObject().

Best regards,
Michael

On Wed, Oct 28, 2009 at 1:03 PM,rob...@dubture.com  wrote:

 

Hi all,

i'm trying to write an eclipse plugin for the Cakephp
framework, and i'd like to start off with some
additional framework-specific code assistance.

The framework uses a central ClassRegistry factory
for object instantiation. So, there's no new keyword for
some objects, for example:

$myObject = ClassRegistry::init('MyObject');

Basically i would like to give a hint to PDT that
the variable $myObject is an instance of the MyObject
class, which has already been loaded into the PDT Model,
so i guess i would simply point to the MyObject IType in
the Model somehow.

Could anyone give me a hint what would be the best method
to accomplish this? I've already had a look at the extension
points completionStrategyFactories/completionContextResolvers
and goalEvaluatorFactories, but i'm not sure what's the best
way to hook into PDT for this kind of thing.


Thanks!

-robert

___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev

   

___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev
   


___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: [pdt-dev] add method to class

2009-07-06 Thread Robert Gruendler
i've managed to add methods and update the editor, however, i have another
question.

When adding AST nodes to the tree, it seems i need to work with nodes from
the package
org.eclipse.php.internal.ast.nodes.

However, when traversing the tree based on an ISourceModule, the
PHPAstVisitor
works with nodes from the package
org.eclipse.php.internal.core.compiler.ast.nodes.

So when i search for a method using the PHPAstVisitor, i'm handling
PHPMethodDeclarations, but
when i need to add a method to a class, i'm handling
org.eclipse.php.internal.ast.nodes.MethodDeclarations.

Is there a way to use a single method class for both search and manipulation
of the AST  ?



regards

-robert



2009/7/6 Robert Gründler doo...@gmail.com

 Thanks a lot!



 Am 06.07.2009 um 07:27 schrieb Roy Ganor r...@zend.com:

  Hi Robert,

 You can find full documentation for AST manipulation here:
 http://www.eclipse.org/pdt/articles/ast/PHP_AST.html
 http://www.eclipse.org/pdt/articles/ast/PHP_AST.html

 take a look at our unit tests to see what is the right way for doing this
 for the different types of elements - http://bit.ly/Bnl9q
 http://bit.ly/Bnl9q.



 Regards,

 Roy

 *From:* pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] *On
 Behalf Of *Robert Gruendler
 *Sent:* Sunday, July 05, 2009 11:25 PM
 *To:* PDT Developers
 *Subject:* [pdt-dev] add method to class



 Hi all,

 could someone give me a hint how i can add a method to a class and make it
 visible in the editor ?

 So far, i've tried the following:

 sourceModule.becomeWorkingCopy(null, null);
 classDeclaration.getBody.addStatement(myNewMethod); //classDeclaration is
 child of the sourcemodule
 sourceModule.reconcile(true, null, null);
 sourceModule.commitWorkingCopy(true, null);

 Do i need to alter the IBuffer of the sourcemodule manually for this to
 work ?


 thanks !


 -robert

 ___
 pdt-dev mailing list
 pdt-dev@eclipse.org
 https://dev.eclipse.org/mailman/listinfo/pdt-dev


___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev