DefaultTreeItem constructors refactored. Fixes #837
Adds method getTitle() to WorkbenchPart. Fixes #836