Package org.springframework.ide.eclipse.beans.core.internal.model.validation

Examples of org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansTypeHierachyState


    if (kind != IncrementalProjectBuilder.FULL_BUILD && resource instanceof IFile
        && resource.getName().endsWith(JdtUtils.JAVA_FILE_EXTENSION)) {

      // Make sure that only a structural change to a java source file triggers a rebuild
      TypeStructureState structureState = context.get(TypeStructureState.class);
      BeansTypeHierachyState hierachyState = context.get(BeansTypeHierachyState.class);

      if (structureState == null
          || structureState.hasStructuralChanges(resource, ITypeStructureCache.FLAG_ANNOTATION
              | ITypeStructureCache.FLAG_ANNOTATION_VALUE)) {
        for (IBean bean : hierachyState.getBeansByContainingTypes(resource)) {
          IBeansConfig beansConfig = BeansModelUtils.getConfig(bean);
          resources.add(beansConfig.getElementResource());
          if (affectedBeans.containsKey(beansConfig)) {
            affectedBeans.get(beansConfig).add(bean);
          }
View Full Code Here


    if (kind != IncrementalProjectBuilder.FULL_BUILD && resource instanceof IFile
        && resource.getName().endsWith(JAVA_FILE_EXTENSION)) {

      // Make sure that the aop model is only reprocessed if a java structural change happens
      TypeStructureState structureState = context.get(TypeStructureState.class);
      BeansTypeHierachyState hierachyState = context.get(BeansTypeHierachyState.class);

      if (structureState == null
          || structureState.hasStructuralChanges(resource, ITypeStructureCache.FLAG_ANNOTATION
              | ITypeStructureCache.FLAG_ANNOTATION_VALUE)) {
        if (deltaKind == IResourceDelta.REMOVED) {
          IBeansProject beansProject = BeansCorePlugin.getModel().getProject(resource.getProject());
          if (beansProject != null) {
            for (IBeansConfig beansConfig : beansProject.getConfigs()) {
              configs.add(beansConfig);
            }
          }
        }
        else {
          for (IBeansConfig config : hierachyState.getConfigsByContainingTypes(resource)) {
            configs.add(config);
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.core.internal.model.validation.BeansTypeHierachyState

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.