org.jdesktop.swingworker..SwingWorker.cdiff.swp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swing-worker Show documentation
Show all versions of swing-worker Show documentation
Long running Swing GUI interacting tasks
The newest version!
b0VIM 7.0 )#?E6I ? idk IGGAMER /cygdrive/d/work/eclipsews/swingworker cvs/src/java/org/jdesktop/swingworker/SwingWorker.java.cdiff
3210#"! U tp ? ? ???? ? ad 3 w ? ? ^ N @ : # ? ? ? ? r o N ' $ ?
?
?
?
?
^
[
U
G
A
*
'
? ? ? ? p P M , ? ? ? ? ? v s m ] L " ?
?
?
?
?
U
K
? ? ? ? ? Q N D
? ? ? ? h P M ( ? ? ? ? ? ? | k 3 ? ? ? p H @ 9 / ? ? ? ? ? P D < 9 6 , ? ? ? ? k _ W T Q G 7 & ? ? ? ? ? h : ? ? ? ? w v + public void firePropertyChange(final PropertyChangeEvent evt) { + @Override + } + super(source); + SwingWorkerPropertyChangeSupport(Object source) { + extends PropertyChangeSupport { + private class SwingWorkerPropertyChangeSupport + } } run(); public void actionPerformed(ActionEvent event) { } --- 872,898 ---- *** 874,879 **** *************** /** } } ! doSubmit.add(doDone); } else { doDone.run(); if (SwingUtilities.isEventDispatchThread()) { }; } --- 719,729 ---- /** } } ! SwingUtilities.invokeLater(doDone); } else { doDone.run(); if (SwingUtilities.isEventDispatchThread()) { }; } *** 721,731 **** *************** /** } doNotifyProgressChange = null; doProcess = null; ! propertyChangeSupport = new SwingWorkerPropertyChangeSupport(this); state = StateValue.PENDING; }; } setState(StateValue.DONE); --- 286,296 ---- /** } doNotifyProgressChange = null; doProcess = null; ! ! propertyChangeSupport = new SwingPropertyChangeSupport(this, true); state = StateValue.PENDING; }; } setState(StateValue.DONE); *** 287,298 **** *************** private AccumulativeRunnable doProcess; */ * handler for {@code process} mehtod. /** ! private final PropertyChangeSupport propertyChangeSupport; */ * all propertyChangeSupport goes through this. /** private final FutureTask future; --- 228,238 ---- private AccumulativeRunnable doProcess; */ * handler for {@code process} mehtod. /** ! private final SwingPropertyChangeSupport propertyChangeSupport; */ * all propertyChangeSupport goes through this. /** private final FutureTask future; *** 229,239 **** *************** /** import sun.swing.AccumulativeRunnable; import sun.awt.AppContext; import javax.swing.SwingUtilities; import java.awt.event.*; import java.util.concurrent.locks.*; import java.util.concurrent.*; import java.util.Collections; import java.util.ArrayList; import java.util.List; + import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeSupport; import java.beans.PropertyChangeListener; package javax.swing; */ --- 6,26 ---- /** import sun.swing.AccumulativeRunnable; import sun.awt.AppContext; - - import javax.swing.event.SwingPropertyChangeSupport; import javax.swing.SwingUtilities; import java.awt.event.*; import java.util.concurrent.locks.*; import java.util.concurrent.*; import java.util.Collections; import java.util.ArrayList; import java.util.List; import java.beans.PropertyChangeSupport; import java.beans.PropertyChangeListener; package javax.swing; */ *** 6,27 **** *************** --- SwingWorker.java Tue Nov 14 17:36:55 2006 *** /home/idk/work/fixes/6493680/ws/webrev/src/share/classes/javax/swing/SwingWorker.java- Tue Nov 14 18:22:32 2006 ad ?
) ? ? | \ 5 ? ? k Q A 5 - ) ( } + } + } + } + }); + } + .firePropertyChange(evt); + SwingWorkerPropertyChangeSupport.this + public void run() { + new Runnable() { + doSubmit.add( + } else { + super.firePropertyChange(evt); + if (SwingUtilities.isEventDispatchThread()) {
© 2015 - 2025 Weber Informatics LLC | Privacy Policy