Package org.eclipse.jst.j2ee.model

Examples of org.eclipse.jst.j2ee.model.IModelProvider.modify()


          final IModelProvider provider = jsfUtil.getModelProvider();
          final IPath webXMLPath = new Path("WEB-INF").append("web.xml"); //$NON-NLS-1$ //$NON-NLS-2$
          if (jsfUtil.isJavaEE(provider.getModelObject()))
          {
              provider.modify(new UpdateWebXMLForJavaEE(project, config, jsfUtil),
                      doesDDFileExist(project, webXMLPath) ? webXMLPath
                              : IModelProvider.FORCESAVE);
          } else
          {// must be 2.3 or 2.4
              provider.modify(new UpdateWebXMLForJ2EE(project, config, jsfUtil),
View Full Code Here


              provider.modify(new UpdateWebXMLForJavaEE(project, config, jsfUtil),
                      doesDDFileExist(project, webXMLPath) ? webXMLPath
                              : IModelProvider.FORCESAVE);
          } else
          {// must be 2.3 or 2.4
              provider.modify(new UpdateWebXMLForJ2EE(project, config, jsfUtil),
                      webXMLPath);
          }
          // TODO: is the MyFaces check a todo?
          // Check if runtime is MyFaces or Sun-RI
View Full Code Here

        if (webAppObj != null)
        {
            IPath ddPath = new Path("WEB-INF").append("web.xml"); //$NON-NLS-1$ //$NON-NLS-2$
            if (isJavaEEWebApp(webAppObj))
            {
                provider.modify(new RemoveJSFFromJavaEEWebAppOperation(project,
                        jsfUtil), ddPath);
            } else
            {// 2.3 or 2.4 web app
                provider.modify(new RemoveJSFFromJ2EEWebAppOperation(project,
                        jsfUtil), ddPath);
View Full Code Here

            {
                provider.modify(new RemoveJSFFromJavaEEWebAppOperation(project,
                        jsfUtil), ddPath);
            } else
            {// 2.3 or 2.4 web app
                provider.modify(new RemoveJSFFromJ2EEWebAppOperation(project,
                        jsfUtil), ddPath);
            }
        }
  }
View Full Code Here

        final IModelProvider provider = jsfUtil.getModelProvider();
        final IPath webXMLPath = new Path("WEB-INF").append("web.xml"); //$NON-NLS-1$ //$NON-NLS-2$
        if (jsfUtil.isJavaEE(provider.getModelObject()))
        {
            provider.modify(new UpdateWebXMLForJavaEE(project, config, jsfUtil),
                    doesDDFileExist(project, webXMLPath) ? webXMLPath
                            : IModelProvider.FORCESAVE);
        } else
        {// must be 2.3 or 2.4
            provider.modify(new UpdateWebXMLForJ2EE(project, config, jsfUtil),
View Full Code Here

            provider.modify(new UpdateWebXMLForJavaEE(project, config, jsfUtil),
                    doesDDFileExist(project, webXMLPath) ? webXMLPath
                            : IModelProvider.FORCESAVE);
        } else
        {// must be 2.3 or 2.4
            provider.modify(new UpdateWebXMLForJ2EE(project, config, jsfUtil),
                    webXMLPath);
        }
        // TODO: is the MyFaces check a todo?
        // Check if runtime is MyFaces or Sun-RI
    }
View Full Code Here

      final TapestryUtils tapestryUtil) {

    final IModelProvider provider = tapestryUtil.getModelProvider();
    final IPath webXMLPath = new Path("WEB-INF").append("web.xml"); //$NON-NLS-1$ //$NON-NLS-2$
    if (tapestryUtil.isJavaEE(provider.getModelObject())) {
      provider.modify(new UpdateWebXMLForJavaEE(project, config,
          tapestryUtil),
          doesDDFileExist(project, webXMLPath) ? webXMLPath
              : IModelProvider.FORCESAVE);
    } else {// must be 2.3 or 2.4
      provider.modify(new UpdateWebXMLForJ2EE(project, config,
View Full Code Here

      provider.modify(new UpdateWebXMLForJavaEE(project, config,
          tapestryUtil),
          doesDDFileExist(project, webXMLPath) ? webXMLPath
              : IModelProvider.FORCESAVE);
    } else {// must be 2.3 or 2.4
      provider.modify(new UpdateWebXMLForJ2EE(project, config,
          tapestryUtil), webXMLPath);
    }
    // TODO: is the MyFaces check a todo?
    // Check if runtime is MyFaces or Sun-RI
  }
View Full Code Here

      final TapestryUtils tapestryUtil) {

    final IModelProvider provider = tapestryUtil.getModelProvider();
    final IPath webXMLPath = new Path("WEB-INF").append("web.xml"); //$NON-NLS-1$ //$NON-NLS-2$
    if (tapestryUtil.isJavaEE(provider.getModelObject())) {
      provider.modify(new UpdateWebXMLForJavaEE(project, config,
          tapestryUtil),
          doesDDFileExist(project, webXMLPath) ? webXMLPath
              : IModelProvider.FORCESAVE);
    } else {// must be 2.3 or 2.4
      provider.modify(new UpdateWebXMLForJ2EE(project, config,
View Full Code Here

      provider.modify(new UpdateWebXMLForJavaEE(project, config,
          tapestryUtil),
          doesDDFileExist(project, webXMLPath) ? webXMLPath
              : IModelProvider.FORCESAVE);
    } else {// must be 2.3 or 2.4
      provider.modify(new UpdateWebXMLForJ2EE(project, config,
          tapestryUtil), webXMLPath);
    }
    // TODO: is the MyFaces check a todo?
    // Check if runtime is MyFaces or Sun-RI
  }
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.