Package org.eclipse.emf.common.util

Examples of org.eclipse.emf.common.util.EList


  /**
   * Propagates the change in the target namespace to all the top level named components.
   */
  private void patchTargetNamespace()
  {
    EList messages = getEMessages();
    patchTargetNamespace(messages, WSDLConstants.MESSAGE);

    EList portTypes = getEPortTypes();
    patchTargetNamespace(portTypes, WSDLConstants.PORT_TYPE);

    EList bindings = getEBindings();
    patchTargetNamespace(bindings, WSDLConstants.BINDING);

    EList services = getEServices();
    patchTargetNamespace(services, WSDLConstants.SERVICE);
  }
View Full Code Here


      monitor.beginTask("", 1);

      IVirtualComponent component = ComponentCore.createComponent(compilationUnit.getJavaProject().getProject());
      WebArtifactEdit artifactEdit = WebArtifactEdit.getWebArtifactEditForWrite(component);
      WebApp webApp = (WebApp) artifactEdit.getContentModelRoot();
      EList servlets = webApp.getServlets();
      for (Iterator i = servlets.iterator(); i.hasNext();) {
        Servlet servlet = (Servlet) i.next();
        WebType webType = servlet.getWebType();
        if (webType instanceof ServletType && ((ServletType) webType).getClassName().endsWith(getRemoteInterfaceName().concat("Impl"))) {
          ServletMapping servletMapping = webApp.getServletMapping(servlet);
          servlets.remove(servlet);
          webApp.getServletMappings().remove(servletMapping);
          break;
        }
      }
View Full Code Here

    IDTInfo dtInfo = dtManager.getDTInfo(element);
    if (dtInfo != null) {
      TagConvertInfo tcInfo = dtInfo.getTagConvertInfo();
      if (tcInfo != null) {
        transformer = new DefaultTransformer(tagConverterContext);
        EList operations = tcInfo.getOperations();
        if (!appendOperationsToTransformer(transformer, operations, dtInfo)) {
          transformer = null;
        }
      }
    }
View Full Code Here

      String[] params = getParamsArray(operation);
      currentTransformOperation =
        TransformOperationFactory.getInstance().getTransformOperation(opID, params);
      if (currentTransformOperation != null) {
        transformer.appendTransformOperation(currentTransformOperation);
        EList childOperations = operation.getOperations();
        if (childOperations != null && childOperations.size() > 0) {
          if (!appendChildOperations(currentTransformOperation, childOperations, dtInfo)) {
            return false;
          }
        }
      } else {
View Full Code Here

      String[] params = getParamsArray(operation);
      currentTransformOperation =
        TransformOperationFactory.getInstance().getTransformOperation(opID, params);
      if (currentTransformOperation != null) {
        parentOperation.appendChildOperation(currentTransformOperation);
        EList childOperations = operation.getOperations();
        if (childOperations != null && childOperations.size() > 0) {
          if (!appendChildOperations(currentTransformOperation, childOperations, dtInfo)) {
            return false;
          }
        }
       
View Full Code Here

    }
    return true;
  }

  private String[] getParamsArray(Operation operation) {
    EList paramsList = operation.getParameters();
    if (paramsList != null) {
      Iterator itParamsList = paramsList.iterator();
      String[] paramsArray = new String[paramsList.size()];
      int index = 0;
      while (itParamsList.hasNext()) {
        Parameter param = (Parameter)itParamsList.next();
        paramsArray[index++] = param.getValue();
      }
View Full Code Here

   * (non-Javadoc)
   * @see org.eclipse.jst.pagedesigner.dtmanager.internal.provisional.IDTInfo#getTagDecorateInfo(java.lang.String)
   */
  public TagDecorateInfo getTagDecorateInfo(String id) {
    TagDecorateInfo tdInfo = null;
    EList tdInfos = dtInfo.getTagDecorateInfos();
    Iterator itTDInfos = tdInfos.iterator();
    while (itTDInfos.hasNext()) {
      TagDecorateInfo curTDInfo = (TagDecorateInfo)itTDInfos.next();
      if (curTDInfo.getId().equals(id)) {
        tdInfo = curTDInfo;
        break;
View Full Code Here

        }
        if (webApp != null) {
          String filesString = null;
          //need to branch here due to model version differences (BugZilla #119442)
          if (webApp.getVersionID() == J2EEVersionConstants.WEB_2_3_ID) {
            EList contexts = webApp.getContexts();
            Iterator itContexts = contexts.iterator();
            while (itContexts.hasNext()) {
              ContextParam contextParam = (ContextParam)itContexts.next();
              if (contextParam.getParamName().equals(CONFIG_FILES_CONTEXT_PARAM_NAME)) {
                filesString = contextParam.getParamValue();
                break;
              }
            }
          } else {
            EList contextParams = webApp.getContextParams();
            Iterator itContextParams = contextParams.iterator();
            while (itContextParams.hasNext()) {
              ParamValue paramValue = (ParamValue)itContextParams.next();
              if (paramValue.getName().equals(CONFIG_FILES_CONTEXT_PARAM_NAME)) {
                filesString = paramValue.getValue();
                break;
View Full Code Here

         * @param jsfLib
         * @param logMissingJar true to log an error for each invalid JAR.
         * @return elements
         */
        public final IPath[] getJARPathforJSFLib(JSFLibrary jsfLib, boolean logMissingJar) {       
            EList archiveFiles = jsfLib.getArchiveFiles();
            int numJars = archiveFiles.size();
            IPath[] elements = new IPath[numJars];
            ArchiveFile ar = null;
            for (int i= 0; i < numJars; i++) {
                ar = (ArchiveFile)archiveFiles.get(i);
                if ( !ar.exists() && logMissingJar ) {
                    logErroronMissingJAR(jsfLib, ar);
                }
                elements[i] = new Path(((ArchiveFile)archiveFiles.get(i)).getResolvedSourceLocation()).makeAbsolute();
            }
            return elements;
        }  
View Full Code Here

         * @param jsfLib
         * @param logMissingJar true to log an error for each invalid JAR.
         * @return elements
         */
        public final IPath[] getJARPathforJSFLibwFilterMissingJars(JSFLibrary jsfLib, boolean logMissingJar) {
            EList archiveFiles = jsfLib.getArchiveFiles();
            int numJars = numberofValidJar(archiveFiles);
            IPath[] elements = new IPath[numJars];
            ArchiveFile ar = null;
            int idxValidJar = 0;
            for (int i= 0; i < archiveFiles.size(); i++) {
                ar = (ArchiveFile)archiveFiles.get(i);
                if ( !ar.exists() ) {
                    if (logMissingJar) {
                        logErroronMissingJAR(jsfLib, ar);
                    }
                } else {
                    elements[idxValidJar] = new Path(((ArchiveFile)archiveFiles.get(i)).getResolvedSourceLocation()).makeAbsolute();
                    idxValidJar++;
                }
            }
            return elements;       
        }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.common.util.EList

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.