org.apache.cayenne.modeler.util.LongRunningTask.class Maven / Gradle / Ivy
???? 1 ?
? ? ?
? ? ? ? ?
?
? ?
? ?
?
? ? ?
?
? ? ? ?
?
?
?
?
? ? ? ? ?
?
?
? ? ? ?
" ? ?
" ? ?
' ?
? ?
" ?
?
? ?
? ?
? ?
/ ? ?
" ?
?
" ?
?
? ?
?
? ?
? ?
?
" ? ? ?
? ? ? ? ? ? ?
? ? InnerClasses logObj Lorg/apache/commons/logging/Log; DEFAULT_MS_TO_DECIDE_TO_POPUP I
ConstantValue ? dialog 0Lorg/apache/cayenne/modeler/util/ProgressDialog; frame Ljavax/swing/JFrame; title Ljava/lang/String; taskPollingTimer Ljavax/swing/Timer; canceled Z minValue maxValue finished )(Ljavax/swing/JFrame;Ljava/lang/String;)V Code LineNumberTable LocalVariableTable this 1Lorg/apache/cayenne/modeler/util/LongRunningTask; startAndWait ()V e Ljava/lang/InterruptedException; start task Ljava/lang/Thread; progressDisplayTimer showProgress currentValue updateProgress progressBar Ljavax/swing/JProgressBar; stop
isFinished ()Z
isCanceled setCanceled (Z)V b internalExecute th Ljava/lang/Throwable; execute getCurrentNote ()Ljava/lang/String; getCurrentValue ()I isIndeterminate getMaxValue setMaxValue (I)V getMinValue setMinValue
SourceFile LongRunningTask.java Y a N O P Q ? ? o *org/apache/cayenne/CayenneRuntimeException ICan't block EventDispatchThread. Call 'startAndWait' from another thread. java/lang/Object Y ? d a X U ? a java/lang/InterruptedException q r ? a java/lang/Thread 1org/apache/cayenne/modeler/util/LongRunningTask$1 Y ? Y ? javax/swing/Timer /org/apache/cayenne/modeler/util/LongRunningTask 1org/apache/cayenne/modeler/util/LongRunningTask$2 Y ? ? r F G will show progress... ? ? ? z { p o } { 4task still in progress, will show progress dialog... .org/apache/cayenne/modeler/util/ProgressDialog Progress... Y ? L M ? ? 1org/apache/cayenne/modeler/util/LongRunningTask$3 ? ? ? ? ? ? { ? ? ? j a 1org/apache/cayenne/modeler/util/LongRunningTask$4 R S ? r m a ? ? x y ? ? ? | o ? ? r ? a T U
task canceled w a java/lang/Throwable
task error ? ? W I V I ? ? ? javax/swing/SwingUtilities isEventDispatchThread ((Ljava/lang/String;[Ljava/lang/Object;)V wait notifyAll 4(Lorg/apache/cayenne/modeler/util/LongRunningTask;)V (Ljava/lang/Runnable;)V #(ILjava/awt/event/ActionListener;)V
setRepeats org/apache/commons/logging/Log debug (Ljava/lang/Object;)V ;(Ljavax/swing/JFrame;Ljava/lang/String;Ljava/lang/String;)V getCancelButton ()Ljavax/swing/JButton; javax/swing/JButton addActionListener "(Ljava/awt/event/ActionListener;)V getProgressBar ()Ljavax/swing/JProgressBar; javax/swing/JProgressBar
setMinimum
setMaximum
setVisible getStatusLabel ()Ljavax/swing/JLabel; javax/swing/JLabel setText (Ljava/lang/String;)V setValue setIndeterminate dispose warn *(Ljava/lang/Object;Ljava/lang/Throwable;)V %org/apache/commons/logging/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;!
F G H I J K L M N O P Q R S T U V I W I X U Y Z [ Y *? *+? *,? ? \ <