Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » needs help to setup our org.eclipse.ui.navigator.navigatorContent
needs help to setup our org.eclipse.ui.navigator.navigatorContent [message #332732] Thu, 06 November 2008 22:38
dereck chen is currently offline dereck chenFriend
Messages: 1
Registered: July 2009
Junior Member
We want to use org.eclipse.ui.navigator.navigatorContent and
org.eclipse.ui.navigator.viewer extension points to add contents a
CommonNavigator view.

As illustrated below, suppose we have a dataModel which contains a schema
object, and the schema consists of table1, table2, view1 and view2. The
table1 and table2 are of type of Table, while the view1 and view2 are of
type of View.


CommonNavigator navigatorContent1 DataModel

Schema ------ Schema ------\
Table1 Table1 \ Schema
Table2 Table2 \ Table1
Schema / Table2
View1 / View1
View2 \ navigatorContent2 / View2
\--- Schema -----/
View1
View2

Now, we defined two navigatorContent extensions. navigatorContent1
extension has been configured to display the Schema and table objects. And
navigator2 extension has been configured to display the schema and view
objects.
And then I defined a navigator.viewer to binding these two
navigatorContents to a CommonNavigator. And we expected the
CommonNavigator showing like:

CommonNavigator
Schema
Table1
Table2
Schema
View1
View2


Therefore, we setup the triggerPoint in navigatorContent1 as
instanceof Schema or Table; and triggerPoint in navigatorContent2 as
instanceof Schema or View. However, as both navigatorContent1 and
navigatorContent2 have instanceof Schema as their triggerPoint, the
CommonNavigator view always looks like:

CommonNavigator
Schema
Table1
Table2
View1
View2
Schema
Table1
Table2
View1
View2

anybody has any suggestion on how to make the common navigator displaying
its contents as we expected?
Previous Topic:Replacing the splash image (via an update)
Next Topic:[DataBinding] Problem with 2 different class model in a TreeViewer
Goto Forum:
  


Current Time: Sun Jun 30 00:19:36 GMT 2024

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

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

Back to the top