use of net.heartsome.cat.ts.ApplicationWorkbenchWindowAdvisor in project translationstudio8 by heartsome.
the class OpenStatusBarHandler method execute.
public Object execute(ExecutionEvent event) throws ExecutionException {
IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
boolean oldValue = preferenceStore.getBoolean(TsPreferencesConstant.TS_statusBar_status);
ApplicationWorkbenchWindowAdvisor configurer = ApplicationWorkbenchAdvisor.WorkbenchWindowAdvisor;
configurer.setStatusVisible(!oldValue);
preferenceStore.setValue(TsPreferencesConstant.TS_statusBar_status, !oldValue);
ICommandService commandService = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
commandService.refreshElements(event.getCommand().getId(), null);
return null;
}
Aggregations