diff --git a/org.ntlab.traceCollector/src/org/ntlab/traceCollector/handlers/InstrumentationHandler.java b/org.ntlab.traceCollector/src/org/ntlab/traceCollector/handlers/InstrumentationHandler.java index c20eaa1..f1a1b6f 100644 --- a/org.ntlab.traceCollector/src/org/ntlab/traceCollector/handlers/InstrumentationHandler.java +++ b/org.ntlab.traceCollector/src/org/ntlab/traceCollector/handlers/InstrumentationHandler.java @@ -11,6 +11,10 @@ import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.core.runtime.jobs.Job; import org.eclipse.jdt.core.IClasspathEntry; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jdt.core.JavaCore; @@ -83,8 +87,19 @@ } // �C���X�g�D�������e�[�V�������s�� + final String CLASS_PATH = classPath; Tracer.initialize(new OutputStatementsGenerator(getGenerator()), cp); // �����ŏo�̓t�H�[�}�b�g���w�肷�� - Tracer.packageInstrumentation("", classPath + "/"); + Job job = new Job("Instrumentation") { + @Override + protected IStatus run(IProgressMonitor monitor) { + monitor.beginTask("Running instrumentation...", IProgressMonitor.UNKNOWN); + Tracer.packageInstrumentation("", CLASS_PATH + "/"); + monitor.done(); + return Status.OK_STATUS; + } + }; + job.setUser(true); + job.schedule(); } catch (JavaModelException | NotFoundException e) { e.printStackTrace(); }