public void viewBuildChanges() {
Collection theSelectedObjects = getSelectedProjects();
for( Iterator iter=theSelectedObjects.iterator();iter.hasNext(); ) {
JmxProject theCurrentProject = (JmxProject) iter.next();
List lastBuildChanges = theCurrentProject.getLastBuildChanges();
StringBuffer sb = new StringBuffer( 1000 );
if ( lastBuildChanges == null ) {
sb.append( "No changes could be found on server" );
}
else {
String lastUser = null;
Iterator modificationsIter = lastBuildChanges.iterator();
while ( modificationsIter.hasNext() ) {
ProjectModification modification = (ProjectModification) modificationsIter.next();
String currentUser = modification.getUser();
if ( lastUser == null || !lastUser.equals( currentUser )) {
lastUser = currentUser;
sb.append( currentUser );
sb.append( "\r\n\t" );
}
sb.append( modification.getComment() );
sb.append( "\r\n" );
}
}
OutputStatusPanel panel = new OutputStatusPanel();
panel.setText( sb.toString() );
String title = theCurrentProject.getProjectName() + " Changes";
panel.showDialog( this, title, true );
}
}