Custom Editor

Hi,

I am trying to write a nice plugin for the contest. First, I've started to use the ToolWindow API, but I think it won't look very professional. In this case, I need to open a new Editor when an action is performed. I have studied the Images Viewer plugin, tried to develop something similar, but it doesn't seem to work. Could you please direct me to a tutorial or something to help me doing this? I must say the OpenAPI javadoc didn't help me too much. It would probably be better to improve this. It's just my opinion, though.

Thank you,

Dan

4 comments

If you need to implement some non text editor, look at Images plugin sources. For Languages editor, refer to JavaScript plugin sources.

Both them available with Plugin Development Package (idea5692-dev.zip)

Thanks!

0

Hello Dan,

D> I am trying to write a nice plugin for the contest. First, I've
D> started to use the ToolWindow API, but I think it won't look very
D> professional. In this case, I need to open a new Editor when an
D> action is performed. I have studied the Images Viewer plugin, tried
D> to develop something similar, but it doesn't seem to work. Could you
D> please direct me to a tutorial or something to help me doing this?

What exactly doesn't work? There are no tutorials for this currently available,
but we'll be happy to help you if you describe what you're trying to achieve
and what are your problems

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Hi,

Thank you for the reply. Let's consider the most simple example: When an action occurs, in the editing area a new Editor is created and it contains a simple JPanel. If I will be able to do this, everything will work fine then.

Dan

0

Hello Dan,

D> Thank you for the reply. Let's consider the most simple example: When
D> an action occurs, in the editing area a new Editor is created and it
D> contains a simple JPanel. If I will be able to do this, everything
D> will work fine then.

The editors displayed in the editing area are always associated with a particular
file. Is the UI you need show in your plugin associated with some file?

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.