Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2007-03-21 00:52:14 +0000
committerSilenio Quarti2007-03-21 00:52:14 +0000
commit67fe8c4885e71e1e8846ea4cb08735b21b4d0399 (patch)
treef195132e995816469309c6133a10f847268d231b
parent30a77807d7aee86911de1f4b34df7c0bec036470 (diff)
downloadeclipse.platform.swt-67fe8c4885e71e1e8846ea4cb08735b21b4d0399.tar.gz
eclipse.platform.swt-67fe8c4885e71e1e8846ea4cb08735b21b4d0399.tar.xz
eclipse.platform.swt-67fe8c4885e71e1e8846ea4cb08735b21b4d0399.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/JNIGeneratorAppUI.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/JNIGeneratorAppUI.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/JNIGeneratorAppUI.java
index adaef84701..ec5e9fd188 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/JNIGeneratorAppUI.java
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/JNIGeneratorAppUI.java
@@ -168,20 +168,19 @@ void generateAll() {
public void run() {
try {
app.generate(!showProgress ? null : new ProgressMonitor() {
- int total, step;
- int STEP_SIZE = 100;
+ int total, step, maximum = 100;
public void setTotal(final int total) {
this.total = total;
display.syncExec(new Runnable() {
public void run() {
- progressBar.setMaximum(STEP_SIZE);
+ progressBar.setMaximum(maximum);
}
});
}
public void step() {
- int oldValue = step * STEP_SIZE / total;
+ int oldValue = step * maximum / total;
step++;
- final int newValue = step * STEP_SIZE / total;
+ final int newValue = step * maximum / total;
if (oldValue == newValue) return;
display.syncExec(new Runnable() {
public void run() {

Back to the top