Examples of MContext


Examples of org.eclipse.e4.ui.model.application.ui.MContext

        }
      }
    } else {
      // failed to create the widget, dispose its context if necessary
      if (element instanceof MContext) {
        MContext ctxt = (MContext) element;
        IEclipseContext lclContext = ctxt.getContext();
        if (lclContext != null) {
          lclContext.dispose();
          ctxt.setContext(null);
        }
      }
    }
   
    return widget;
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.MContext

      }
    }
  }
 
  private void clearContext(MContext contextME) {
    MContext ctxt = (MContext) contextME;
    IEclipseContext lclContext = ctxt.getContext();
    if (lclContext != null) {
      IEclipseContext parentContext = lclContext.getParent();
      IEclipseContext child = parentContext.getActiveChild();
      if (child == lclContext) {
        child.deactivate();
      }

      ctxt.setContext(null);
      lclContext.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.MContext

    registerModelListeners();
  }

  private void activateContexts(Object me) {
    if (me instanceof MBindings) {
      MContext contextModel = (MContext) me;
      MBindings container = (MBindings) me;
      List<MBindingContext> bindingContexts = container
          .getBindingContexts();
      IEclipseContext context = contextModel.getContext();
      if (context != null && !bindingContexts.isEmpty()) {
        EContextService cs = context.get(EContextService.class);
        for (MBindingContext element : bindingContexts) {
          cs.activateContext(element.getElementId());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.