From 70e4329d0479305f16158a63878f335ee9232a5e Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Mon, 15 Apr 2013 05:34:02 +0200 Subject: fdo#60724 successfull -> successful Change-Id: I287bef5b7f2baf5aaaab47141267ae2cadfe2451 --- wizards/com/sun/star/wizards/ui/event/Task.java | 10 +++++----- wizards/com/sun/star/wizards/ui/event/Task.py | 12 ++++++------ wizards/com/sun/star/wizards/web/WWD_Events.java | 4 ++-- wizards/com/sun/star/wizards/web/WWD_Events.py | 4 ++-- wizards/com/sun/star/wizards/web/status/Task.java | 10 +++++----- 5 files changed, 20 insertions(+), 20 deletions(-) (limited to 'wizards/com/sun/star') diff --git a/wizards/com/sun/star/wizards/ui/event/Task.java b/wizards/com/sun/star/wizards/ui/event/Task.java index 95aba42f1dd0..b142e2444094 100644 --- a/wizards/com/sun/star/wizards/ui/event/Task.java +++ b/wizards/com/sun/star/wizards/ui/event/Task.java @@ -23,7 +23,7 @@ import java.util.List; public class Task { - private int successfull = 0; + private int successful = 0; private int failed = 0; private int max = 0; private String taskName; @@ -62,14 +62,14 @@ public class Task { if (success_) { - successfull++; + successful++; } else { failed++; } fireTaskStatusChanged(); - if (failed + successfull == max) + if (failed + successful == max) { fireTaskFinished(); } @@ -83,7 +83,7 @@ public class Task public int getStatus() { - return successfull + failed; + return successful + failed; } public void addTaskListener(TaskListener tl) @@ -169,6 +169,6 @@ public class Task public int getSuccessfull() { - return successfull; + return successful; } } diff --git a/wizards/com/sun/star/wizards/ui/event/Task.py b/wizards/com/sun/star/wizards/ui/event/Task.py index 133f93b9c349..90d182c119fa 100644 --- a/wizards/com/sun/star/wizards/ui/event/Task.py +++ b/wizards/com/sun/star/wizards/ui/event/Task.py @@ -19,7 +19,7 @@ import traceback from .TaskEvent import TaskEvent class Task: - successfull = 0 + successful = 0 failed = 0 maximum = 0 taskName = "" @@ -46,13 +46,13 @@ class Task: def advance(self, success_): if success_: - self.successfull += 1 - print ("Success :", self.successfull) + self.successful += 1 + print ("Success :", self.successful) else: self.failed += 1 print ("Failed :", self.failed) self.fireTaskStatusChanged() - if (self.failed + self.successfull == self.maximum): + if (self.failed + self.successful == self.maximum): self.fireTaskFinished() def advance1(self, success_, nextSubtaskName): @@ -60,7 +60,7 @@ class Task: self.setSubtaskName(nextSubtaskName) def getStatus(self): - return self.successfull + self.failed + return self.successful + self.failed def addTaskListener(self, tl): self.listeners.append(tl) @@ -111,4 +111,4 @@ class Task: return self.failed def getSuccessfull(self): - return self.successfull + return self.successful diff --git a/wizards/com/sun/star/wizards/web/WWD_Events.java b/wizards/com/sun/star/wizards/web/WWD_Events.java index f574e672d4cf..3b557d50d2f1 100644 --- a/wizards/com/sun/star/wizards/web/WWD_Events.java +++ b/wizards/com/sun/star/wizards/web/WWD_Events.java @@ -885,7 +885,7 @@ public abstract class WWD_Events extends WWD_Startup /** * this method will be called when the Status Dialog * is hidden. - * It checks if the "Process" was successfull, and if so, + * It checks if the "Process" was successful, and if so, * it closes the wizard dialog. */ public void finishWizardFinished() @@ -929,7 +929,7 @@ public abstract class WWD_Events extends WWD_Startup /** * finish the wizard * @param exitOnCreate_ should the wizard close after - * a successfull create. + * a successful create. * Default is true, * I have a hidden feature which enables false here */ diff --git a/wizards/com/sun/star/wizards/web/WWD_Events.py b/wizards/com/sun/star/wizards/web/WWD_Events.py index 6b86594b7650..b227912578a3 100644 --- a/wizards/com/sun/star/wizards/web/WWD_Events.py +++ b/wizards/com/sun/star/wizards/web/WWD_Events.py @@ -735,7 +735,7 @@ class WWD_Events(WWD_Startup): ''' this method will be called when the Status Dialog is hidden. - It checks if the "Process" was successfull, and if so, + It checks if the "Process" was successful, and if so, it closes the wizard dialog. ''' @@ -770,7 +770,7 @@ class WWD_Events(WWD_Startup): ''' finish the wizard @param exitOnCreate_ should the wizard close after - a successfull create. + a successful create. Default is true, I have a hidden feature which enables false here ''' diff --git a/wizards/com/sun/star/wizards/web/status/Task.java b/wizards/com/sun/star/wizards/web/status/Task.java index bfe2ea6b5633..59e8bd1528fd 100644 --- a/wizards/com/sun/star/wizards/web/status/Task.java +++ b/wizards/com/sun/star/wizards/web/status/Task.java @@ -24,7 +24,7 @@ import java.util.List; public class Task { - private int successfull = 0; + private int successful = 0; private int failed = 0; private int max = 0; private String taskName; @@ -58,14 +58,14 @@ public class Task { if (success_) { - successfull++; + successful++; } else { failed++; } fireTaskStatusChanged(); - if (failed + successfull == max) + if (failed + successful == max) { fireTaskFinished(); } @@ -79,7 +79,7 @@ public class Task public int getStatus() { - return successfull + failed; + return successful + failed; } public void addTaskListener(TaskListener tl) @@ -158,6 +158,6 @@ public class Task public int getSuccessfull() { - return successfull; + return successful; } } -- cgit v1.2.3