Examples of VCSResourceInfo


Examples of de.fu_berlin.inf.dpp.vcs.VCSResourceInfo

            sb.append(resource.getFullPath().toPortableString());
            IProject project = resource.getProject();
            if (project != null) {
                VCSAdapter vcs = VCSAdapter.getAdapter(project);
                if (vcs != null && vcs.isManaged(resource)) {
                    VCSResourceInfo info = vcs.getResourceInfo(resource);
                    if (info.url != null)
                        sb.append(" " + info.url);
                    if (info.revision != null)
                        sb.append("@" + info.revision);
                }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.vcs.VCSResourceInfo

                pendingActivities.enter(activity);
                sharedProject.updateRevision(null);
                sharedProject.updateVcsUrl(null);
            } else {
                // Connect
                VCSResourceInfo info = vcs.getResourceInfo(project);
                String repositoryString = vcs.getRepositoryString(project);
                if (repositoryString == null || info.url == null) {
                    // HACK For some reason, Subclipse returns null values
                    // here. Pretend the vcs is still null and wait for the
                    // next time we get here.
View Full Code Here

Examples of de.fu_berlin.inf.dpp.vcs.VCSResourceInfo

        }
        Set<IPath> paths = resourceMap.keySet();
        for (IPath path : paths) {
            IResource resource = project.findMember(path);
            assert resource != null : "Resource not found at " + path; //$NON-NLS-1$
            VCSResourceInfo info = vcs.getResourceInfo(resource);

            updateVcsUrl(resource, info.url);
            updateRevision(resource, info.revision);
        }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.vcs.VCSResourceInfo

            }
            assert resource.exists();
            if (vcs == null)
                continue;

            VCSResourceInfo expected = vcs.getResourceInfo(resource);
            ResourceInfo found = entry.getValue();
            String foundUrl = found.vcsUrl.getValue();
            String foundRevision = found.vcsRevision.getValue();
            if (found.vcsRevision.update(expected.revision)) {
                String msg = format(
                    Messages.SharedProject_revision_out_of_sync, path,
                    projectName, foundRevision, expected.revision);
                logIllegalStateException(msg);
                illegalState = true;
            }
            if (found.vcsUrl.update(expected.url)) {
                String msg = format(Messages.SharedProject_vcs_url_out_of_sync,
                    path, projectName, foundUrl, expected.url);
                logIllegalStateException(msg);
                illegalState = true;
            }
        }
        IResourceVisitor visitor = new IResourceVisitor() {
            boolean result = false;

            public boolean visit(IResource resource) {
                if (resource == null)
                    return result;
                IPath path = resource.getProjectRelativePath();
                String assMsg = MessageFormat.format(
                    Messages.SharedProject_path_is_null, resource);
                assert path != null : assMsg;
                if (!contains(resource)) {
                    final String msg = format(
                        Messages.SharedProject_resource_map_does_not_contain,
                        projectName, path.toString());
                    logIllegalStateException(msg);
                    result = true;
                    add(resource);
                    if (vcs != null) {
                        final VCSResourceInfo info = vcs
                            .getResourceInfo(resource);
                        updateRevision(resource, info.revision);
                        updateVcsUrl(resource, info.url);
                    }
                }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.vcs.VCSResourceInfo

            return;

        if (!vcs.isManaged(resource))
            return;

        final VCSResourceInfo info = vcs.getCurrentResourceInfo(resource);
        final IPath path = resource.getProjectRelativePath();
        if (resource instanceof IProject) {
            /*
             * We have to revert the project first because the invitee could
             * have deleted a managed resource. Also, we don't want an update or
View Full Code Here

Examples of de.fu_berlin.inf.dpp.vcs.VCSResourceInfo

        }
    }

    private boolean addVCSInfo(IResource resource, FileListData data,
        VCSAdapter vcs) {
        final VCSResourceInfo info = vcs.getCurrentResourceInfo(resource);
        if (info == null)
            return false;

        data.vcsInfo = info;
        return true;
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.