Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2013-03-26 12:22:32 -0400
committerBrian Vosburgh2013-03-26 12:22:32 -0400
commit6666a0ebe7a15cb467b0a5ff68d364a9e71cf60c (patch)
tree527b6ee90c2d60a4ee93e44b2076ebea5ac18f51 /common/plugins/org.eclipse.jpt.common.core/src
parent099c411cd98c11cb10c25ee07d6cb6de1d084cd9 (diff)
downloadwebtools.dali-6666a0ebe7a15cb467b0a5ff68d364a9e71cf60c.tar.gz
webtools.dali-6666a0ebe7a15cb467b0a5ff68d364a9e71cf60c.tar.xz
webtools.dali-6666a0ebe7a15cb467b0a5ff68d364a9e71cf60c.zip
clean up AbstractJptGenerator
Diffstat (limited to 'common/plugins/org.eclipse.jpt.common.core/src')
-rw-r--r--common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java21
1 files changed, 10 insertions, 11 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java
index ce0c781f23..94f9bceb57 100644
--- a/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java
+++ b/common/plugins/org.eclipse.jpt.common.core/src/org/eclipse/jpt/common/core/internal/gen/AbstractJptGenerator.java
@@ -50,7 +50,7 @@ public abstract class AbstractJptGenerator implements JptGenerator
private IVMInstall jre;
private ILaunchConfigurationWorkingCopy launchConfig;
- private ILaunch launch;
+ /* CU private */ ILaunch launch;
private final IJavaProject javaProject;
private final String projectLocation;
@@ -139,7 +139,7 @@ public abstract class AbstractJptGenerator implements JptGenerator
this.getLaunchManager().addLaunchListener(this.buildLaunchListener());
}
- private void removeLaunchListener(ILaunchesListener2 listener) {
+ /* CU private */ void removeLaunchListener(ILaunchesListener2 listener) {
this.getLaunchManager().removeLaunchListener(listener);
}
@@ -164,11 +164,11 @@ public abstract class AbstractJptGenerator implements JptGenerator
}
}
- private void generationSuccessful() {
+ /* CU private */ void generationSuccessful() {
this.postGenerate(true);
}
- private void generationFailed() {
+ /* CU private */ void generationFailed() {
this.postGenerate(false);
}
@@ -176,12 +176,11 @@ public abstract class AbstractJptGenerator implements JptGenerator
return new ILaunchesListener2() {
public void launchesTerminated(ILaunch[] launches) {
- for(int i = 0; i < launches.length; i++) {
- ILaunch launch = launches[i];
- if (launch.equals(AbstractJptGenerator.this.getLaunch())) {
+ for (ILaunch terminatedLaunch : launches) {
+ if (terminatedLaunch.equals(AbstractJptGenerator.this.getLaunch())) {
try {
- if(launch.isTerminated()) {
- if(this.generationIsSuccessful(launch)) {
+ if(terminatedLaunch.isTerminated()) {
+ if(this.generationIsSuccessful(terminatedLaunch.getProcesses())) {
AbstractJptGenerator.this.generationSuccessful();
}
else {
@@ -198,9 +197,9 @@ public abstract class AbstractJptGenerator implements JptGenerator
}
}
- private boolean generationIsSuccessful(ILaunch launch) {
+ private boolean generationIsSuccessful(IProcess[] processes) {
int exitValue = -1;
- for (IProcess process : launch.getProcesses()) {
+ for (IProcess process : processes) {
try {
exitValue = process.getExitValue();
break;

Back to the top