Example usage for org.eclipse.jface.commands ToggleState setValue

List of usage examples for org.eclipse.jface.commands ToggleState setValue

Introduction

In this page you can find the example usage for org.eclipse.jface.commands ToggleState setValue.

Prototype

@Override
    public void setValue(final Object value) 

Source Link

Usage

From source file:org.eclipse.datatools.connectivity.ui.dse.views.DataSourceExplorerView.java

License:Open Source License

/**
 * creates the initial show category handler
 *///  w ww . j  a va 2s .co m
private void createHandlers() {

    // set the initial state of the ShowCategory menu & toolbar button
    IHandlerService handlerService = (IHandlerService) getSite().getService(IHandlerService.class);
    ShowCategoryAction handler = new ShowCategoryAction();
    handler.init(this);
    handlerService.activateHandler(ShowCategoryAction.HANDLER_ID, handler);
    ToggleState ts = new ToggleState();
    ts.setValue(Boolean.TRUE);
    handler.addState("STYLE", ts); //$NON-NLS-1$
}