protected void installAndAddModuletoWAR(
      String j2eeVersionText,
      String warProjectName,
      IRuntime runtime,
      IProject moduleProject,
      String moduleURI,
      IProgressMonitor monitor) {

    installWARFacet(j2eeVersionText, warProjectName, runtime, monitor);

    final IVirtualComponent c = ComponentCore.createComponent(moduleProject);
    final IProject warProject = ProjectUtilities.getProject(warProjectName);
    final IVirtualComponent warComp = ComponentCore.createComponent(warProject);

    if (UIContextDetermination.getCurrentContext() == UIContextDetermination.HEADLESS_CONTEXT) {
      boolean isValidating = RendererFactory.getDefaultRendererFactory().isValidating();
      try {
        if (isValidating) {
          RendererFactory.getDefaultRendererFactory().setValidating(false);
        }
        addToWar(warComp, c, moduleURI);
      } finally {
        RendererFactory.getDefaultRendererFactory().setValidating(isValidating);
      }
    } else {
      addToWar(warComp, c, moduleURI);
    }
  }
コード例 #2
0
 public static void register(FileNameResourceFactoryRegistry aRegistry) {
   aRegistry.registerLastFileSegment(
       WebServiceConstants.WEBSERVICE_DD_SHORT_NAME,
       new WsddResourceFactory(RendererFactory.getDefaultRendererFactory()));
   aRegistry.registerLastFileSegment(
       WebServiceConstants.WEBSERVICE_TEMP_DD_SHORT_NAME,
       new WsddResourceFactory(RendererFactory.getDefaultRendererFactory()));
 }
コード例 #3
0
 /**
  * register using the default renderer factory.
  *
  * @see #registerWith(RendererFactory)
  */
 public static void register() {
   registerWith(RendererFactory.getDefaultRendererFactory());
 }
コード例 #4
0
 /** WsddResourceFactory constructor comment. */
 public WsddResourceFactory() {
   super(RendererFactory.getDefaultRendererFactory());
 }