Examples of activateContext()


Examples of org.apache.webbeans.context.ContextFactory.activateContext()

        if(scopeType == RequestScoped.class)
        {
            if(ctx != null && !ctx.isActive())
            {
                contextFactory.activateContext(scopeType);
                return 0;
            }
            else if(ctx == null)
            {
                contextFactory.initRequestContext(null);
View Full Code Here

Examples of org.apache.webbeans.context.ContextFactory.activateContext()

        }
       
        ctx = service.getCurrentContext(scopeType);
        if(ctx != null && !ctx.isActive())
        {
            contextFactory.activateContext(scopeType);
            return 0;
        }
        else if(ctx == null)
        {
            contextFactory.initApplicationContext(null);
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.activateContext()

     * Activate context.
     */
    public void activateContext(Class<? extends Annotation> scopeType)
    {
        ContextsService contextService = getContextsService();
        contextService.activateContext(scopeType);
    }

    /**
     * Deactivate context.
     */
 
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.activateContext()

     * Activate context.
     */
    public static void activateContext(Class<? extends Annotation> scopeType)
    {
        ContextsService contextService = getContextsService();
        contextService.activateContext(scopeType);
    }
   
    /**
     * Deactivate context.
     */
 
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.activateContext()

     * Activate context.
     */
    public static void activateContext(Class<? extends Annotation> scopeType)
    {
        ContextsService contextService = getContextsService();
        contextService.activateContext(scopeType);
    }
   
    /**
     * Deactivate context.
     */
 
View Full Code Here

Examples of org.eclipse.e4.ui.services.EContextService.activateContext()

          .getBindingContexts();
      IEclipseContext context = contextModel.getContext();
      if (context != null && !bindingContexts.isEmpty()) {
        EContextService cs = context.get(EContextService.class);
        for (MBindingContext element : bindingContexts) {
          cs.activateContext(element.getElementId());
        }
      }
    }
    if (me instanceof MElementContainer) {
      List<MUIElement> children = ((MElementContainer) me).getChildren();
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

            {
                if ( partRef.getPart( false ) == view )
                {
                    IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
                        IContextService.class );
                    contextActivation = contextService.activateContext( PluginConstants.CONTEXT_SCHEMA_VIEW );

                    ICommandService commandService = ( ICommandService ) PlatformUI.getWorkbench().getAdapter(
                        ICommandService.class );
                    if ( commandService != null )
                    {
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

            {
                if ( partRef.getPart( false ) == view )
                {
                    IContextService contextService = ( IContextService ) PlatformUI.getWorkbench().getAdapter(
                        IContextService.class );
                    contextActivation = contextService.activateContext( PluginConstants.CONTEXT_PROJECTS_VIEW );

                    ICommandService commandService = ( ICommandService ) PlatformUI.getWorkbench().getAdapter(
                        ICommandService.class );
                    if ( commandService != null )
                    {
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

        final IPageSite site = fPage.getSite();
        final IHandlerService handlerService = (IHandlerService) site
                .getService(IHandlerService.class);
        final IContextService contextService = (IContextService) site
                .getService(IContextService.class);
        fActivatedContext = contextService.activateContext(fContextId);
        fActivatedHandler = handlerService.activateHandler(
                "org.eclipse.debug.ui.commands.eof", fEOFHandler); //$NON-NLS-1$
    }

    @Override
View Full Code Here

Examples of org.eclipse.ui.contexts.IContextService.activateContext()

        final IPageSite site = getSite();
        fLinkHelper = new LinkingHelper();

        final IContextService service = (IContextService) site
                .getService(IContextService.class);
        service.activateContext("org.erlide.ui.erlangOutlineAndNavigatorScope");

        final MenuManager manager = new MenuManager();
        manager.setRemoveAllWhenShown(true);
        manager.addMenuListener(new IMenuListener() {
            @Override
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.