Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to create an editor in e4
How to create an editor in e4 [message #626451] Wed, 22 September 2010 14:55 Go to next message
Stephane Rousseau is currently offline Stephane RousseauFriend
Messages: 34
Registered: September 2010
Member
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 20:07 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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
Previous Topic:Maximizing/Minimizing views
Next Topic:P2 UI menu contributions in E4 application
Goto Forum:
  


Current Time: Tue Apr 23 15:38:32 GMT 2024

Powered by FUDForum. Page generated in 0.03198 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top