public final void savePreferences(final Scheme activeScheme, final Binding[] bindings) throws IOException { BindingPersistence.write(activeScheme, bindings); try { bindingManager.setActiveScheme(activeScheme); } catch (final NotDefinedException e) { WorkbenchPlugin.log( "The active scheme is not currently defined.", //$NON-NLS-1$ WorkbenchPlugin.getStatus(e)); } bindingManager.setBindings(bindings); }