Package org.eclipse.core.commands.contexts

Examples of org.eclipse.core.commands.contexts.ContextManager


   * The widgets affected by this method are: scheme combo, bindings
   * table/tree model, and the when combo.
   */
  private final void fill() {
    // Make an internal binding manager to track changes.
    localChangeManager = new BindingManager(new ContextManager(),
        new CommandManager());
    final Scheme[] definedSchemes = bindingService.getDefinedSchemes();
    try {
      for (int i = 0; i < definedSchemes.length; i++) {
        final Scheme scheme = definedSchemes[i];
View Full Code Here


   
    StartupThreading.runWithoutExceptions(new StartupRunnable() {

      public void runWithException() {
        ContextManager.DEBUG = Policy.DEBUG_CONTEXTS;
        contextManager = new ContextManager();
        }});
   
    final IContextService contextService = new ContextService(
        contextManager);
   
View Full Code Here

  }

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

    Scheme scheme = bindingService.getActiveScheme();
    try{
      try{
        manager.setActiveScheme(scheme);
View Full Code Here

*/
@SuppressWarnings("restriction")
public class BindingServiceAddon {
  @PostConstruct
  public void init(IEclipseContext context) {
    ContextManager contextManager = context.get(ContextManager.class);
    ContextSet.setComparator(new ContextSet.CComp(contextManager));

    context.set(BindingTableManager.class,
        ContextInjectionFactory.make(BindingTableManager.class, context));

View Full Code Here

TOP

Related Classes of org.eclipse.core.commands.contexts.ContextManager

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.