[Common Navigator Framework] hasChildren issue with NavigatorContentService [message #314109] |
Tue, 03 April 2007 11:46  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04412 seconds