IDEA API: Usage in development process.

Suddenly I thought - why can't I use IDEA API in development process? For example, could anyone advice me how I can format my own xml file (or even string which contains xml) with my preferred IDE code calling?
I thought about it when I was creating a simple test which returns not formatted xml, but I of course would prefer to see it formatted. I know a number if ways to get it, but I think may be I could do it with IDEA? Then I thought may be there are people who use other IDEA features in their own coding processes... Are there any?

7 comments
Comment actions Permalink

Hello Pavel,

Suddenly I thought - why can't I use IDEA API in development
process? For example, could anyone advice me how I can format my own
xml file (or even string which contains xml) with my preferred IDE
code calling?
I thought about it when I was creating a simple test which returns
not formatted xml, but I of course would prefer to see it formatted. I
know a number if ways to get it, but I think may be I could do it with
IDEA? Then I thought may be there are people who use other IDEA
features in their own coding processes... Are there any?


Have you checked around here:

http://www.intellij.org/twiki/bin/view/Main/IntelliJPluginsHome

Might be something useful, if not, try coming back here with specific questions ...

0
Comment actions Permalink

Hello, David
I feel I have been misunderstood. Must confess that subject of topic is some inaccurate.
I didn't mean plugins, (I use some of them intensively) I meant use calls of IDEA API from my own code, not from GUI. Just code reuse in it's pure form :).

0
Comment actions Permalink

Pavel Sozonovsky wrote:

Hello, David
I feel I have been misunderstood. Must confess that subject of topic is some inaccurate.
I didn't mean plugins, (I use some of them intensively) I meant use calls of IDEA API from my own code, not from GUI. Just code reuse in it's pure form :).

I'm not sure this is clear from the legal point of view. I'll try to get some consultations about.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hello, Maxim.
Usage in production code obviously would be not legal.
But if I can write plugin and call it 'by hands', why can't I use the same API from my own internal code, in my tests for example?..

0
Comment actions Permalink

Pavel Sozonovsky wrote:

>Hello, Maxim.
>Usage in production code obviously would be not legal.
>But if I can write plugin and call it 'by hands', why can't I use the same API from my own internal code, in my tests for example?..

>
I guess the distinction here is that the first is running inside
JetBrains product, as distributed by them, and the later, would be
running in your own code, and under your distribution ( you would need
to redist JetBrains code for it to work ).

0
Comment actions Permalink

NO, no, no.
I didn't mean production code, code to distribute. Only my own internal code. I meant code which should be used while development process, not as development result.

0
Comment actions Permalink

Pavel Sozonovsky wrote:

NO, no, no.
I didn't mean production code, code to distribute. Only my own internal code. I meant code which should be used while development process, not as development result.


Sounds like a plugin to me.

Paval, give us your definition of what a plugin is and explain what is
different about what you want to do?

0

Please sign in to leave a comment.