19 comments
Comment actions Permalink

whats up guys?! see the post of Anton Katilin(JetBrains) in this message: http://www.intellij.net/forums/thread.jsp?forum=22&thread=33065&message=502939
that's what he wrote:

+ Hello!

We'll open editor management API soon, probably in a couple of weeks.

--
Best regards,
Anton Katilin+

it was on Jun 19, 2003 11:59 AM!!! is it so difficult to support the openAPI for the editor win? uiDesigner is running in the editor win already!

0
Comment actions Permalink

Michael Seele wrote:

whats up guys?! see the post of Anton Katilin(JetBrains) in this message: http://www.intellij.net/forums/thread.jsp?forum=22&thread=33065&message=502939
that's what he wrote:

+ Hello!

We'll open editor management API soon, probably in a couple of weeks.


API is open in build 926. Please check it.

Regards,
Vladimir Kondratyev
_____________________
JetBrains

0
Comment actions Permalink

On Tue, 16 Sep 2003 18:04:09 +0400, Vladimir Kondratyev (JetBrains) wrote:

API is open in build 926. Please check it.


Any example of this?


--
"It's all in the heat of the moment, it's all in the pain..." Devy.
Mark Derricutt @ mark@talios.com @ talios.blog-city.com
Now Playing: %s

0
Comment actions Permalink

Hi,

Is there a particular reason for the non existence of FileEditorProvider.POLICY_AFTER_DEFAULT_EDITOR ?

Thanks,
Maas

0
Comment actions Permalink

do you have any documentation about register an editor(JComponent?) for a special type of file?

0
Comment actions Permalink

do you know what i must do if i want to use an special(own) editor for a specified type of file?
thank you

0
Comment actions Permalink

Hello Michael,

As I can see you must implement FileEditorProvider.
This one have method getEditorTypeId, method must return "The name" of
FileType as it described in fileType XML file or in Options->IDE
Settings->File Types
Now OpenAPI not allow to register your ouwn FileTypes in IDEA, but you can
copy XML to config.

To create Editor you must implements FileEditor and also Editor interfaces.
The Editor interface have getComponent() : JComponent method.

Thanks!

--
Alexey Efimov, Software Engineer
Sputnik Labs,
http://www.spklabs.com
"Michael Seele" <mseele@guh-software.de> wrote in message
news:18062031.1063784907798.JavaMail.itn@is.intellij.net...

do you know what i must do if i want to use an special(own) editor for a

specified type of file?

thank you



0
Comment actions Permalink

+Now OpenAPI not allow to register your ouwn FileTypes in IDEA, but you can
copy XML to config.+

i can create a own file type under Options->IDE Settings->File Types!

0
Comment actions Permalink

Sure you can. But if you want to create yourouw editor plugin, you must have
installation procedure - this is easy to copy predefined XML file into
config directori, i guess. :)

--
Alexey Efimov, Software Engineer
Sputnik Labs,
http://www.spklabs.com
"Michael Seele" <mseele@guh-software.de> wrote in message
news:33083890.1063790234232.JavaMail.itn@is.intellij.net...

+Now OpenAPI not allow to register your ouwn FileTypes in IDEA, but you

can

copy XML to config.+

>

i can create a own file type under Options->IDE Settings->File Types!



0
Comment actions Permalink

you mean i must register my plugin to aurora, that aurora automatically open my editor when the user want to open a specified file? is there no method where i can register on startup that all *.xy-files should be opened in that xy-editor?

0
Comment actions Permalink

No i think...
The FileEditorProvider assotiated with file type by file type id. For example UIEditor plugin FileEditorProvider assotiated to "ui-designer"

If wee look at file type "UI Designer form", you can see no "ui-designer" strings anywhere. If you try to change somethink in this type, UI Designer will not works since file type is changed.

So, you can't now bind FileType to editor... Or i miss somethink


0
Comment actions Permalink

It's POLICY_NONE. Default editor is "default" because it's primary editor by
default. If you want to override this you specify either
POLICY_BEFORE_DEFAULT_EDITOR (to be the first) or
POLICY_DO_NOT_SHOW_DEFAULT_EDITOR (to replace the default editor at all).

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Maas van den Berg" <no_mail@jetbrains.com> wrote in message
news:20333844.1063758402032.JavaMail.itn@is.intellij.net...

Hi,

>

Is there a particular reason for the non existence of

FileEditorProvider.POLICY_AFTER_DEFAULT_EDITOR ?
>

Thanks,
Maas



0
Comment actions Permalink

how can i register my new editor into idea!!!

0
Comment actions Permalink

On Wed, 17 Sep 2003 12:53:57 +0400, Alexey Efimov wrote:

Hello Michael,

As I can see you must implement FileEditorProvider. This one have method
getEditorTypeId, method must return "The name" of FileType as it described
in fileType XML file or in Options->IDE Settings->File Types
Now OpenAPI not allow to register your ouwn FileTypes in IDEA, but you can
copy XML to config.

To create Editor you must implements FileEditor and also Editor
interfaces. The Editor interface have getComponent() : JComponent method.

Thanks!


Excellent - that looks quite simple too - hopefully theres a way to
register our FileEditors as well... rather than hacking an XML file.


--
"It's all in the heat of the moment, it's all in the pain..." Devy.
Mark Derricutt @ mark@talios.com @ talios.blog-city.com
Now Playing: %s

0
Comment actions Permalink

hopefully theres a way to register our FileEditors as well

that's the problem!!! we don't know how we can register our new fileEditor!

0
Comment actions Permalink

Yes we cal create custom FileDitor and link it to FileType id (identity). But i realy don't know that is FileType ID...
I guess, it key for registered file types.

And now we can create FileEditor, but we still not create custom file types (we can crte, but we need to know its registered ID to put through FileEditorProvider).

I will search any solutions, but first look - "We still can't create FileEditors for custom file types"...

0
Comment actions Permalink


Michael Seele wrote:

do you have any documentation about register an editor(JComponent?) for a special type of file?


You can try the attached project to get started.

Note: This is totally unsupported code and has no warranty for being the way it should be done,
I just implemented the required methods in a semi-reasonable way in about 30 minutes.
Maybe it helps a bit.

Sascha





Attachment(s):
custom-editors.zip
0
Comment actions Permalink

As I can see you must implement FileEditorProvider.


Yes.

This one have method getEditorTypeId, method must return "The name" of
FileType as it described in fileType XML file or in Options->IDE
Settings->File Types
Now OpenAPI not allow to register your ouwn FileTypes in IDEA, but you can
copy XML to config.


No. editor-type-id is not a name of FileType. It's just a unique string
that identify the editor among other editor which are created for a file.

Regards,
Vladimir Kondratyev
_____________________
JetBrains

0

Please sign in to leave a comment.