diff options
author | Kevin Doyle | 2007-10-31 04:47:34 +0000 |
---|---|---|
committer | Kevin Doyle | 2007-10-31 04:47:34 +0000 |
commit | d878466cef1e64766144d368ef86a176136b998e (patch) | |
tree | f09f8aeb1b80588d58e78816e45554bf5ff488fc | |
parent | aeefefde886803a1ebf7724e894346362e438ca3 (diff) | |
download | org.eclipse.tm-d878466cef1e64766144d368ef86a176136b998e.tar.gz org.eclipse.tm-d878466cef1e64766144d368ef86a176136b998e.tar.xz org.eclipse.tm-d878466cef1e64766144d368ef86a176136b998e.zip |
[150492] Tutorial FolderInfoPropertyPage doesn't work reliably
-rw-r--r-- | rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/propertypages/FolderInfoPropertyPage.java | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/propertypages/FolderInfoPropertyPage.java b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/propertypages/FolderInfoPropertyPage.java index 45e00e986..7f54344bb 100644 --- a/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/propertypages/FolderInfoPropertyPage.java +++ b/rse/examples/org.eclipse.rse.examples.tutorial/src/samples/ui/propertypages/FolderInfoPropertyPage.java @@ -13,6 +13,7 @@ * * Contributors: * Martin Oberhuber (Wind River) - Adapted original tutorial code to Open RSE. + * Kevin Doyle (IBM) - [150492] FolderInfoPropertyPage doesn't work reliably *******************************************************************************/ package samples.ui.propertypages; @@ -181,15 +182,14 @@ public class FolderInfoPropertyPage public void run() { - if (stopped) + if (stopped) { return; + } walkFolder(inputFolder); - updateGUI(); - if (!stopped) - { + if (!stopped) { stopped = true; - updateGUI(); } + updateGUI(); } /** @@ -239,18 +239,15 @@ public class FolderInfoPropertyPage { if (stopButton.isDisposed()) return; - if (!stopped) - { - sizeLabel.setText(Integer.toString(totalSize)); - filesLabel.setText(Integer.toString(totalFiles)); - foldersLabel.setText(Integer.toString(totalFolders)); - } - else if (stopped) + if (stopped) { setValid(true); // re-enable OK button stopButton.setEnabled(false); // disable Stop button clearMessage(); // clear "Processing..." message - } + } + sizeLabel.setText(Integer.toString(totalSize)); + filesLabel.setText(Integer.toString(totalFiles)); + foldersLabel.setText(Integer.toString(totalFolders)); } } |