2
* Created on 09-dic-2005
4
* TODO To change the template for this generated file go to
5
* Window - Preferences - Java - Code Style - Code Templates
7
package org.herac.tuxguitar.gui.helper;
9
import org.eclipse.swt.widgets.Display;
10
import org.herac.tuxguitar.gui.TuxGuitar;
15
* TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
17
public class SyncThread extends Thread {
18
private Display display;
19
private Runnable runnable;
21
public SyncThread(Runnable runnable) {
22
this.display = TuxGuitar.instance().getDisplay();
23
this.runnable = runnable;
27
if(!display.isDisposed()){
28
display.syncExec(this.runnable);
b'\\ No newline at end of file'