Package org.eclipse.core.resources

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


        ProjectDeltaVisitor deltaVisitor = new ProjectDeltaVisitor(getProject(), changedFiles);

        // Get delta on local project
        delta = getDelta(getProject());
        if (delta != null) {
            delta.accept(deltaVisitor);

            log(LOG_FULL, "%d files in local project (outside target) changed or removed: %s, forced=%s", changedFiles.size(), changedFiles, deltaVisitor.force);

            if (deltaVisitor.force || changedFiles.size() > 0) {
                log(LOG_FULL, "Project changed: files=%s, force = %s", changedFiles, deltaVisitor.force);
View Full Code Here


            for (IProject depProject : dependsOn) {
                delta = getDelta(depProject);
                if (delta != null) {
                    Set<File> changedByProject = new HashSet<File>();
                    ProjectDeltaVisitor depVisitor = new ProjectDeltaVisitor(depProject, changedByProject);
                    delta.accept(depVisitor);

                    changedFiles.addAll(changedByProject);

                    //
                    // If the visitor detected a project that we depend on
View Full Code Here

            log(LOG_FULL, "no delta available for cnf project, ignoring");
            return false;
        }

        final AtomicBoolean result = new AtomicBoolean(false);
        cnfDelta.accept(new IResourceDeltaVisitor() {
            public boolean visit(IResourceDelta delta) throws CoreException {
                if (!isChangeDelta(delta))
                    return false;

                if (IResourceDelta.MARKERS == delta.getFlags())
View Full Code Here

            log(LOG_BASIC, "local project delta is null, assuming changes exist", model.getName());
            return true;
        }

        final AtomicBoolean result = new AtomicBoolean(false);
        myDelta.accept(new IResourceDeltaVisitor() {
            public boolean visit(IResourceDelta delta) throws CoreException {
                if (!isChangeDelta(delta))
                    return false;

                IResource resource = delta.getResource();
View Full Code Here

        // Get delta on local project
        delta = getDelta(getProject());
        if (delta != null) {
            log(LOG_FULL, "%d files in local project (outside target) changed or removed: %s", changedFiles.size(), changedFiles);
            delta.accept(deltaVisitor);
        } else {
            log(LOG_BASIC, "no info on local changes available");
        }

        // Get deltas on dependency projects
View Full Code Here

        // Get deltas on dependency projects
        for (IProject depProject : dependsOn) {
            delta = getDelta(depProject);
            if (delta != null) {
                IResourceDeltaVisitor depVisitor = new ProjectDeltaVisitor(depProject, changedFiles);
                delta.accept(depVisitor);
                log(LOG_FULL, "%d files in dependency project '%s' changed or removed: %s", changedFiles.size(), depProject.getName(), changedFiles);
            } else {
                log(LOG_BASIC, "no info available on changes from project '%s'", depProject.getName());
            }
        }
View Full Code Here

            return;

        IResourceDelta rootDelta = event.getDelta();
        try {
            final Set<Project> changed = new HashSet<Project>();
            rootDelta.accept(new IResourceDeltaVisitor() {
                @Override
                public boolean visit(IResourceDelta delta) throws CoreException {
                    try {

                        IPath location = delta.getResource().getLocation();
View Full Code Here

    private void handleChange(IResourceChangeEvent event) throws CoreException
    {
        IResourceDelta delta = event.getDelta();
        final IFile editorFile = ((IFileEditorInput) getEditorInput()).getFile();
        delta.accept(new IResourceDeltaVisitor()
        {
            public boolean visit(IResourceDelta delta) throws CoreException
            {
                int kind = delta.getKind();
                IResource resource = delta.getResource();
View Full Code Here

    private void handleRefresh(IResourceChangeEvent event) throws CoreException
    {
        IResourceDelta delta = event.getDelta();
        if (delta != null)
        {
            delta.accept(new IResourceDeltaVisitor()
            {
                public boolean visit(IResourceDelta delta) throws CoreException
                {
                    IResource resource = delta.getResource();
                    if (resource instanceof IProject)
View Full Code Here

    private void handlePostChange(IResourceChangeEvent event) throws CoreException
    {
        IResourceDelta delta = event.getDelta();
        if (delta != null)
        {
            delta.accept(new IResourceDeltaVisitor()
            {
                public boolean visit(IResourceDelta delta) throws CoreException
                {
                    IResource resource = delta.getResource();
                    if (resource instanceof IProject)
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.