List of usage examples for org.eclipse.jface.commands ToggleState setValue
@Override
public void setValue(final Object value)
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$ }