Examples of IResourceVisitor


Examples of org.eclipse.core.resources.IResourceVisitor

                        }
                    });

                    try {

                        syncStartPoint.accept(new IResourceVisitor() {

                            @Override
                            public boolean visit(IResource resource) throws CoreException {
                                Command<?> command = factory.newCommandForAddedOrUpdated(selectedServer[0], resource);
                                if (command == null) {
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

        final IContentType javaContentType = contentTypeManager.getContentType("org.eclipse.jdt.core.javaSource");
        final HashSet<String> packages = new HashSet<String>();

        try
        {
            project.getProject().accept(new IResourceVisitor()
            {
                public boolean visit(IResource resource) throws CoreException
                {
                    if (resource instanceof IFile)
                    {
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

    private void recursiveCheck(IContainer element, final boolean checked,
        final boolean sync)
    {
        try
        {
            element.accept(new IResourceVisitor()
            {
                public boolean visit(IResource resource) throws CoreException
                {
                    viewer.setChecked(resource, checked);
                    if (sync)
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

        IResource importStartingPoint = contentSyncRootDir.findMember(repositoryImportRoot);
        if (importStartingPoint == null) {
            return;
        }
        importStartingPoint.accept(new IResourceVisitor() {

            @Override
            public boolean visit(IResource resource) throws CoreException {

                try {
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

                    outputLocation = outputLocation.makeRelativeTo(getProject().getFullPath());
          filteredLocations.add(outputLocation.toString());
        }
      }
           
            getProject().accept(new IResourceVisitor() {
                @Override
                public boolean visit(IResource resource) throws CoreException {

                    if (resource.getType() == IResource.PROJECT) {
                        return true;
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

            if (syncFolder == null || !syncFolder.exists()) {
                return EMPTY_MODULE_RESOURCES;
            }

            syncFolder.accept(new IResourceVisitor() {
                @Override
                public boolean visit(IResource resource) throws CoreException {

                    IPath relativePath = resource.getProjectRelativePath();
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

    @SuppressWarnings("unused")
    private List<String> findTestDirs(final IProject prj) {
        final List<String> result = Lists.newArrayList();
        try {
            prj.accept(new IResourceVisitor() {
                @Override
                public boolean visit(final IResource resource) throws CoreException {
                    if (resource.getName().matches(".*_SUITE.erl")) {
                        final IContainer dir = resource.getParent();
                        final IPath pdir = dir.getProjectRelativePath();
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

                final IErlProject erlProject = ErlangEngine.getInstance().getModel()
                        .findProject(project);
                for (final IPath dir : erlProject.getProperties().getSourceDirs()) {
                    final IFolder folder = project.getFolder(dir);
                    if (folder.isAccessible()) {
                        folder.accept(new IResourceVisitor() {
                            @Override
                            public boolean visit(final IResource resource)
                                    throws CoreException {
                                if ("erl".equals(resource.getFileExtension())) {
                                    if (resource.isAccessible()) {
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

    public Collection<IPath> getIncludePaths(final IProject project) {
        return getProjectPaths(project);
    }

    private void computeSourcePaths() throws CoreException {
        ResourcesPlugin.getWorkspace().getRoot().accept(new IResourceVisitor() {

            @Override
            public boolean visit(final IResource resource) throws CoreException {
                final IProject project = resource.getProject();
                if (project != null && isTestDir(resource)) {
View Full Code Here

Examples of org.eclipse.core.resources.IResourceVisitor

        for (Iterator iter = resources.iterator(); iter.hasNext();) {
            IResource resource = (IResource) iter.next();
            if (resource.exists()) {
                // visit each resource deeply
                try {
                    resource.accept(new IResourceVisitor() {
                    public boolean visit(IResource aResource) {
                        ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(aResource);
                        // skip ignored resources and their children
                        try {
                            if (svnResource.isIgnored()){
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.