com.ptc.wgmecad
Class WGMProgMon

java.lang.Object
  extended bycom.ptc.wgmecad.WGMProgMon

public class WGMProgMon
extends Object


Nested Class Summary
 class WGMProgMon.Status
           
 
Field Summary
static int INIT
           
static int OPERATION
           
private static WGMProgMon ourInstance
           
private static String[] phaseNameKeys
           
private  ProgressMonitor[] pmons
           
static int PRE
           
private  HashMap statusMap
           
private static int TOTAL
           
 
Constructor Summary
private WGMProgMon()
           
 
Method Summary
 void endPhase(int phase)
           
static WGMProgMon getInstance()
           
private static ProgressMonitor getProgressMonitor(String resourceKey, int blocks)
           
 void initPhase(int phase)
           
 void register(IRegisterProgress obj)
           
private  int statusForPhase(int phase)
           
private  int totalForPhase(int phase)
           
 void update(IRegisterProgress obj, int phase, int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT

public static final int INIT
See Also:
Constant Field Values

PRE

public static final int PRE
See Also:
Constant Field Values

OPERATION

public static final int OPERATION
See Also:
Constant Field Values

TOTAL

private static final int TOTAL
See Also:
Constant Field Values

phaseNameKeys

private static final String[] phaseNameKeys

pmons

private ProgressMonitor[] pmons

statusMap

private HashMap statusMap

ourInstance

private static WGMProgMon ourInstance
Constructor Detail

WGMProgMon

private WGMProgMon()
Method Detail

getInstance

public static WGMProgMon getInstance()

register

public void register(IRegisterProgress obj)

update

public void update(IRegisterProgress obj,
                   int phase,
                   int status)
            throws CancelledException
Throws:
CancelledException

initPhase

public void initPhase(int phase)

getProgressMonitor

private static ProgressMonitor getProgressMonitor(String resourceKey,
                                                  int blocks)

endPhase

public void endPhase(int phase)

totalForPhase

private int totalForPhase(int phase)

statusForPhase

private int statusForPhase(int phase)