}
/**
- * Sets whether to activate the debug mode.
- *
- * @param debug
- * <code>true</code> to activate the debug mode,
- * <code>false</code> to deactivate.
- */
- public void setDebug(boolean debug) {
- projectInserter.setDebug(debug);
- }
-
- /**
* Sets the project to insert.
*
* @param project
* {@inheritDoc}
*/
public void projectInsertStarted(final Project project) {
- startTime = System.currentTimeMillis();
+
SwingUtilities.invokeLater(new Runnable() {
@SuppressWarnings("synthetic-access")
public void run() {
- startTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date(startTime)));
+ startTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));
}
});
}
/**
* {@inheritDoc}
*/
+ public void projectUploadFinished(Project project) {
+ startTime = System.currentTimeMillis();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public void projectURIGenerated(Project project, final String uri) {
SwingUtilities.invokeLater(new Runnable() {