How to create an editor in e4 [message #626451] |
Wed, 22 September 2010 10:55  |
Eclipse User |
|
|
|
Hello,
I'm studying a way to transform an eclipse 3.x plug-in into an (native)
e4 plug-in.
At this point of my study, I have a problem with editors. I haven't
found a wiki or tuto about editors in e4. Thanks to your documentation
and compatibility layer, I was able to integrate 3.x plug-ins into e4.
But nothing about native e4 editors. If I understand correctly, views
and editors are unified in e4 as "Parts".
But how to manage/declare the mapping between file's extensions and a Part ?
How editor inputs are injected into the Part ?
How actions (save, save as, ...) are managed ?
Stephane
|
|
|
Re: How to create an editor in e4 [message #627020 is a reply to message #626451] |
Wed, 22 September 2010 16:07  |
Eclipse User |
|
|
|
Hi,
In 4.0 we have no story for this and we are just discussing how we want
to bring in this feature to 4.1.
In my SimpleIDE I've been experimenting with an extended
Application-Model which adds an EditorDescriptor.
Save actions are quite simply you simply annotate one of your methods
with @Persists and the frameworks save action will call it (IIRC there's
a method on EPartService which allows to save editors).
Tom
Am 22.09.10 16:55, schrieb Stephane Rousseau:
> Hello,
>
> I'm studying a way to transform an eclipse 3.x plug-in into an (native)
> e4 plug-in.
>
> At this point of my study, I have a problem with editors. I haven't
> found a wiki or tuto about editors in e4. Thanks to your documentation
> and compatibility layer, I was able to integrate 3.x plug-ins into e4.
> But nothing about native e4 editors. If I understand correctly, views
> and editors are unified in e4 as "Parts".
> But how to manage/declare the mapping between file's extensions and a
> Part ?
> How editor inputs are injected into the Part ?
> How actions (save, save as, ...) are managed ?
>
> Stephane
|
|
|
Powered by
FUDForum. Page generated in 0.03300 seconds