Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » outline connection in new eclipse plugin
outline connection in new eclipse plugin [message #95095] Fri, 06 March 2009 05:32 Go to next message
Eclipse UserFriend
Hello,

i have to build a program, that is able to find the classes and interfaces
in a project.
It should be like the java class creation wizard, with the difference that
it’s for php.
If you click the Browse Button for Superclass in the java class creation
wizard it will find the all classes with the given prefix in the textbox.
Is there any easy way to do the same for php classes?
At this time I have no more ideas. Has anyone an Idea in which PDT
packages I can find something usable code. Let me know your ideas.

Regard
Torsten
Re: outline connection in new eclipse plugin [message #95110 is a reply to message #95095] Fri, 06 March 2009 05:58 Go to previous messageGo to next message
Eclipse UserFriend
Refer to these articles for more information:

http://www.eclipse.org/pdt/articles/articles.php

Actually this is similar to the JDT implementation so if you have already
done this for Java it will be very similar to PHP...

- Roy


Torsten wrote:

> Hello,

> i have to build a program, that is able to find the classes and interfaces
> in a project.
> It should be like the java class creation wizard, with the difference that
> it’s for php.
> If you click the Browse Button for Superclass in the java class creation
> wizard it will find the all classes with the given prefix in the textbox.
> Is there any easy way to do the same for php classes?
> At this time I have no more ideas. Has anyone an Idea in which PDT
> packages I can find something usable code. Let me know your ideas.

> Regard
> Torsten
Re: outline connection in new eclipse plugin [message #95139 is a reply to message #95110] Mon, 09 March 2009 12:11 Go to previous message
Eclipse UserFriend
Hi Roy,

thanks for the response. Unfortunately that was not quite the solution I
was looking for. The Problem is that in my dialog the classes of a project
have to be listed similiar to the php projekt outline in pdt2.0. So is it
possible to adapt this behavior in an easy way.

In package org.eclipse.php.internal.ui.projectoutlineview.OutlineUtils the
method public static IType[] getOnlyClasses(IModelElement projectFragment,
String prefix, boolean exactName) expects a parameter of Type
IModelElement, but I don't really know what to do with IModelElement
projektfragment. Can you please give an example how to call the method.

Regards
Torsten
Previous Topic:[Announce] PDT 2.0.1 M200902050834 is available
Next Topic:Suggestion: for Template variables
Goto Forum:
  


Current Time: Wed Mar 26 09:50:54 EDT 2025

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

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

Back to the top