Package org.eclipse.jface.bindings

Examples of org.eclipse.jface.bindings.Scheme


  public Set getActiveContextIds() {
    return contextManager.getActiveContextIds();
  }

  public String getActiveKeyConfigurationId() {
    final Scheme scheme = bindingManager.getActiveScheme();
    if (scheme != null) {
      return scheme.getId();
    }

    /*
     * TODO This is possibly a breaking change. The id should be non-null,
     * and presumably, a real scheme id.
View Full Code Here


    }
    return definedIds;
  }

  public IKeyConfiguration getKeyConfiguration(String keyConfigurationId) {
    final Scheme scheme = bindingManager.getScheme(keyConfigurationId);
    return new SchemeLegacyWrapper(scheme, bindingManager);
  }
View Full Code Here

  private static String getKeyboardShortcut(ParameterizedCommand command) {
    IBindingService bindingService= (IBindingService) PlatformUI.getWorkbench().getAdapter(IBindingService.class);
    fgLocalBindingManager.setBindings(bindingService.getBindings());
    try {
      Scheme activeScheme= bindingService.getActiveScheme();
      if (activeScheme != null)
        fgLocalBindingManager.setActiveScheme(activeScheme);
    } catch (NotDefinedException e) {
      Logger.logException(e);
    }
View Full Code Here

  private BindingManager getLocalChangeManager()
  {
    BindingManager manager =
      new BindingManager(new ContextManager(), new CommandManager());

    Scheme scheme = bindingService.getActiveScheme();
    try{
      try{
        manager.setActiveScheme(scheme);
      }catch(NotDefinedException nde){
        // KeysPreferencePage ignores this error as well... hmmm
View Full Code Here

TOP

Related Classes of org.eclipse.jface.bindings.Scheme

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.