Package org.tigris.subversion.subclipse.core.resources

Examples of org.tigris.subversion.subclipse.core.resources.LocalResourceStatus


        if ( null == svnResource ) {
            throw new ReviewboardException(MessageFormat.format(
                    RbSubclipseMessages.getString("ERROR_NOSVNPROPERTIES"),
                    new Object[]{ resource.getLocation().toString() }));
        } else {
            LocalResourceStatus status = null;
            try {
                status = svnResource.getStatus();
            } catch (SVNException e) {
            }
            if( null != status ){
                svnUrl = status.getUrlString() != null ? status.getUrlString() : EMPTY_STRING;
            }
            if ( null == status || !status.isManaged() || null == svnUrl || svnUrl.trim().isEmpty()) {
                throw new ReviewboardException(MessageFormat.format(
                        RbSubclipseMessages.getString("ERROR_NOSVNPROPERTIES"),
                        new Object[]{ resource.getLocation().toString() }));
            }
        }
View Full Code Here


            throw new ReviewboardException(
                    MessageFormat.format(RbSubclipseMessages.getString("ERROR_NOSVNPROPERTIES"),
                    new Object[]{ resource.getProject().getName() }));
        }
        try {
            LocalResourceStatus statusBase = svnResourceBase.getStatus();
            if( null != statusBase ){
                svnUrl = statusBase.getUrlString() != null ? statusBase.getUrlString() : EMPTY_STRING;
            }
            if ( null == statusBase || !statusBase.isManaged() || null == svnUrl || svnUrl.trim().isEmpty()) {
                throw new ReviewboardException(
                        MessageFormat.format(RbSubclipseMessages.getString("ERROR_NOSVNPROPERTIES"),
                        new Object[]{ resource.getProject().getName() }));
            }
        } catch (Exception e) {
View Full Code Here

        ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);
        if ( null == svnResource ) {
            throw new ReviewboardException(MessageFormat.format(RbSubclipseMessages.getString("ERROR_NOSVNPROPERTIES"),
                    new Object[]{ resource.getLocation().toString() }));
        } else {
            LocalResourceStatus status = null;
            try {
                status = svnResource.getStatus();
            } catch (SVNException e) {
            }
            if( null != status ){
                try {
                    repositoryRootUrl = status.getRepository().getRootFolder().getUrl().toString();
                } catch (Exception e) {
                    repositoryRootUrl = null;
                }
            }
            if ( null == status || !status.isManaged()
                    || null == repositoryRootUrl
                    || repositoryRootUrl.trim().isEmpty()) {
                throw new ReviewboardException(
                        MessageFormat.format(RbSubclipseMessages.getString("ERROR_NOSVNPROPERTIES"),
                        new Object[]{ resource.getLocation().toString() }));
View Full Code Here

       
        ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);
        if ( null == svnResource ) {
            return false;
        } else {
            LocalResourceStatus status = null;
            try {
                status = svnResource.getStatus();
            } catch (SVNException e) {
            }
            if( null != status ){
                svnUrl = status.getUrlString() != null ? status.getUrlString() : EMPTY_STRING;
            }
            if ( null == status || !status.isManaged() || null == svnUrl || svnUrl.trim().isEmpty()) {
                return false;
            }
        }
        return true;
    }
View Full Code Here

    @Override
    public boolean hasLocalCache(IProject project) {
        // cf org.tigris.subversion.subclipse.ui.wizards.sharing.SharingWizard
        boolean isSVNFolder = false;
        try {
            LocalResourceStatus projectStatus = SVNWorkspaceRoot
                .peekResourceStatusFor(project);
            isSVNFolder = (projectStatus != null) && projectStatus.hasRemote();
        } catch (final SVNException e) {
            undocumentedException(e);
        }
        return isSVNFolder;
    }
View Full Code Here

TOP

Related Classes of org.tigris.subversion.subclipse.core.resources.LocalResourceStatus

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.