NHibernate Plugin

Hello JetBrainers,

some time ago I tried to write a plugin to support NHibernate mapping
files. What I would like to see is that rename of a mapped property
would be reflected in the mapping file, and rename of a mapped type
should be reflected there.

Since I started with the plugin (ReSharper was at 2.0) I had to change
the plugin many times because of api changes. Today I tried it with the
3.1 api and it is broken again.

So my question is: what would you suggest to be the best way to support
NHibernate mapping files (which are xml files)? Is it possible to get
some of the needed functionality from your XAML/msbuild/nant file
support (for example lexer/parser)?


Regards,
Stefan Lieser
--
http://www.lieser-online.de

2 comments
Comment actions Permalink

Stefan,

You definitely may use our XAML/ build scripts support as an example, but
not always best :)
The only thing is that another API change took place in the way from 3.1 to
4.0, and with the new API it became much easier to implement new XML-based
file support, but this is in 4.0. So you either should wait until 4.0EAP
starts or make your plug-in for 3.1 right now.

Anyway, feel free to contact me directly for any help.

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Hello Sergey,

well... I will wait for 4.0 EAP. Even if it would not be simpler than
with 3.1 I don't want to change API again and again ;)


Regards,
Stefan

Sergey V. Coox (JetBrains) schrieb:

Stefan,

You definitely may use our XAML/ build scripts support as an example, but
not always best :)
The only thing is that another API change took place in the way from 3.1 to
4.0, and with the new API it became much easier to implement new XML-based
file support, but this is in 4.0. So you either should wait until 4.0EAP
starts or make your plug-in for 3.1 right now.

Anyway, feel free to contact me directly for any help.

0

Please sign in to leave a comment.