Package org.eclipse.jst.jsf.designtime

Examples of org.eclipse.jst.jsf.designtime.DesignTimeApplicationManager$ViewHandlerManager


    {
        IDTViewHandler viewHandler = null;

        if (res != null)
        {
            final DesignTimeApplicationManager manager = DesignTimeApplicationManager
                    .getInstance(res.getProject());
            if (manager != null)
            {
                viewHandler = manager.getViewHandler();
            }
        }
        return viewHandler;
    }
View Full Code Here


    {
        final IFile file = getFile();
       
        if (file != null)
        {
            final DesignTimeApplicationManager manager =
                DesignTimeApplicationManager.getInstance(file.getProject());
           
            if (manager != null)
            {
                final DTFacesContext facesContext = manager.getFacesContext(file);
       
                return manager.getVariableResolver().
                    resolveVariable(facesContext, name, file);
            }
        }
       
        return null;
View Full Code Here

    {
        final IFile file = getFile();
       
        if (file != null)
        {
            final DesignTimeApplicationManager manager =
                DesignTimeApplicationManager.getInstance(file.getProject());
           
            if (manager != null)
            {
                final DTFacesContext facesContext = manager.getFacesContext(file);
               
                if (facesContext != null)
                {
                    return manager.getVariableResolver().
                            getAllVariables(facesContext, file);
                }
            }
        }
       
View Full Code Here

    {
        final IFile file = getFile();
       
        if (file != null)
        {
            final DesignTimeApplicationManager manager =
                DesignTimeApplicationManager.getInstance(file.getProject());
           
            if (manager != null)
            {
                return manager.getPropertyResolver().getProperty(symbol, propertyName);
            }
        }
       
        return null;
    }
View Full Code Here

    {
        final IFile file = getFile();
       
        if (file != null)
        {
            final DesignTimeApplicationManager manager =
                DesignTimeApplicationManager.getInstance(file.getProject());
           
            if (manager != null)
            {
                return manager.getPropertyResolver().getAllProperties(symbol);
            }
        }
        return ISymbol.EMPTY_SYMBOL_ARRAY;
    }
View Full Code Here

    {
        final IFile file = getFile();
       
        if (file != null)
        {
            final DesignTimeApplicationManager manager =
                DesignTimeApplicationManager.getInstance(file.getProject());
            
            if (manager != null)
            {
                return manager.getMethodResolver().getMethod(base, methodName);
            }
        }
       
        return null;
    }
View Full Code Here

    {
        final IFile file = getFile();
       
        if (file != null)
        {
            final DesignTimeApplicationManager manager =
                DesignTimeApplicationManager.getInstance(file.getProject());
           
            if (manager != null)
            {
                return manager.getMethodResolver().getMethods(base);
            }
        }
       
        return new IMethodSymbol[0];
    }
View Full Code Here

    {
        LocaleSetAggregator  aggregator = LocaleSetAggregator.create(_file, uri, elementName, attribute.getLocalName());

        if (aggregator != null)
        {
            DesignTimeApplicationManager  dtAppMgr =
                DesignTimeApplicationManager.getInstance(_file.getProject());

            if (dtAppMgr != null)
            {
                DTFacesContext facesContext = dtAppMgr.getFacesContext(_file);
               
                if (facesContext != null)
                {
                    facesContext.setLocaleString(attribute.getNodeValue());
                }
View Full Code Here

            for (final ISymbol beanSymbol : beanSymbols)
            {
                scopeMap.put(beanSymbol.getName(), beanSymbol);
            }

            final DesignTimeApplicationManager manager = DesignTimeApplicationManager
                    .getInstance(_externalContextKey.getProject());

            if (manager != null)
            {

                final IDTExternalContext externalContext = manager
                        .getFacesContext(_externalContextKey)
                        .getDTExternalContext(_externalContextKey);

                scopeMap.putAll(externalContext.getMapForScope(_scopeMask));
               
                DTUIViewRoot viewRoot = manager
                  .getFacesContext(_externalContextKey)
                  .getViewRootHandle().getCachedViewRoot();

                if (viewRoot == null) {
                  viewRoot = manager
                  .getFacesContext(_externalContextKey)
                  .getViewRootHandle().updateViewRoot();
                }
                scopeMap.putAll(viewRoot.getViewMap());
            }
View Full Code Here

    {
        LocaleSetAggregator  aggregator = LocaleSetAggregator.create(_file.getProject(), uri, elementName, attribute.getLocalName());

        if (aggregator != null)
        {
            DesignTimeApplicationManager  dtAppMgr =
                DesignTimeApplicationManager.getInstance(_file.getProject());

            if (dtAppMgr != null)
            {
                DTFacesContext facesContext = dtAppMgr.getFacesContext(_file);
               
                if (facesContext != null)
                {
                    facesContext.setLocaleString(attribute.getNodeValue());
                }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.designtime.DesignTimeApplicationManager$ViewHandlerManager

Copyright © 2018 www.massapicom. 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.