1 11 package org.eclipse.ui.keys; 12 13 import java.io.IOException ; 14 import java.util.Map ; 15 16 import org.eclipse.core.commands.ParameterizedCommand; 17 import org.eclipse.jface.bindings.Binding; 18 import org.eclipse.jface.bindings.Scheme; 19 import org.eclipse.jface.bindings.TriggerSequence; 20 import org.eclipse.ui.commands.ICommandService; 21 import org.eclipse.ui.services.IDisposable; 22 23 36 public interface IBindingService extends IDisposable { 37 38 44 public static final String DEFAULT_DEFAULT_ACTIVE_SCHEME_ID = "org.eclipse.ui.defaultAcceleratorConfiguration"; 46 55 public TriggerSequence[] getActiveBindingsFor( 56 ParameterizedCommand parameterizedCommand); 57 58 68 public TriggerSequence[] getActiveBindingsFor(String commandId); 69 70 76 public Scheme getActiveScheme(); 77 78 96 public TriggerSequence getBestActiveBindingFor(String commandId); 97 98 115 public String getBestActiveBindingFormattedFor(String commandId); 116 117 122 public Binding[] getBindings(); 123 124 137 public TriggerSequence getBuffer(); 138 139 147 public String getDefaultSchemeId(); 148 149 155 public Scheme[] getDefinedSchemes(); 156 157 162 public String getLocale(); 163 164 173 public Map getPartialMatches(TriggerSequence trigger); 174 175 183 public Binding getPerfectMatch(TriggerSequence trigger); 184 185 190 public String getPlatform(); 191 192 200 public Scheme getScheme(String schemeId); 201 202 208 public boolean isKeyFilterEnabled(); 209 210 220 public boolean isPartialMatch(TriggerSequence trigger); 221 222 232 public boolean isPerfectMatch(TriggerSequence trigger); 233 234 238 public void openKeyAssistDialog(); 239 240 252 public void readRegistryAndPreferences(ICommandService commandService); 253 254 281 public void savePreferences(Scheme activeScheme, Binding[] bindings) 282 throws IOException ; 283 284 304 public void setKeyFilterEnabled(boolean enabled); 305 } 306 | Popular Tags |