Browse Source

Applied patch from Deryk Sinotte that fixes problem with discontiguous

selections of multiple targets.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268615 13f79535-47bb-0310-9956-ffa450edef68
master
metasim 24 years ago
parent
commit
db81fa173d
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      src/antidote/org/apache/tools/ant/gui/modules/TargetMonitor.java

+ 7
- 3
src/antidote/org/apache/tools/ant/gui/modules/TargetMonitor.java View File

@@ -144,13 +144,17 @@ public class TargetMonitor extends AntModule {

if(selected != null && selected.length > 0) {
StringBuffer buf = new StringBuffer();
String name = null;

for(int i = 0; i < selected.length; i++) {
if(selected[i] instanceof ACSTargetElement) {
if(buf.length() > 0) {
buf.append(", ");
name = ((ACSTargetElement)selected[i]).getName();
if( buf.toString().indexOf( name ) < 0 ) {
if(buf.length() > 0) {
buf.append(", ");
}
buf.append( name );
}
buf.append(((ACSTargetElement)selected[i]).getName());
}
}



Loading…
Cancel
Save