projectviewer.importer
Class AutoReimporter

java.lang.Object
  extended by projectviewer.importer.AutoReimporter
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class AutoReimporter
extends java.lang.Object
implements java.awt.event.ActionListener

A timer task for triggering auto-reimport of projects.

Since:
PV 3.0.0
Author:
Marcelo Vanzin

Nested Class Summary
static class AutoReimporter.Options
          Class that encapsulates the auto-reimport options.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Performs the re-import of the project's files.
static javax.swing.Timer create(VPTProject p)
          Static constructor.
static void runNow()
          For testing purposes, run auto-reimport now, for the current project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static javax.swing.Timer create(VPTProject p)
Static constructor. Loads the configuration options from the given object, and if auto-reimport is enabled, create a new timer task and register it with the given timer.

Parameters:
p - The affected project.
Returns:
The timer object that manages the task.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Performs the re-import of the project's files.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

runNow

public static void runNow()
For testing purposes, run auto-reimport now, for the current project.