// hide any existing progress
hideSerializationProgress();
// create and show progress
activeSerializationProgress_ =
new ApplicationSerializationProgress(msg, modal, delayMs);
// implement timeout for *this* serialization progress instance if
// requested (check to ensure the same instance because another
// serialization progress could occur in the meantime and we don't
// want to hide it)
if (timeoutMs > 0)
{
final ApplicationSerializationProgress timeoutSerializationProgress =
activeSerializationProgress_;
new Timer() {
@Override
public void run()
{