Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Doyle2007-10-31 04:47:34 +0000
committerKevin Doyle2007-10-31 04:47:34 +0000
commitd878466cef1e64766144d368ef86a176136b998e (patch)
treef09f8aeb1b80588d58e78816e45554bf5ff488fc
parentaeefefde886803a1ebf7724e894346362e438ca3 (diff)
downloadorg.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.java23
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));
}
}

Back to the top