Search in sources :

Example 11 with ISVNLogMessage

use of org.tigris.subversion.svnclientadapter.ISVNLogMessage in project subclipse by subclipse.

the class SubclipseLinkedTaskInfo method getText.

public String getText() {
    if (comment == null && changeSet != null) {
        try {
            SyncInfoTree syncInfoSet = changeSet.getSyncInfoSet();
            SVNStatusSyncInfo info = (SVNStatusSyncInfo) syncInfoSet.getSyncInfo(resource);
            ISVNRemoteResource remoteResource = (ISVNRemoteResource) info.getRemote();
            SVNRevision rev = remoteResource.getLastChangedRevision();
            ISVNLogMessage[] messages = remoteResource.getLogMessages(rev, rev, SVNRevision.START, false, false, 1, false);
            comment = messages[0].getMessage();
        } catch (TeamException ex) {
            comment = changeSet.getComment();
        }
    }
    return comment;
}
Also used : TeamException(org.eclipse.team.core.TeamException) SVNStatusSyncInfo(org.tigris.subversion.subclipse.core.sync.SVNStatusSyncInfo) SyncInfoTree(org.eclipse.team.core.synchronize.SyncInfoTree) ISVNRemoteResource(org.tigris.subversion.subclipse.core.ISVNRemoteResource) SVNRevision(org.tigris.subversion.svnclientadapter.SVNRevision) ISVNLogMessage(org.tigris.subversion.svnclientadapter.ISVNLogMessage)

Aggregations

ISVNLogMessage (org.tigris.subversion.svnclientadapter.ISVNLogMessage)11 ArrayList (java.util.ArrayList)5 Iterator (java.util.Iterator)5 List (java.util.List)5 IOException (java.io.IOException)4 RandomAccessFile (java.io.RandomAccessFile)4 ISVNClientAdapter (org.tigris.subversion.svnclientadapter.ISVNClientAdapter)4 SVNRevision (org.tigris.subversion.svnclientadapter.SVNRevision)3 File (java.io.File)2 ISVNRemoteFile (org.tigris.subversion.subclipse.core.ISVNRemoteFile)2 ISVNRemoteResource (org.tigris.subversion.subclipse.core.ISVNRemoteResource)2 SVNException (org.tigris.subversion.subclipse.core.SVNException)2 ISVNLogMessageChangePath (org.tigris.subversion.svnclientadapter.ISVNLogMessageChangePath)2 SVNUrl (org.tigris.subversion.svnclientadapter.SVNUrl)2 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)1 TeamException (org.eclipse.team.core.TeamException)1 SyncInfoTree (org.eclipse.team.core.synchronize.SyncInfoTree)1 PartInitException (org.eclipse.ui.PartInitException)1 WorkbenchException (org.eclipse.ui.WorkbenchException)1 ISVNLocalResource (org.tigris.subversion.subclipse.core.ISVNLocalResource)1