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

Examples of org.springframework.ide.eclipse.core.model.validation.ValidationProblem


   
    if (file == null || !file.exists()) {
      modificationTimestamp = IResource.NULL_STAMP;
      String msg = "Beans Java config class '" + configClassName + "' not accessible";
      problems = new CopyOnWriteArraySet<ValidationProblem>();
      problems.add(new ValidationProblem(IMarker.SEVERITY_ERROR, msg, file, -1));
    }
    else {
      modificationTimestamp = file.getModificationStamp();
    }
View Full Code Here


        BeansCorePlugin.getExecutorService().submit(task);
        task.get(BeansCorePlugin.getDefault().getPreferenceStore().getInt(BeansCorePlugin.TIMEOUT_CONFIG_LOADING_PREFERENCE_ID),
            TimeUnit.SECONDS);
      }
      catch (TimeoutException e) {
        problems.add(new ValidationProblem(IMarker.SEVERITY_ERROR, "Loading of configuration '"
            + this.configClass.getFullyQualifiedName() + "' took more than "
            + BeansCorePlugin.getDefault().getPreferenceStore()
            .getInt(BeansCorePlugin.TIMEOUT_CONFIG_LOADING_PREFERENCE_ID) + "sec",
            file, 1));
      }
      catch (Exception e) {
        problems.add(new ValidationProblem(IMarker.SEVERITY_ERROR, String.format(
            "Error occured processing Java config '%s'. See Error Log for more details", e.getCause().getMessage()), getElementResource()));
        BeansCorePlugin.log(new Status(IStatus.INFO, BeansCorePlugin.PLUGIN_ID, String.format(
            "Error occured processing '%s'", this.configClass.getFullyQualifiedName()), e.getCause()));
      }
      finally {
View Full Code Here

            newAttributes[i] = attributes[i];
          }
          newAttributes[attributes.length] = new ValidationProblemAttribute("JAVA_HANDLE", source.getHandleIdentifier());
         
          // By convention autowire problems will only get reported as warnings (for now?)
          problems.add(new ValidationProblem(IMarker.SEVERITY_WARNING, message, source
              .getUnderlyingResource(), JdtUtils.getLineNumber(source),
              newAttributes));
        }
      }
      catch (JavaModelException e) {
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.core.model.validation.ValidationProblem

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.