Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Opening an editor
Opening an editor [message #901437] Sun, 12 August 2012 11:15 Go to next message
Daniele Canavese is currently offline Daniele CanaveseFriend
Messages: 4
Registered: August 2012
Junior Member
Hi all!

I have (very) recently started to play with the e4 applications but I am stuck with the editors.

To open an editor, as suggested in the vogella.com articles, you should use the getViewSite() method if you are in a view, but in my application it is always null.

To recreate this scenario, you can create an application using the "Eclipse 4 Application Project" wizard and add a simple view to the project.

As far as I guess, this happens because the init() method is never or badly called. What am I missing? Should I explicitly call the init() method somewhere?

Thanks in advance, Daniele
Re: Opening an editor [message #901438 is a reply to message #901437] Sun, 12 August 2012 11:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5461
Registered: July 2009
Senior Member
Pure e4 does NOT support editors! You need to run with the compat layer.
I plan to work on pure e4 editors in autumn.

Tom

Am 12.08.12 13:15, schrieb Daniele Canavese:
> Hi all!
>
> I have (very) recently started to play with the e4 applications but I am
> stuck with the editors.
>
> To open an editor, as suggested in the vogella.com articles, you should
> use the getViewSite() method if you are in a view, but in my application
> it is always null.
>
> To recreate this scenario, you can create an application using the
> "Eclipse 4 Application Project" wizard and add a simple view to the
> project.
>
> As far as I guess, this happens because the init() method is never or
> badly called. What am I missing? Should I explicitly call the init()
> method somewhere?
>
> Thanks in advance, Daniele
>
Re: Opening an editor [message #901439 is a reply to message #901438] Sun, 12 August 2012 11:25 Go to previous messageGo to next message
Daniele Canavese is currently offline Daniele CanaveseFriend
Messages: 4
Registered: August 2012
Junior Member
Thanks for the quick reply!

Daniele
Re: Opening an editor [message #903607 is a reply to message #901438] Fri, 24 August 2012 13:57 Go to previous messageGo to next message
Johnny Qin is currently offline Johnny QinFriend
Messages: 40
Registered: April 2012
Member
Hello Tom,

There are plain text editor and xml editor in simpleIDE. I thought they are pure e4 editors...

Best regards,
Johnny


Thomas Schindl wrote on Sun, 12 August 2012 07:17
Pure e4 does NOT support editors! You need to run with the compat layer.
I plan to work on pure e4 editors in autumn.

Tom

Am 12.08.12 13:15, schrieb Daniele Canavese:
> Hi all!
>
> I have (very) recently started to play with the e4 applications but I am
> stuck with the editors.
>
> To open an editor, as suggested in the vogella.com articles, you should
> use the getViewSite() method if you are in a view, but in my application
> it is always null.
>
> To recreate this scenario, you can create an application using the
> "Eclipse 4 Application Project" wizard and add a simple view to the
> project.
>
> As far as I guess, this happens because the init() method is never or
> badly called. What am I missing? Should I explicitly call the init()
> method somewhere?
>
> Thanks in advance, Daniele
>

Re: Opening an editor [message #903680 is a reply to message #903607] Fri, 24 August 2012 21:03 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5461
Registered: July 2009
Senior Member
Right simple-IDE has our first explorations on how implement native e4
editors. I expect to start work on this in about 1-2 months so that
native editor support is available in 4.3.

Tom

Am 24.08.12 15:57, schrieb Johnny Qin:
> Hello Tom,
>
> There are plain text editor and xml editor in simpleIDE. I thought they
> are pure e4 editors...
> Best regards,
> Johnny
>
>
> Thomas Schindl wrote on Sun, 12 August 2012 07:17
>> Pure e4 does NOT support editors! You need to run with the compat layer.
>> I plan to work on pure e4 editors in autumn.
>>
>> Tom
>>
>> Am 12.08.12 13:15, schrieb Daniele Canavese:
>> > Hi all!
>> > > I have (very) recently started to play with the e4 applications
>> but I am
>> > stuck with the editors.
>> > > To open an editor, as suggested in the vogella.com articles, you
>> should
>> > use the getViewSite() method if you are in a view, but in my
>> application
>> > it is always null.
>> > > To recreate this scenario, you can create an application using the
>> > "Eclipse 4 Application Project" wizard and add a simple view to the
>> > project.
>> > > As far as I guess, this happens because the init() method is never or
>> > badly called. What am I missing? Should I explicitly call the init()
>> > method somewhere?
>> > > Thanks in advance, Daniele
>> >
>
>
Re: Opening an editor [message #903969 is a reply to message #903680] Mon, 27 August 2012 13:16 Go to previous message
Johnny Qin is currently offline Johnny QinFriend
Messages: 40
Registered: April 2012
Member
I see. Thanks Tom.


Thomas Schindl wrote on Fri, 24 August 2012 17:03
Right simple-IDE has our first explorations on how implement native e4
editors. I expect to start work on this in about 1-2 months so that
native editor support is available in 4.3.

Tom

Am 24.08.12 15:57, schrieb Johnny Qin:
> Hello Tom,
>
> There are plain text editor and xml editor in simpleIDE. I thought they
> are pure e4 editors...
> Best regards,
> Johnny
>
>
> Thomas Schindl wrote on Sun, 12 August 2012 07:17
>> Pure e4 does NOT support editors! You need to run with the compat layer.
>> I plan to work on pure e4 editors in autumn.
>>
>> Tom
>>
>> Am 12.08.12 13:15, schrieb Daniele Canavese:
>> > Hi all!
>> > > I have (very) recently started to play with the e4 applications
>> but I am
>> > stuck with the editors.
>> > > To open an editor, as suggested in the vogella.com articles, you
>> should
>> > use the getViewSite() method if you are in a view, but in my
>> application
>> > it is always null.
>> > > To recreate this scenario, you can create an application using the
>> > "Eclipse 4 Application Project" wizard and add a simple view to the
>> > project.
>> > > As far as I guess, this happens because the init() method is never or
>> > badly called. What am I missing? Should I explicitly call the init()
>> > method somewhere?
>> > > Thanks in advance, Daniele
>> >
>
>

Previous Topic:Is there a UI to register xmlns:myownmodel to extend e4 application model
Next Topic:java.lang.RuntimeException: No application id has been found.
Goto Forum:
  


Current Time: Thu Nov 20 21:06:51 GMT 2014

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

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