Revision 34688 branches/v2_0_0_prep/libraries/libUIComponent/src/org/gvsig/gui/beans/incrementabletask/IncrementableTask.java
IncrementableTask.java | ||
---|---|---|
30 | 30 |
import javax.swing.JDialog; |
31 | 31 |
import javax.swing.JOptionPane; |
32 | 32 |
|
33 |
import org.apache.log4j.Logger; |
|
33 |
import org.slf4j.Logger; |
|
34 |
import org.slf4j.LoggerFactory; |
|
35 |
|
|
34 | 36 |
import org.gvsig.gui.beans.Messages; |
35 | 37 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanel; |
36 | 38 |
import org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent; |
... | ... | |
47 | 49 |
* @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es) |
48 | 50 |
*/ |
49 | 51 |
public class IncrementableTask implements Runnable, ButtonsPanelListener { |
52 |
|
|
53 |
private static final Logger LOG = LoggerFactory |
|
54 |
.getLogger(IncrementableTask.class); |
|
55 |
|
|
50 | 56 |
IIncrementable iIncrementable = null; |
51 | 57 |
private volatile ProgressPanel progressPanel = null; |
52 | 58 |
private volatile Thread blinker = null; |
... | ... | |
257 | 263 |
callActionCommandListeners(IncrementableEvent.SUSPENDED); |
258 | 264 |
} |
259 | 265 |
catch (Exception iex) { |
260 |
Logger.getLogger(IncrementableTask.class).error(iex);
|
|
266 |
LOG.error("", iex);
|
|
261 | 267 |
JOptionPane.showMessageDialog(null, Messages.getText("Failed_pausing_the_process"), Messages.getText("Error"), JOptionPane.ERROR_MESSAGE); |
262 | 268 |
} |
263 | 269 |
} |
... | ... | |
280 | 286 |
if (iIncrementable.isPausable()) |
281 | 287 |
callActionCommandListeners(IncrementableEvent.RESUMED); |
282 | 288 |
} catch (Exception e2) { |
283 |
Logger.getLogger(IncrementableTask.class).error(e2);
|
|
289 |
LOG.error("", e2);
|
|
284 | 290 |
Messages.getText("Failed_resuming_the_process"); |
285 | 291 |
} |
286 | 292 |
} |
... | ... | |
290 | 296 |
if (iIncrementable.isPausable()) |
291 | 297 |
callActionCommandListeners(IncrementableEvent.RESUMED); |
292 | 298 |
} catch (Exception e2) { |
293 |
Logger.getLogger(IncrementableTask.class).error(e2);
|
|
299 |
LOG.error("", e2);
|
|
294 | 300 |
Messages.getText("Failed_resuming_the_process"); |
295 | 301 |
} |
296 | 302 |
} |
... | ... | |
314 | 320 |
} |
315 | 321 |
} |
316 | 322 |
catch (Exception iex) { |
317 |
Logger.getLogger(IncrementableTask.class).error(iex);
|
|
323 |
LOG.error("", iex);
|
|
318 | 324 |
JOptionPane.showMessageDialog(null, Messages.getText("Failed_pausing_the_process"), Messages.getText("Error"), JOptionPane.ERROR_MESSAGE); |
319 | 325 |
} |
320 | 326 |
|
Also available in: Unified diff