Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » IParent.getChildren()
IParent.getChildren() [message #163880] Fri, 11 June 2004 13:59 Go to next message
Eclipse UserFriend
Originally posted by: ptiedt.us.ibm.com

Hi All,

I have tried to find out some implementation details from the JDT core in
order to see best practice examples. Some Java Elements implement the
IParent interface which defines the method getChildren() and
hasChildren(). However I cant find the implementation of these methods
anywhere.

For example IJavaModel is implemented by JavaModel and extends IParent. I
cant find the IParent methods implemented neither in JavaModel nor in its
superclasses.

Any ideas? Or any ideas who I could ask?

Philipp
Re: IParent.getChildren() [message #163899 is a reply to message #163880] Fri, 11 June 2004 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akiezun.cutthis.mit.this.edu.andthis

> For example IJavaModel is implemented by JavaModel and extends IParent. I
> cant find the IParent methods implemented neither in JavaModel nor in its
> superclasses.
>
> Any ideas? Or any ideas who I could ask?
look at
org.eclipse.jdt.internal.core.BinaryType.getChildren()
org.eclipse.jdt.internal.core.ClassFileWorkingCopy.getChildr en()
org.eclipse.jdt.internal.core.JavaElement.getChildren()
a.
Re: IParent.getChildren() [message #164289 is a reply to message #163880] Mon, 14 June 2004 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thomas_maeder.ch.ibm.com

Open a type hierarchy on IParent. Press the leftmost button in the lower
pane's toolbar. Voila.

Thomas

ptiedt@us.ibm.com wrote:

> Hi All,
>
> I have tried to find out some implementation details from the JDT core in
> order to see best practice examples. Some Java Elements implement the
> IParent interface which defines the method getChildren() and
> hasChildren(). However I cant find the implementation of these methods
> anywhere.
>
> For example IJavaModel is implemented by JavaModel and extends IParent. I
> cant find the IParent methods implemented neither in JavaModel nor in its
> superclasses.
>
> Any ideas? Or any ideas who I could ask?
>
> Philipp
Re: IParent.getChildren() [message #164311 is a reply to message #164289] Mon, 14 June 2004 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akiezun.cutthis.mit.this.edu.andthis

Thomas Mäder wrote:

> Open a type hierarchy on IParent. Press the leftmost button in the lower
> pane's toolbar. Voila.
>
> Thomas

Thomas,
that does not do all the work.

JavaElement does not implement IParent but it does include a method
getChildren().

That's where Philipp's confussion came from - the hierarchy view does
not show you the one method you care about: JavaElemement.getChildren()
which made it fairly useless in this case.

I'd say it's a missing functionality but it has not bothered me
personally yet.

cheers.
a.
Re: IParent.getChildren() [message #164357 is a reply to message #164311] Mon, 14 June 2004 15:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thomas_maeder.ch.ibm.com

Yes, I see. That's quite confusing, actually. I've seen the pattern (not
in THAT sense) before, but I never liked it (I guess I'm easily confused
;-).

Thomas
adam kiezun wrote:
> Thomas Mäder wrote:
>
>> Open a type hierarchy on IParent. Press the leftmost button in the
>> lower pane's toolbar. Voila.
>>
>> Thomas
>
>
> Thomas,
> that does not do all the work.
>
> JavaElement does not implement IParent but it does include a method
> getChildren().
>
> That's where Philipp's confussion came from - the hierarchy view does
> not show you the one method you care about: JavaElemement.getChildren()
> which made it fairly useless in this case.
>
> I'd say it's a missing functionality but it has not bothered me
> personally yet.
>
> cheers.
> a.
Re: IParent.getChildren() [message #164372 is a reply to message #164357] Mon, 14 June 2004 16:18 Go to previous message
Eclipse UserFriend
Originally posted by: akiezun.cutthis.mit.this.edu.andthis

reported as https://bugs.eclipse.org/bugs/show_bug.cgi?id=67012
a.

Thomas Mäder wrote:
> Yes, I see. That's quite confusing, actually. I've seen the pattern (not
> in THAT sense) before, but I never liked it (I guess I'm easily confused
> ;-).
>
> Thomas
> adam kiezun wrote:
>
>> Thomas Mäder wrote:
>>
>>> Open a type hierarchy on IParent. Press the leftmost button in the
>>> lower pane's toolbar. Voila.
>>>
>>> Thomas
>>
>>
>>
>> Thomas,
>> that does not do all the work.
>>
>> JavaElement does not implement IParent but it does include a method
>> getChildren().
>>
>> That's where Philipp's confussion came from - the hierarchy view does
>> not show you the one method you care about:
>> JavaElemement.getChildren() which made it fairly useless in this case.
>>
>> I'd say it's a missing functionality but it has not bothered me
>> personally yet.
>>
>> cheers.
>> a.
Previous Topic:Correct groups?
Next Topic:stupid plugin question of the week
Goto Forum:
  


Current Time: Sat Jul 13 20:05:41 GMT 2024

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

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

Back to the top