Examples of MApplication


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

    ServiceReference reference = context.getServiceReference(ThemeManager.class.getName());
    ThemeManager themeManager = (ThemeManager) context.getService(reference);

    List<Theme> themes = themeManager.getAvailableThemes();
    if (themes.size() > 0) {
      MApplication application = getApplication();

      MCommand switchThemeCommand = null;
      for (MCommand cmd : application.getCommands()) {
        if ("contacts.switchTheme".equals(cmd.getElementId())) { //$NON-NLS-1$
          switchThemeCommand = cmd;
          break;
        }
      }
View Full Code Here

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

    }
    return null;
  }

  protected boolean isAreadyProcessed(String processorId) {
    MApplication application = getApplication();
    List<String> tags = application.getTags();
    for (String tag : tags) {
      if (processorId.equals(tag)) {
        return true; // already processed
      }
    }
View Full Code Here

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

      @Override
      public Void call(Boolean param) {
        if( param.booleanValue() ) {
          MUIElement parentME = element.getParent();
          if (parentME instanceof MApplication) {
            MApplication app = (MApplication) parentME;
            app.setSelectedElement(element);
            element.getContext().activate();
          } else if (parentME == null) {
            parentME = (MUIElement) ((EObject) element).eContainer();
            if (parentME instanceof MContext) {
              element.getContext().activate();
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.