Open genthaler opened 9 years ago
I agree this feature will bring extra value to the plugin: can you implement it?
Basically we'll have to determine the length of the longest element in each column then go back and the necessary padding to each row for each element in that column and repeat the whole process for each column.
Care should be taken to consider non rectangular tables, but we can leave that for a future improvement.
The source code hook for this should be CucumberFormatter.java
file, though I'm not sure how the code can be linked to the formatter: some reasearch on the API is needed.
I tried setting up Eclipse to build the project, but had all sorts of problems. Could you please add some info to the Contribute page on what versions of Eclipse, plugins, JVM etc are working for you?
Hi Gunter, I just downloaded the latest and greatest Xtext bundle and, apart for a trivial error on one little missing bundle, everything worked fine... I'm currently using Eclipse Luna 64bit on a Window 7 64bit machine running a JDK 7 64bit, but I've succesfully built the project on a Linux 64bit and on a Windows XP 32bit machine in the past with no modifications and much older Eclipse and Xtext versions...
Can you please describe the errors you are getting?
On Wed, Apr 22, 2015 at 3:14 AM, Günther Enthaler notifications@github.com wrote:
I tried setting up Eclipse to build the project, but had all sorts of problems. Could you please add some info to the Contribute https://github.com/rlogiacco/Natural/wiki/Contribute page on what versions of Eclipse, plugins, JVM etc are working for you?
— Reply to this email directly or view it on GitHub https://github.com/rlogiacco/Natural/issues/39#issuecomment-94990976.
An example of how this can be done may be found here: https://de.slideshare.net/meysholdt/xtexts-new-formatter-api
Unfortunately, it will involve some semi-complicated AST updates, so this will probably not make it into next
. It is totally doable when we are ready for a major AST overhaul however.
The capability now exits in next to do this, but the custom formatting rules need to be implemented. No change needed on Issue status.
This issue has not been updated for a while: marking it as stale.