Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » tabbed view not working
tabbed view not working [message #653639] Thu, 10 February 2011 14:08
Ravi Kiran is currently offline Ravi KiranFriend
Messages: 41
Registered: December 2010
i m trying to implement tabbed view below is the description

Tabbed view
My project structure is

1.i have included extensions in the plugin.xml in the in dummy project
2.i have implemented the section(DNSection ,ServerSection) as required

But not sure how which class should implement "ITabbedPropertySheetPageContributor"
And also where TabbedPropertySheetPage(this) should be returned. bbed_properties_view.html
Taken from the tutorial

Updating the Sample View
A workbench part that provides a tabbed property view needs to implement the ITabbedPropertySheetPageContributor interface. This interface has the single method getContributorId() that must be implemented, which returns the contributor identifier for your configuration. We will simply use the view identifier and implement the method as below:
public String getContributorId() {
return getSite().getId();
We also need to tell the workbench to use the tabbed property view. Each workbench part can define its own custom property sheet page by providing an adaptable for IPropertySheetPage. The workbench will call your view'sgetAdapter() method and ask for an IPropertySheetPage. It is at this point that we tell Eclipse to use our tabbed property sheet page.
public Object getAdapter(Class adapter) {
if (adapter == IPropertySheetPage.class)
return new TabbedPropertySheetPage(this);
return super.getAdapter(adapter);
------------------------------------------------------------ ------------------

I have followed few other links but no luck x.jsp?topic=/ rties.html

please help

[Updated on: Thu, 10 February 2011 14:11]

Report message to a moderator

Previous Topic:How it is possible to catch the add note command
Next Topic:restore perspective view
Goto Forum:

Current Time: Thu Feb 25 17:17:05 GMT 2021

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

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

Back to the top