Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Common Navigator and Tabbed Properties View
Common Navigator and Tabbed Properties View [message #335381] Sun, 05 April 2009 11:31 Go to next message
Joerg is currently offline JoergFriend
Messages: 9
Registered: July 2009
Junior Member
Hello,

the common navigator class should not be sub-classed.

Now I want to show properties within the tabbed properties page when a
file is selected in the navigator.

Therefore I need a contribution id of the common navigator. If I would
subclass I could easily:

implements ITabbedPropertySheetPageContributor

and

public Object getAdapter(Class adapter) {
if (adapter == IPropertySheetPage.class)
return new TabbedPropertySheetPage(this);
return super.getAdapter(adapter);
}
public String getContributorId()
return "myId";
}

Should I override the class or is an id existing that can be used?

Thx
Joerg
Re: Common Navigator and Tabbed Properties View [message #335382 is a reply to message #335381] Sun, 05 April 2009 14:23 Go to previous message
Eclipse UserFriend
Originally posted by: francis.oaklandsoftware.com

Go ahead an override it. In 3.5 we allow the CommonNavigator to be
subclassed.

On Sun, 05 Apr 2009 04:31:39 -0700, Joerg <paukenj@fh-trier.de> wrote:

> Hello,
>
> the common navigator class should not be sub-classed.
>
> Now I want to show properties within the tabbed properties page when a
> file is selected in the navigator.
>
> Therefore I need a contribution id of the common navigator. If I would
> subclass I could easily:
>
> implements ITabbedPropertySheetPageContributor
>
> and
>
> public Object getAdapter(Class adapter) {
> if (adapter == IPropertySheetPage.class)
> return new TabbedPropertySheetPage(this);
> return super.getAdapter(adapter);
> }
> public String getContributorId()
> return "myId";
> }
>
> Should I override the class or is an id existing that can be used?
>
> Thx
> Joerg



--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm

http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases


You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go
Previous Topic:Recognizing a file of local history
Next Topic:Heap memory problem [after changes based on documentation]
Goto Forum:
  


Current Time: Thu Dec 26 14:19:53 GMT 2024

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

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

Back to the top