예제 #1
0
 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);
 }
예제 #2
0
 /**
  * Remove the specific binding by identity. Does nothing if the binding is not in the manager.
  *
  * @param binding The binding to be removed; must not be <code>null</code>.
  */
 public final void removeBinding(final Binding binding) {
   bindingManager.removeBinding(binding);
 }
예제 #3
0
 public final boolean isPerfectMatch(final TriggerSequence sequence) {
   return bindingManager.isPerfectMatch(sequence);
 }
예제 #4
0
 public final Scheme getScheme(final String schemeId) {
   return bindingManager.getScheme(schemeId);
 }
예제 #5
0
 public final String getPlatform() {
   return bindingManager.getPlatform();
 }
예제 #6
0
 public final Binding getPerfectMatch(final TriggerSequence trigger) {
   return bindingManager.getPerfectMatch(trigger);
 }
예제 #7
0
 public final TriggerSequence[] getActiveBindingsFor(
     final ParameterizedCommand parameterizedCommand) {
   return bindingManager.getActiveBindingsFor(parameterizedCommand);
 }
예제 #8
0
 /*
  * (non-Javadoc)
  *
  * @see
  * org.eclipse.ui.keys.IBindingService#removeBindingManagerListener(org.
  * eclipse.jface.bindings.IBindingManagerListener)
  */
 public void removeBindingManagerListener(IBindingManagerListener listener) {
   bindingManager.removeBindingManagerListener(listener);
 }
예제 #9
0
 public final Scheme[] getDefinedSchemes() {
   return bindingManager.getDefinedSchemes();
 }
예제 #10
0
 public final Binding[] getBindings() {
   return bindingManager.getBindings();
 }
예제 #11
0
 public final String getBestActiveBindingFormattedFor(final String commandId) {
   return bindingManager.getBestActiveBindingFormattedFor(commandId);
 }
예제 #12
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.keys.IBindingService#getBestActiveBindingFor(org.eclipse.core.commands.ParameterizedCommand)
  */
 public TriggerSequence getBestActiveBindingFor(ParameterizedCommand command) {
   return bindingManager.getBestActiveBindingFor(command);
 }
예제 #13
0
 public final TriggerSequence getBestActiveBindingFor(final String commandId) {
   return bindingManager.getBestActiveBindingFor(commandId);
 }
예제 #14
0
 public final Scheme getActiveScheme() {
   return bindingManager.getActiveScheme();
 }
예제 #15
0
 public final String getLocale() {
   return bindingManager.getLocale();
 }
예제 #16
0
 /*
  * (non-Javadoc)
  *
  * @see
  * org.eclipse.ui.keys.IBindingService#addBindingManagerListener(org.eclipse
  * .jface.bindings.IBindingManagerListener)
  */
 public void addBindingManagerListener(IBindingManagerListener listener) {
   bindingManager.addBindingManagerListener(listener);
 }
예제 #17
0
 public final Map getPartialMatches(final TriggerSequence trigger) {
   return bindingManager.getPartialMatches(trigger);
 }
예제 #18
0
 /* (non-Javadoc)
  * @see org.eclipse.ui.keys.IBindingService#getConflictsFor(org.eclipse.jface.bindings.TriggerSequence)
  */
 public Collection getConflictsFor(TriggerSequence sequence) {
   return bindingManager.getConflictsFor(sequence);
 }
예제 #19
0
 /**
  * TODO Promote this method to API.
  *
  * <p>Adds a single new binding to the existing array of bindings. If the array is currently
  * <code>null</code>, then a new array is created and this binding is added to it. This method
  * does not detect duplicates.
  *
  * <p>This method completes in amortized <code>O(1)</code>.
  *
  * @param binding The binding to be added; must not be <code>null</code>.
  */
 public final void addBinding(final Binding binding) {
   bindingManager.addBinding(binding);
 }