package no.uio.ifi.refaktor.handlers.entrypoints;
+import java.util.Date;
+
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
try {
changer.refactor(new NullProgressMonitor());
- MessageDialog.openInformation(window.getShell(), "no.uio.ifi.refaktor", changer.getClass() + " has been excuted: " + System.currentTimeMillis());
+ MessageDialog.openInformation(window.getShell(), "no.uio.ifi.refaktor", changer.getClass() + " has been excuted: " + (System.currentTimeMillis()-startTime)%1000);
return null;
} catch (RefaktorChangerException e) {
RefaktorDebug.log(e);
} catch (CoreException e) {
RefaktorDebug.log(e);
}finally{
- RefaktorDebug.log("finished executing: " + (System.currentTimeMillis()-startTime) + " millisec");
+ RefaktorDebug.log("finished executing: " + (System.currentTimeMillis()-startTime)%1000 + " sec");
}
MessageDialog.openInformation(window.getShell(), "no.uio.ifi.refaktor", changer.getClass() + " did not execute correctly");