Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Common Navigator] adding children of an element
[Common Navigator] adding children of an element [message #793858] Wed, 08 February 2012 12:07 Go to next message
Ivan Larionov is currently offline Ivan Larionov
Messages: 37
Registered: July 2009
Member
Hi,

When adding children to CommonViewer by means of the method:
void add(Object parentElement, Object[] childElements)
I always get "Error: no label provider for ...", even though I've put
the class of a child to trigger points and possible children.

Could someone explain what could be the cause for the problem?
Re: [Common Navigator] adding children of an element [message #799816 is a reply to message #793858] Thu, 16 February 2012 05:54 Go to previous messageGo to next message
Ivan Larionov is currently offline Ivan Larionov
Messages: 37
Registered: July 2009
Member
Hi everyone,

I have created a rcp app for demonstrating my problem. I would be really
grateful if someone could look at it.

It seems that the problem is related to the navigatorContent that
overrides other content. I've tried to debug and seen that the method
"Collection findPossibleLabelExtensions(Object anElement)"
of "org.eclipse.ui.internal.navigator.NavigatorContentService" returns
nothing in case of this error. Furthermore, the javadoc for this method
states that it should consider overrides, though for instance,
"findDescriptorsWithPossibleChild()" is called with a false value for
the toComputeOverrides parameter.

Anyway, I hope someone would look into this.

On 08.02.2012 19:07, Ivan Larionov wrote:
> Hi,
>
> When adding children to CommonViewer by means of the method:
> void add(Object parentElement, Object[] childElements)
> I always get "Error: no label provider for ...", even though I've put
> the class of a child to trigger points and possible children.
>
> Could someone explain what could be the cause for the problem?
Re: [Common Navigator] adding children of an element [message #799819 is a reply to message #793858] Thu, 16 February 2012 05:54 Go to previous messageGo to next message
Ivan Larionov is currently offline Ivan Larionov
Messages: 37
Registered: July 2009
Member
Hi everyone,

I have created a rcp app for demonstrating my problem. I would be really
grateful if someone could look at it.

It seems that the problem is related to the navigatorContent that
overrides other content. I've tried to debug and seen that the method
"Collection findPossibleLabelExtensions(Object anElement)"
of "org.eclipse.ui.internal.navigator.NavigatorContentService" returns
nothing in case of this error. Furthermore, the javadoc for this method
states that it should consider overrides, though for instance,
"findDescriptorsWithPossibleChild()" is called with a false value for
the toComputeOverrides parameter.

Anyway, I hope someone would look into this.

On 08.02.2012 19:07, Ivan Larionov wrote:
> Hi,
>
> When adding children to CommonViewer by means of the method:
> void add(Object parentElement, Object[] childElements)
> I always get "Error: no label provider for ...", even though I've put
> the class of a child to trigger points and possible children.
>
> Could someone explain what could be the cause for the problem?
Re: [Common Navigator] adding children of an element [message #799826 is a reply to message #793858] Thu, 16 February 2012 05:54 Go to previous messageGo to next message
Ivan Larionov is currently offline Ivan Larionov
Messages: 37
Registered: July 2009
Member
Hi everyone,

I have created a rcp app for demonstrating my problem. I would be really
grateful if someone could look at it.

It seems that the problem is related to the navigatorContent that
overrides other content. I've tried to debug and seen that the method
"Collection findPossibleLabelExtensions(Object anElement)"
of "org.eclipse.ui.internal.navigator.NavigatorContentService" returns
nothing in case of this error. Furthermore, the javadoc for this method
states that it should consider overrides, though for instance,
"findDescriptorsWithPossibleChild()" is called with a false value for
the toComputeOverrides parameter.

Anyway, I hope someone would look into this.

On 08.02.2012 19:07, Ivan Larionov wrote:
> Hi,
>
> When adding children to CommonViewer by means of the method:
> void add(Object parentElement, Object[] childElements)
> I always get "Error: no label provider for ...", even though I've put
> the class of a child to trigger points and possible children.
>
> Could someone explain what could be the cause for the problem?
Re: [Common Navigator] adding children of an element [message #799832 is a reply to message #793858] Thu, 16 February 2012 05:54 Go to previous messageGo to next message
Ivan Larionov is currently offline Ivan Larionov
Messages: 37
Registered: July 2009
Member
Hi everyone,

I have created a rcp app for demonstrating my problem. I would be really
grateful if someone could look at it.

It seems that the problem is related to the navigatorContent that
overrides other content. I've tried to debug and seen that the method
"Collection findPossibleLabelExtensions(Object anElement)"
of "org.eclipse.ui.internal.navigator.NavigatorContentService" returns
nothing in case of this error. Furthermore, the javadoc for this method
states that it should consider overrides, though for instance,
"findDescriptorsWithPossibleChild()" is called with a false value for
the toComputeOverrides parameter.

Anyway, I hope someone would look into this.

On 08.02.2012 19:07, Ivan Larionov wrote:
> Hi,
>
> When adding children to CommonViewer by means of the method:
> void add(Object parentElement, Object[] childElements)
> I always get "Error: no label provider for ...", even though I've put
> the class of a child to trigger points and possible children.
>
> Could someone explain what could be the cause for the problem?
Re: [Common Navigator] adding children of an element [message #800593 is a reply to message #799816] Fri, 17 February 2012 03:54 Go to previous message
Ivan Larionov is currently offline Ivan Larionov
Messages: 37
Registered: July 2009
Member
Hi,

If somebody appeared to be interested:
I still don't quite understand what is the expected behaviour here, but
I have managed to overcome this problem by specifying
InvokeAlwaysRegardlessOfSuppressedExt instead of
InvokeOnlyIfSuppressedExtAlsoVisibleAndActive in the policy drop down
for the override element in the navigatorContent extension.

On 16.02.2012 12:54, Ivan Larionov wrote:
> Hi everyone,
>
> I have created a rcp app for demonstrating my problem. I would be really
> grateful if someone could look at it.
>
> It seems that the problem is related to the navigatorContent that
> overrides other content. I've tried to debug and seen that the method
> "Collection findPossibleLabelExtensions(Object anElement)"
> of "org.eclipse.ui.internal.navigator.NavigatorContentService" returns
> nothing in case of this error. Furthermore, the javadoc for this method
> states that it should consider overrides, though for instance,
> "findDescriptorsWithPossibleChild()" is called with a false value for
> the toComputeOverrides parameter.
>
> Anyway, I hope someone would look into this.
>
> On 08.02.2012 19:07, Ivan Larionov wrote:
>> Hi,
>>
>> When adding children to CommonViewer by means of the method:
>> void add(Object parentElement, Object[] childElements)
>> I always get "Error: no label provider for ...", even though I've put
>> the class of a child to trigger points and possible children.
>>
>> Could someone explain what could be the cause for the problem?
>
Previous Topic:Adding JavaEE packages via "Install new Software"
Next Topic:Spellchecking of non-English languages
Goto Forum:
  


Current Time: Thu Jul 24 11:23:59 EDT 2014

Powered by FUDForum. Page generated in 0.11482 seconds