tabbed view not working [message #653639] |
Thu, 10 February 2011 14:08 |
Ravi Kiran Messages: 41 Registered: December 2010 |
Member |
|
|
Hi
i m trying to implement tabbed view below is the description
Tabbed view
My project structure is
dummy
dummy.diagarm
dummy.edit
dummy.test
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.
http://www.eclipse.org/articles/Article-Tabbed-Properties/ta 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
http://publib.boulder.ibm.com/infocenter/rsmhelp/v7r5m0/inde x.jsp?topic=/com.ibm.xtools.modeler.doc.isv/prog-guide/prope rties.html
please help
[Updated on: Thu, 10 February 2011 14:11] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03379 seconds