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

Examples of org.springframework.ide.eclipse.core.model.IModelElementVisitor


      if (context instanceof IProjectContributorStateAware) {
        ((IProjectContributorStateAware) context).setProjectContributorState(contributorState);
      }

      if (context != null) {
        IModelElementVisitor visitor = new ValidationVisitor(context, ruleDefinitions);
        callback.getRootElement().accept(visitor, subMonitor);
        problems.addAll(context.getProblems());
      }
      if (subMonitor.isCanceled()) {
        throw new OperationCanceledException();
View Full Code Here


        addProject(beansProject);
      }
     
      // Eagerly populate the internal structure of the beans projects
      for (IBeansProject beanProject : projects.values()) {
        beanProject.accept(new IModelElementVisitor() {
          public boolean visit(IModelElement element, IProgressMonitor monitor) {
            return element instanceof IBeansProject;
          }
        }, new NullProgressMonitor());
      }
View Full Code Here

           
            if (monitor.isCanceled()) {
              throw new OperationCanceledException();
            }

            config.accept(new IModelElementVisitor() {
             
              public boolean visit(IModelElement element, IProgressMonitor monitor) {
                if (element instanceof IBean) {
                  beans.add((IBean) element);
                }
View Full Code Here

   * Returns the inner {@link IBean}s of a given {@link IModelElement}.
   * @since 2.1.0
   */
  public static Set<IBean> getInnerBeans(final IModelElement element, final boolean recursive) {
    final Set<IBean> innerBeans = new HashSet<IBean>();
    IModelElementVisitor visitor = new IModelElementVisitor() {
      public boolean visit(IModelElement visitedElement, IProgressMonitor monitor) {
        if (!element.equals(visitedElement) && visitedElement instanceof IBean
            && ((IBean) visitedElement).isInnerBean()) {
          innerBeans.add((IBean) visitedElement);
          return recursive;
View Full Code Here

    for (final IModelElement element : scope.getModelElements()) {
      if (monitor.isCanceled()) {
        throw new OperationCanceledException();
      }

      final IModelElementVisitor visitor = new IModelElementVisitor() {
        public boolean visit(final IModelElement element, IProgressMonitor monitor) {

          if (element instanceof IBeansConfig) {
            final IBeansConfig config = (IBeansConfig) element;
View Full Code Here

    result.removeAll();
    for (IModelElement element : scope.getModelElements()) {
      if (monitor.isCanceled()) {
        throw new OperationCanceledException();
      }
      IModelElementVisitor visitor = new IModelElementVisitor() {
        public boolean visit(IModelElement element,
            IProgressMonitor monitor) {
          if (doesMatch(element, compiledPattern, monitor)) {
            int startLine;
            int lines;
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.core.model.IModelElementVisitor

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.