Examples of EPartService


Examples of org.eclipse.e4.ui.workbench.modeling.EPartService

    IEclipseContext partContext = part.getContext();
    IEclipseContext parentContext = getContextForParent(part);
    // a part may not have a context if it hasn't been rendered
    IEclipseContext context = partContext == null ? parentContext : partContext;
    // Allow closes to be 'canceled'
    EPartService partService = (EPartService) context
        .get(EPartService.class.getName());
    if (partService.savePart(part, true)) {
      partService.hidePart(part);
      return true;
    }
    // the user has canceled out of the save operation, so don't close the
    // part
    return false;
View Full Code Here

Examples of org.eclipse.e4.ui.workbench.modeling.EPartService

  }

  protected void activate(MPart element, boolean requiresFocus) {
    IEclipseContext curContext = getModelContext(element);
    if (curContext != null) {
      EPartService ps = (EPartService) curContext.get(EPartService.class
          .getName());
      if (ps != null)
        ps.activate(element, requiresFocus);
    }
  }
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.