IParent.getChildren() [message #163880] |
Fri, 11 June 2004 13:59 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03834 seconds