You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks for your great work! Faktor-IPS is a nice tool to model with.
I recently noticed that the generated Java files are not generated according to the "Organize Imports" preferences. Especially the import order gets mangled as soon as wildcard imports are used. This is an issue for us, because every time we change the implementation of a custom method, the source file gets formatted taking into account the "Organize Imports" preferences. This leads to a rather large diff on check-in which is harder to review.
Thank you for the suggestion. The OrganizeImportsOperation is unfortunately part of the UI code and therefor cannot be used by our code generator, but the EMF code looks promising and we'll look into incorporating it in our generator code.
First of all thanks for your great work! Faktor-IPS is a nice tool to model with.
I recently noticed that the generated Java files are not generated according to the "Organize Imports" preferences. Especially the import order gets mangled as soon as wildcard imports are used. This is an issue for us, because every time we change the implementation of a custom method, the source file gets formatted taking into account the "Organize Imports" preferences. This leads to a rather large diff on check-in which is harder to review.
Do you think it is possible to integrate the eclipse build in OrganizeImportsOperation (https://github.com/eclipse/eclipse.jdt.ui/blob/master/org.eclipse.jdt.core.manipulation/common/org/eclipse/jdt/core/manipulation/OrganizeImportsOperation.java) organize the imports?
You can find an example of how to use it with a String in the sources of EMF: https://github.com/eclipse/emf/blob/master/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/generator/AbstractGeneratorAdapter.java (Method organizeImports of EclipseHelper).
The text was updated successfully, but these errors were encountered: