Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:32 Go to next message
Torsten is currently offline TorstenFriend
Messages: 2
Registered: July 2009
Junior Member
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 10:58 Go to previous messageGo to next message
Roy Ganor is currently offline Roy GanorFriend
Messages: 149
Registered: July 2009
Senior Member
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 16:11 Go to previous message
Torsten is currently offline TorstenFriend
Messages: 2
Registered: July 2009
Junior Member
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: Thu Apr 18 13:10:40 GMT 2024

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

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

Back to the top