Search in sources :

Example 1 with GradientCanvas

use of org.eclipse.equinox.internal.p2.ui.discovery.util.GradientCanvas in project epp.mpc by eclipse.

the class MarketplaceViewer method setSeparatorVisible.

protected static void setSeparatorVisible(CategoryItem<?> categoryItem, boolean visible) {
    // FIXME introduce API in CategoryItem and then get rid of this
    final Control childControl = categoryItem.getChildren()[0];
    if (childControl instanceof GradientCanvas) {
        GradientCanvas canvas = (GradientCanvas) childControl;
        canvas.setSeparatorVisible(visible);
    }
}
Also used : TextSearchControl(org.eclipse.equinox.internal.p2.ui.discovery.util.TextSearchControl) Control(org.eclipse.swt.widgets.Control) GradientCanvas(org.eclipse.equinox.internal.p2.ui.discovery.util.GradientCanvas)

Aggregations

GradientCanvas (org.eclipse.equinox.internal.p2.ui.discovery.util.GradientCanvas)1 TextSearchControl (org.eclipse.equinox.internal.p2.ui.discovery.util.TextSearchControl)1 Control (org.eclipse.swt.widgets.Control)1