final long timestamp = SystemTime.getCurrentTime();
lastUpdate = timestamp;
final int position = scale.getSelection();
AEThread t = new AEThread("") {
public void runSupport() {
try {
Thread.sleep(150);
} catch (Exception e) {
e.printStackTrace();
}
if (timestamp == lastUpdate) {
if (display != null && !display.isDisposed()) {
display.asyncExec(new Runnable() {
public void run() {
refreshCurrentImage(position);
}
});
}
}
}
};
t.setDaemon(true);
t.start();
}
});
attach = scale;
label.setText(MessageText.getString("ImageResizer.move.image.with.slider"));