Label Decorators in a Common Navigator Framework viewer
I just posted these comments elsewhere on label decorators, and thought they might be useful to the general audience for the Common Navigator Framework.
If you check out the org.eclipse.ui.tests.navigator plugin from Eclipse CVS repository, there's a simple example of using a lightweight decorator there. (There are instructions on using Eclipse with CVS, which also documents the repository paths.)
The extension looks like:
<!-- Verify decorator extension: Adds ">>" to Test Items that end in "3" --> |
import org.eclipse.jface.viewers.ILabelDecorator; import org.eclipse.jface.viewers.ILabelProviderListener; public class TestLabelDecorator implements ILabelDecorator |