Added workedChecked().
authorem.lee <em.lee@localhost>
Fri, 29 Jan 2010 13:15:42 +0000 (13:15 +0000)
committerem.lee <em.lee@localhost>
Fri, 29 Jan 2010 13:15:42 +0000 (13:15 +0000)
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java

index 300bf250855b4d8f8517f824cf4c3a0b783c0dd3..20207aa54288fbd52edc37f8a1891a3bff64242a 100644 (file)
@@ -131,14 +131,14 @@ public abstract class AbstractUtility {
         IProgressMonitor newMonitor = startMainMonitor(getMonitor(),operation.getLabel(), 100);
 
                // Check whether operation was canceled and do some steps.
-        isCanceled(newMonitor, 10);
+        workedChecked(newMonitor, 10);
 
         try {
                        IStatus status = getOperationHistory().execute(operation, newMonitor,
                                        WorkspaceUndoUtil.getUIInfoAdapter(getShell()));
 
                        // Check whether operation was canceled and do some steps.
-               isCanceled(newMonitor, 30);
+                       workedChecked(newMonitor, 30);
 
                String statusString = status.equals(Status.OK_STATUS) ? "completed" : "cancelled";
                        setStatusLine(operation.getLabel() + " " + statusString + ".");
@@ -208,7 +208,7 @@ public abstract class AbstractUtility {
         * @param newMonitor
         * @return 
         */
-       public static void isCanceled(IProgressMonitor newMonitor, int steps) {
+       public static void workedChecked(IProgressMonitor newMonitor, int steps) {
                // In case the progress monitor was canceled throw an exception.
                if (newMonitor.isCanceled()) {
                        throw new OperationCanceledException();