Bug 280964 - [CommonNavigator] Confusing javadocs in CommonNavigator
Summary: [CommonNavigator] Confusing javadocs in CommonNavigator
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 trivial (vote)
Target Milestone: 3.6 M6   Edit
Assignee: Francis Upton IV CLA
QA Contact: Francis Upton IV CLA
URL:
Whiteboard:
Keywords: Documentation
Depends on:
Blocks:
 
Reported: 2009-06-19 20:12 EDT by Will Horn CLA
Modified: 2010-03-09 11:30 EST (History)
0 users

See Also:


Attachments
Javadoc fixes (3.17 KB, patch)
2010-03-09 11:29 EST, Francis Upton IV CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Will Horn CLA 2009-06-19 20:12:45 EDT
Build ID: I20090528-2000

This is trivial and subjective, but it tripped me up so I thought I would report it.  CommonNavigator javadocs says "Clients are not expected to subclass CommonNavigator".  But later the docs somewhat contradict this with "This class may be instantiated or subclassed".

It's clear the class is designed for extension so it would be helpful to clarify that first sentence, and as a bonus describe some expected use cases for subclassing.  For example, this tutorial gives a good one http://www.techjava.de/topics/2009/04/eclipse-common-navigator-framework/

"CommonNavigator gets its initial input (during initialization) from the Workbench by calling getSite().getPage().getInput(). In the IDE scenario, the default page input is IWorkspaceRoot, in the RCP scenario it is null and can be configured in the WorkbenchAdvisor. Instead, another implementation of getInitialInput() can be provided, passing the dummy Root object, which indicates the root of the tree."
Comment 1 Will Horn CLA 2009-06-22 16:50:59 EDT
In the 3.5 Migration Guide, I just read that subclassing CommonNavigator was not supported in 3.4.  I think this was the source of my confusion, and the cause of the misleading javadocs.
Comment 2 Francis Upton IV CLA 2010-03-09 11:29:23 EST
Created attachment 161482 [details]
Javadoc fixes
Comment 3 Francis Upton IV CLA 2010-03-09 11:30:11 EST
Released to HEAD 3.6M6