Examples of accept()


Examples of org.eclipse.cdt.core.dom.ast.IASTName.accept()

  protected void writeDefaultDeclarator(final IASTDeclarator declarator) {
    final IASTPointerOperator[] pointOps = declarator.getPointerOperators();
    writePointerOperators(declarator, pointOps);
    final IASTName name = declarator.getName();
    name.accept(visitor);
    writeNestedDeclarator(declarator);
    final IASTInitializer init = getInitializer(declarator);
    if (init != null) {
      init.accept(visitor);
    }
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.IASTNode.accept()

        }
      } else if (node instanceof ICPPASTNamespaceDefinition) {
        writer.newLine();
      }
      precedingNode = null;
      newNode.accept(writer);
    }
    if (node instanceof ICPPASTNamespaceDefinition) {
      writer.newLine();
    }
    addToRootEdit(node);
View Full Code Here

Examples of org.eclipse.cdt.core.dom.ast.cpp.ICPPASTConstructorChainInitializer.accept()

      scribe.newLine();
      scribe.print(':');
    }
    for (int i = 0; i < ctorInitChain.length; ++i) {
      final ICPPASTConstructorChainInitializer initializer = ctorInitChain[i];
      initializer.accept(visitor);
      if ((i + 1) < ctorInitChain.length) {
        scribe.print(COMMA_SPACE);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.accept()

    if (inputElement instanceof File) {
      File root = (File) inputElement;   
      IContainer rootContainer = ResourcesPlugin.getWorkspace().getRoot().getContainerForLocation(new Path(root.getAbsolutePath()));
     
      try {
                rootContainer.accept(new IResourceVisitor() {
                   
                    public boolean visit(IResource resource) throws CoreException {
                        if(resource instanceof IFolder){
                            return true;
                        }
View Full Code Here

Examples of org.eclipse.core.resources.IFolder.accept()

  public Set<IFolder> getFileContainers() {
    final IFolder fFilesFolder = getFileContainerRoot();
    final Set<IFolder> fFileContainers = new HashSet<IFolder>();
    try {
      fFilesFolder.accept(new IResourceVisitor() {

        public boolean visit(IResource resource) throws CoreException {
          if (resource.equals(fFilesFolder)) {
            return true;
          } else if (resource instanceof IFolder) {
View Full Code Here

Examples of org.eclipse.core.resources.IProject.accept()

      for (IMarker marker : tmlmarkers) {
        if (marker.getResource() != null && marker.getResource() instanceof IFile) {
          TMLFileValidator.validateTMLFile((IFile)marker.getResource());
        }
      } 
      project.accept(new IResourceVisitor() {
       
        public boolean visit(IResource resource) throws CoreException {         
          if(resource instanceof IContainer){   
            WGADesignResourceValidator.validate((IContainer)resource);
            return true;
View Full Code Here

Examples of org.eclipse.core.resources.IResource.accept()

          final boolean hasOutputs = !outputs.isEmpty();
         
          final char[][] inclusionPatterns = ((ClasspathEntry) entry).fullInclusionPatternChars();
          final char[][] exclusionPatterns = ((ClasspathEntry) entry).fullExclusionPatternChars();
          if (max == 0) {
            sourceFolder.accept(
              new IResourceProxyVisitor() {
                public boolean visit(IResourceProxy proxy) {
                  if (isCancelled) return false;
                  switch(proxy.getType()) {
                    case IResource.FILE :
View Full Code Here

Examples of org.eclipse.core.resources.IResourceDelta.accept()

        return true;
      }
    };

    try {
      docDelta.accept(rvisitor);
      docDelta.accept(avisitor);

    } catch (CoreException e) {

    }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspaceRoot.accept()

    projects = ResourcesPlugin.getWorkspace().computeProjectOrder(projects).projects;
    dumpProjectReferences(projects);
   
    SysOutProgressMonitor.out.println("TOUCHING .classpath, .project AND org.eclipse.wst.common.component FILES TO RELOAD PROJECT DYNAMIC DEPENDENCIES:");
    wroot.accept(new IResourceVisitor(){

      public boolean visit(IResource res) throws CoreException
      {
        if (res.getType() == IResource.FILE)
        {
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.accept()

   */
  private void applyPreferences() {
    try {
      final ContentTypeCatalog localCatalog = catalog;
      final IEclipsePreferences root = localCatalog.getManager().getPreferences();
      root.accept(new IPreferenceNodeVisitor() {
        public boolean visit(IEclipsePreferences node) {
          if (node == root)
            return true;
          ContentType contentType = localCatalog.internalGetContentType(node.name());
          if (contentType != null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.