Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Add Progress Listener for Model Building #1778

Closed
msteinbeck opened this issue Dec 7, 2017 · 1 comment · Fixed by #2043
Closed

feature: Add Progress Listener for Model Building #1778

msteinbeck opened this issue Dec 7, 2017 · 1 comment · Fixed by #2043
Labels

Comments

@msteinbeck
Copy link
Contributor

msteinbeck commented Dec 7, 2017

Using Spoon to create a model for large size projects takes quite some time. Thus, I would like to attach some sort of progress listener to the Launcher class allowing me to track the current progress while creating a model. The progress listener should be able to distinguish between source compilation (JDT) and model creation (Spoon). I did some research and found that the JDT compiler allows to attach a CompilationProgress. For the model creation, I would suggest to fire a progress event for each compilation unit.

Wrapping JDT's CompilationProgress class with a custom progress listener should be straightforward.

What do you think?

@surli surli added the feature label Dec 7, 2017
@monperrus
Copy link
Collaborator

monperrus commented Dec 7, 2017 via email

@monperrus monperrus changed the title Suggestion: Add Progress Listener for Model Building feature: Add Progress Listener for Model Building Jan 4, 2018
surli pushed a commit that referenced this issue Jun 16, 2018
…poon model (#2043)

fix #1778 

I notice with this feature that printing the model is the slowest task.

JTD takes: 4794 ms
Spoon model: 4098 ms
Printing: 5507 ms

It surprised me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants