Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] SnipEditor & SnipMatch snippet syntax

Hello Johannes,
For the imports, I've only set the ${import(java.io.File)} type of syntax. But this can be easily changed.
For the rest of the expressions (e.g. variable declarations) it supports both ${var : freeName(var)} and ${freeName(var)}.
More details can be seen in the README file from the github  repository [1] under the instructions section. :)

Best Regards, Stefan.

[1] : https://github.com/stefanprisca/SnipEditor_MavenBuild/blob/master/README.md 


On Thu, Aug 8, 2013 at 5:22 PM, Johannes Dorn <johannes.dorn@xxxxxxxxxxxxxx> wrote:
Hi everyone,

I had a look at the current status of Stefan's SnipEditor today. As Stefan's edotpr is going to produce the data consumed by Madhuranga's SnipMatch, we need to make sure that both use the same syntax.

Madhuranga previously had some trouble getting import statements to work, especially when using the old SnipMatch syntax. i. e. ${import(java.io.File)}
We've been able to solve that by using the SWT template syntax, which is slightly different: ${imp:import(java.io.File)}
There are other key differences as well.

Stefan: What syntax are you currently supporting? Are you planning to support the SWT template syntax?

The SWT template syntax has the advantage, that inserting these snippets is not too hard, as existing Eclipse logic can be used.

I hope, that Madhuranga and Stefan can get on the same page on this. Any other feedback is welcome as well.


bye
Johannes
--
Johannes Dorn

Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Tel: +49 6151 2767092
http://www.codetrails.com

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940



_______________________________________________
recommenders-dev mailing list
recommenders-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/recommenders-dev



Back to the top