Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-18 09:13:45 +0000
committerLars Vogel2019-06-18 09:13:45 +0000
commite82ea939cc04c50f9291734add69d038c867f64a (patch)
treec866f89b9c7cfeb6c6d7a17b4cfe15d049a92d68 /org.eclipse.ui.externaltools
parentc642e98e154c4b8b34d3cab4023cee1ad2f3cb35 (diff)
downloadeclipse.platform.debug-e82ea939cc04c50f9291734add69d038c867f64a.tar.gz
eclipse.platform.debug-e82ea939cc04c50f9291734add69d038c867f64a.tar.xz
eclipse.platform.debug-e82ea939cc04c50f9291734add69d038c867f64a.zip
Use addAll, deleteAll instead of looping through a collectionI20190620-0130I20190619-1820I20190619-1800I20190618-1805
Change-Id: I9c95900ed1b6e8823bb30c4ded37f214a92deffc Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.ui.externaltools')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuildTab.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuildTab.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuildTab.java
index e483f439f..82f689608 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuildTab.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsBuildTab.java
@@ -16,6 +16,7 @@ package org.eclipse.ui.externaltools.internal.launchConfigurations;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.Iterator;
import java.util.List;
@@ -240,9 +241,7 @@ public class ExternalToolsBuildTab extends AbstractLaunchConfigurationTab {
fSpecificProjectsButton.setSelection(true);
IProject[] projects = getBuildProjects(configuration, IExternalToolConstants.ATTR_BUILD_SCOPE);
fProjects = new ArrayList<>(projects.length);
- for (int i = 0; i < projects.length; i++) {
- fProjects.add(projects[i]);
- }
+ Collections.addAll(fProjects, projects);
}
}
}

Back to the top