Examples of MPlaceholder


Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder

  public Object createGui(MUIElement element) {
   
    // Obtain the necessary parent context
    IEclipseContext parentContext = null;
    if (element.getCurSharedRef() != null) {
      MPlaceholder ph = element.getCurSharedRef();
      parentContext = getContext(ph.getParent());
    } else if (parentContext == null && element.getParent() != null) {
      parentContext = getContext(element.getParent());
    } else if (parentContext == null && element.getParent() == null) {
      parentContext = getContext((MUIElement) ((EObject) element).eContainer());
    }
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder

    if( ! element.isToBeRendered() ) {
      return;
    }
   
    if (element instanceof MPlaceholder && element.getWidget() != null) {
      MPlaceholder ph = (MPlaceholder) element;
      MUIElement ref = ph.getRef();
     
      if( ref.getCurSharedRef() != ph ) {
        ref.setCurSharedRef(ph);
        WPlaceholderWidget placeholder = (WPlaceholderWidget) ph.getWidget();
        @SuppressWarnings("unchecked")
        WLayoutedWidget<MUIElement> content = (WLayoutedWidget<MUIElement>) ref.getWidget();
        placeholder.setContent(content);
      }
     
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder

        thePart.setIconURI(imageURI);
      }
      getPresentationEngine().removeGui(refElement);
    } else {
      IEclipseContext curContext = modelService.getContainingContext(element);
      MPlaceholder currentRef = refElement.getCurSharedRef();
      IEclipseContext newParentContext = modelService
          .getContainingContext(currentRef);
      List<MContext> allContexts = modelService.findElements(
          refElement, null, MContext.class, null);
      for (MContext ctxtElement : allContexts) {
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder

    if (element == null || element.getWidget() == null) {
      return;
    }
   
    if (element instanceof MPlaceholder) {
      MPlaceholder ph = (MPlaceholder) element;
      element = ph.getRef();
    }

    // Hide any floating windows
    if (element instanceof MWindow && element.getWidget() != null) {
      element.setVisible(false);
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder

    if (!element.isToBeRendered()) {
      return;
    }

    if (element instanceof MPlaceholder && element.getWidget() != null) {
      MPlaceholder ph = (MPlaceholder) element;
      MUIElement ref = ph.getRef();

      if (ref.getCurSharedRef() != ph) {
        ref.setCurSharedRef(ph);
        WPlaceholderWidget placeholder = (WPlaceholderWidget) ph.getWidget();
        @SuppressWarnings("unchecked")
        WLayoutedWidget<MUIElement> content = (WLayoutedWidget<MUIElement>) ref.getWidget();
        placeholder.setContent(content);
      }
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.