Eclipse Corner Article

Contributing to the 

Properties View

How Views and editors can use the properties view to show and edit properties of the current selection

Summary
Most editors and views have the concept of a current selection. It is often useful to display information, or properties, about this selection. Rather than have each editor or view provide its own custom way of displaying properties, the Workbench provides a properties view that can listen for the selection of the currently active part, and then display and possibly edit its properties. In this article we'll take a look at how a tool contributes to the properties view, and various ways of adapting its model to provide the required interfaces.
By Jim Amsden



Conclusion

This article explained the importance of change notification in the Eclipse platform and the challenges of doing it with so many different aspects of the platform. It ain't pretty, but it works. If you have a better idea, we would definitely like to hear it.