Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [Common Navigator Framework] hasChildren issue with NavigatorContentService
[Common Navigator Framework] hasChildren issue with NavigatorContentService [message #314109] Tue, 03 April 2007 11:46 Go to next message
Eclipse UserFriend
Originally posted by: brianf.sybase.com

Hi there...

In DTP, we have the Data Source Explorer (DSE) which uses the Common
Navigator Framework (CNF). We've had a request to not show the (+) to the
side of an unconnected connection profile in the DSE tree (we really only
have child elements for profiles if they're connected). I thought this was a
problem with our various content providers we have for different content
extensions, but that doesn't seem to be the case.

In NavigatorContentServiceContentProvider's hasChildren(TreePath), it checks
to see if there are NavigatorContentExtensions registered for a particular
parent element and if there is an extension, but it's not loaded, it still
returns "true" as "hasChildren", which circumvents the hasChildren in the
content providers for the content extensions themselves. This effectively
kills any chance for us to hide the (+) for these nodes unless the profile
has been connected already and disconnected, basically loading the extension
under the covers.

What can we do to get around this problem for the extension that's not yet
loaded? Is there a way to auto-magically load the extension initially?

Thanks in advance.

--Brian Fitzpatrick
Senior Software Engineer/DTP Committer
Sybase, Inc.
Re: [Common Navigator Framework] hasChildren issue with NavigatorContentService [message #314465 is a reply to message #314109] Fri, 13 April 2007 09:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bokowski.ca.ibm.com

You should file a bugzilla for this. In general, we tend to favour not
loading plug-ins eagerly even if this causes inaccuracies in the UI, such as
a + in a tree even if the node has no children.

"Brian Fitzpatrick" <brianf@sybase.com> wrote in message
news:eutsth$gtr$1@build.eclipse.org...
> Hi there...
>
> In DTP, we have the Data Source Explorer (DSE) which uses the Common
> Navigator Framework (CNF). We've had a request to not show the (+) to the
> side of an unconnected connection profile in the DSE tree (we really only
> have child elements for profiles if they're connected). I thought this was
> a problem with our various content providers we have for different content
> extensions, but that doesn't seem to be the case.
>
> In NavigatorContentServiceContentProvider's hasChildren(TreePath), it
> checks to see if there are NavigatorContentExtensions registered for a
> particular parent element and if there is an extension, but it's not
> loaded, it still returns "true" as "hasChildren", which circumvents the
> hasChildren in the content providers for the content extensions
> themselves. This effectively kills any chance for us to hide the (+) for
> these nodes unless the profile has been connected already and
> disconnected, basically loading the extension under the covers.
>
> What can we do to get around this problem for the extension that's not yet
> loaded? Is there a way to auto-magically load the extension initially?
>
> Thanks in advance.
>
> --Brian Fitzpatrick
> Senior Software Engineer/DTP Committer
> Sybase, Inc.
>
Re: [Common Navigator Framework] hasChildren issue with NavigatorContentService [message #314550 is a reply to message #314465] Tue, 17 April 2007 11:04 Go to previous message
Eclipse UserFriend
Originally posted by: brianf.sybase.com

Thanks Boris. I'll put in a BZ entry.

And I understand the reasoning behind the decision... This is just a case
where "one size fits all" doesn't work for us, so it would be nice if there
was a way to override it for special cases.

"Boris Bokowski" <bokowski@ca.ibm.com> wrote in message
news:evo282$dv9$1@build.eclipse.org...
> You should file a bugzilla for this. In general, we tend to favour not
> loading plug-ins eagerly even if this causes inaccuracies in the UI, such
> as a + in a tree even if the node has no children.
Previous Topic:Easiest way getting the text under the mouse
Next Topic:view dependeny problem / view start sequence?
Goto Forum:
  


Current Time: Thu Sep 18 02:20:48 EDT 2025

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

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

Back to the top