Examples of MHandledItem


Examples of org.eclipse.e4.ui.model.application.ui.menu.MHandledItem

        return Boolean.TRUE.equals(ContextInjectionFactory.invoke(object, CanExecute.class, context.getActiveLeaf(), runContext, Boolean.TRUE));
      } finally {
        runContext.dispose();
      }
    } else if( item instanceof MHandledItem ) {
      MHandledItem handledItem = (MHandledItem) item;
      EHandlerService service = (EHandlerService) context.get(EHandlerService.class.getName());
      if( service == null ) {
        return false;
      }
     
      ParameterizedCommand cmd = handledItem.getWbCommand();
      if (cmd == null) {
        cmd = generateParameterizedCommand(handledItem, context);
        handledItem.setWbCommand(cmd);
      }
      if (cmd == null) {
        return false;
      }
     
View Full Code Here

Examples of org.eclipse.e4.ui.model.application.ui.menu.MHandledItem

        ContextInjectionFactory.invoke(object,Execute.class, context.getActiveLeaf(), runContext);
      } finally {
        runContext.dispose()
      }
    } else if( item instanceof MHandledItem ) {
      MHandledItem handledItem = (MHandledItem) item;
      EHandlerService service = (EHandlerService) context.get(EHandlerService.class.getName());
      ParameterizedCommand cmd = handledItem.getWbCommand();
      if (cmd == null) {
        cmd = generateParameterizedCommand(handledItem, context);
        handledItem.setWbCommand(cmd);
      }
      if (cmd == null) {
        logger.error("Failed to execute: " + handledItem.getCommand());
        return;
      }
      final IEclipseContext runContext = context.createChild("HI-ToolItem");
      try {
        ContributionsAnalyzer.populateModelInterfaces(item,runContext, item.getClass().getInterfaces());
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.