| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS. |
| | | * Portions Copyright 2015-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.quicksetup.util; |
| | | |
| | |
| | | this.backgroundTask = backgroundTask; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Performs the processing associated with the background task. |
| | | */ |
| | | /** Performs the processing associated with the background task. */ |
| | | @Override |
| | | public void run() |
| | | { |
| | | try |
| | |
| | | final T returnValue = backgroundTask.processBackgroundTask(); |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | backgroundTask.backgroundTaskCompleted(returnValue, null); |
| | |
| | | { |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | backgroundTask.backgroundTaskCompleted(null, t); |