Example usage for org.eclipse.jface.viewers IDecorationContext IDecorationContext

List of usage examples for org.eclipse.jface.viewers IDecorationContext IDecorationContext

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers IDecorationContext IDecorationContext.

Prototype

IDecorationContext

Source Link

Usage

From source file:org.eclipse.ui.tests.performance.LabelProviderTest.java

License:Open Source License

private DecoratingStyledCellLabelProvider getDecoratingStyledCellLabelProvider(boolean useColor) {
    // create our own context to avoid using default context
    IDecorationContext context = new IDecorationContext() {
        public String[] getProperties() {
            return null;
        }/*from  w w w.  j av  a  2  s.co m*/

        public Object getProperty(String property) {
            return null;
        }
    };
    return new DecoratingStyledCellLabelProvider(new TestCellLabelProvider(useColor),
            useColor ? getDecorator() : null, context);
}