Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse 4 and Web(Vaadin renderer for Eclipse 4)
Eclipse 4 and Web [message #895717] Sun, 15 July 2012 09:45 Go to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
Hi. I am working on vaadin renderer for E4. I have implemented the renderer itself in one user case and know think how to get it work in multi-user case. I was looking on this options:

1. Start the Equinox instance per user session. It seems this is not capable in terms of memory.

2. Use one Equinox instance and one workbench and every user has it's own window in workbench (MWindow). Because all change operations on workbench model we execute yourself (without any support from eclipse code), we must synchronize only our code (Vaadin renderer) and no additional assumption about workbench threadsafe need.

I decided to choose the second option. Maybe someone else has an idea? I read that the the one of reason why eclipse 4 was developed is moving the Eclipse in web. Perhaps the assumption is already there as you do?


[Updated on: Sun, 15 July 2012 09:45]

Report message to a moderator

Re: Eclipse 4 and Web [message #895719 is a reply to message #895717] Sun, 15 July 2012 10:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Very cool!

Well I think every user should have its no Workbench-Instance. e4
internally does NOT use singletons or starts to creating multiple
instances in E4Workbench should be a problem.

The only thing you need to patch is the IEventBroker used to sendout
events which is quite simply I think if implement your own and push it
into the root-IEclipseContext as a IContextFunction.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=309868

Tom

Am 15.07.12 11:45, schrieb Rushan Gilmullin:
> Hi. I am working on vaadin renderer for E4. I have implemented the
> renderer itself in one user case and know think how to get it work in
> multi-user case. I was looking on this options:
>
> 1. Start the Equinox instance per user session. It seems this is not
> capable in terms of memory.
>
> 2. Use one Equinox instance and one workbench and every user has it's
> own window in workbench (MWindow). Because all change operations on
> workbench model we execute yourself (without and support from eclipse
> code), we must synchronize only our code (Vaadin renderer) and no
> additional assumption about workbench threadsafe need.
>
> I decided to choose the second option. Maybe someone else has an idea? I
> read that the the one of reason why eclipse 4 was developed is moving
> the Eclipse in web. Perhaps the assumption is already there as you do?
>
>
>
Re: Eclipse 4 and Web [message #895722 is a reply to message #895719] Sun, 15 July 2012 11:21 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

Hi.

I also tried to build renderers for Vaadin some time ago but left it pending for some reasons. I have extensive experience with the Vaadin framework so if your work is meant to be open sourced I'd be happy to contribute.

Re: Eclipse 4 and Web [message #895733 is a reply to message #895722] Sun, 15 July 2012 14:06 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
Thomas Schindl
Thank for idea. I want to make sure I understand correctly. So I must create the E4Workbench instance in each user session and configure it from IApplicationContext that created with VaadinE4Aplication globally ones at server start. Also I create the implementation of IEventBroker (for example - the VaadinEventBroker) that sends events only to own subsrcibers (current implementation of IEventBroker named EventBroker will send to ALL subsribers because work over general OSGi EventAdmin). Then I set the instance of VaadinEventBroker to root IEclipseContext object of correspondence E4Workbench instance - now each workbench will use own event broker that will be send events to own subsribers. Is it correctly?

Sopot Cela
Of cource, it will be open source under the same licence as Eclipse and I will be happy if anybody will contribute to it. I don't have possibility to share project on next week because I am in buisness travel now, but I return to home in friday and in few days I will move it to github. Now it has some legacy pieces from previous project, and the first I clean it (to become it clearer). This project was the new workbench that I develop from zero (it is not relevant to eclipse) because I didn't know about E4. It is look very like E4 except the model is not EMF, it also can be rendered by different toolkits. I work on it 2 month until I see that E4 exists - it happened only when the Juno was releazed )) Of cource, now this project makes no sense, it is not needed now and must be utilized, because now we can use so great platform as Eclipse. I desire about the universal eclipse during long time and know it really happened. There are the javafx renderer already and when the vaadin renderer will be ready, the E4 will be finally the extrapower thing.

[Updated on: Sun, 15 July 2012 14:14]

Report message to a moderator

Re: Eclipse 4 and Web [message #895738 is a reply to message #895733] Sun, 15 July 2012 15:07 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

Ok then when you get the time to polish it we'll see what we can do. A good place to keep contact is the e4-dev mailing list and also the #eclipse-e4 IRC channel on irc.freenode.net
Re: Eclipse 4 and Web [message #895754 is a reply to message #895733] Sun, 15 July 2012 17:57 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Am 15.07.12 16:06, schrieb Rushan Gilmullin:
> Thomas Schindl
> Thank for idea. I want to make sure I understand correctly. So I must
> create the E4Workbench instance in each user session and configure it
> from IApplicationContext that created with VaadinE4Aplication globally
> ones at server start. Also I create the implementation of IEventBroker
> (for example - the VaadinEventBroker) that sends events only to own
> subsrcibers (current implementation of IEventBroker named EventBroker
> will send to ALL subsribers because work over general OSGi EventAdmin).
> Then I set the instance of VaadinEventBroker to root IEclipseContext
> object of correspondence E4Workbench instance - now each workbench will
> use own event broker that will be send events to own subsribers. Is it
> correctly?
>

You got it almost right. Well you are not setting the VaadinEventBroker
but a custom ContextFunction in the root context, every context will
create and dipose the broker which makes sure subscribers are clean when
e.g. a view is closed!

I think you need copy most of the code found in E4Application but omit
the root context creation there.

As I've shown in the patch to EventBroker on the bug isolating the
events to a workbench instance is quite easy, so if you apply the patch
and copy it to VaadinEventBroker you are fairly, done.

In case we release the proposed patch to our EventBroker you don't need
your custom event broker any more.

Tom
Re: Eclipse 4 and Web [message #895760 is a reply to message #895717] Sun, 15 July 2012 19:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
Thomas Schindl

Now it's all clear, thanks for the idea and help.

Sopot Cela

OK, I will post the link to repo with project to this theme and in e4-dev.
Re: Eclipse 4 and Web [message #895929 is a reply to message #895760] Mon, 16 July 2012 14:17 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

Also see https://bugs.eclipse.org/bugs/show_bug.cgi?id=384843 as it can help in making it easier to develop the vaadin renderer.
Re: Eclipse 4 and Web [message #900060 is a reply to message #895929] Fri, 03 August 2012 18:00 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
Work are going. Soon to be published the preliminary results.
Re: Eclipse 4 and Web [message #900108 is a reply to message #900060] Sat, 04 August 2012 05:44 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Can't wait to see results. We are here to assit you to solve problems
and if there are features in the framework you need to solve your
usecase let us please know.

Tom

Am 03.08.12 20:00, schrieb Rushan Gilmullin:
> Work are going. Soon to be published the preliminary results.
>
Re: Eclipse 4 and Web [message #900192 is a reply to message #900108] Sun, 05 August 2012 06:01 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
I apologize for the delay. So far no problems now. The delay caused by the fact that now we releaze project on work, so there are lot of work and travel. (( It so happened that I to get to work at this project a couple of days ago. But now the work is taking place rapidly. Next week, I guess, on Wednesday, the project will be published along with the demo. At this time, definitely longer delay will not, because at work became freer.
What will be done:
1. Most of the model, with the perspectives.
2. Drag-drop of the components
3. The demo project
Re: Eclipse 4 and Web [message #900585 is a reply to message #900192] Tue, 07 August 2012 16:15 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
Works are done in last days:
1. Old legacy parts dependents from UneversalWorkbench (my previous project) cleaned. I rewrite from zero renderers taking as base the Kai Toedter swing layer.
2. All code moved from maven. I find using maven cause big problems in equinox-osgi projects, becouse the xml-manifest doesn't allow use the eclipse manifest tools.
3. Per session workbench implemented as Thomas Schindl say. In future need replace the EventBroker implementation and all will be ok.
4. Drag and drop implemented. But it will be realized a little later, becouse need some finalization.
5. Demo project (eclipse-like ide) was implemented - it has the project explorer, outline view, console and code viewer.

After finaliztion this works the code will not be totally changed, so the code will be released and ready to receive contribution (now share not stabled code have no sense). It must be at the last of this week.

[Updated on: Tue, 07 August 2012 16:17]

Report message to a moderator

Re: Eclipse 4 and Web [message #900631 is a reply to message #900585] Tue, 07 August 2012 20:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Any screenshots?

Tom
Am 07.08.12 18:15, schrieb Rushan Gilmullin:
> Works are done in this days:
> 1. Old legacy parts dependents from UneversalWorkbench (my previous
> project) cleaned. I rewrite from zero renderers taking as base the Kai
> Toedter swing layer.
> 2. All code moved from maven. I find using maven cause big problems in
> equinox-osgi projects, becouse the xml-manifest doesn't allow use the
> eclipse manifest tools.
> 3. Per session workbench implemented as Thomas Schindl say. In future
> need replace the EventBroker implementation and all will be ok.
> 4. Drag and drop implemented. But it will be realized a little later,
> becouse need some finalization.
> 5. Demo project (eclipse-like ide) was implemented - it has the project
> explorer, outline view, console and code viewer.
>
> After finaliztion this works the code will not be totally changed, so
> the code will be released and ready to receive contribution (now share
> not stabled code have no sense). It must be in a last this week.
>
Re: Eclipse 4 and Web [message #900688 is a reply to message #900631] Wed, 08 August 2012 07:46 Go to previous messageGo to next message
Nepomuk Seiler is currently offline Nepomuk SeilerFriend
Messages: 88
Registered: December 2010
Member
This sounds very cool. Which Vaadin version are you using? 7 is in alpha phase, but
has very powerful extensions such as push build-in push support, which makes asychronous
work a lot easier.
Re: Eclipse 4 and Web [message #901376 is a reply to message #900688] Sat, 11 August 2012 16:41 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
test msg1
Re: Eclipse 4 and Web [message #901377 is a reply to message #901376] Sat, 11 August 2012 16:41 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
test msg1
Re: Eclipse 4 and Web [message #901378 is a reply to message #901377] Sat, 11 August 2012 16:43 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg3
Re: Eclipse 4 and Web [message #901379 is a reply to message #901378] Sat, 11 August 2012 16:43 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg4
Re: Eclipse 4 and Web [message #901380 is a reply to message #901379] Sat, 11 August 2012 16:43 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg5
Re: Eclipse 4 and Web [message #901381 is a reply to message #901380] Sat, 11 August 2012 16:43 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg6
Re: Eclipse 4 and Web [message #901382 is a reply to message #901381] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg7
Re: Eclipse 4 and Web [message #901383 is a reply to message #901382] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg8
Re: Eclipse 4 and Web [message #901384 is a reply to message #901383] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg9
Re: Eclipse 4 and Web [message #901385 is a reply to message #901384] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg10
Re: Eclipse 4 and Web [message #901386 is a reply to message #901385] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg11
Re: Eclipse 4 and Web [message #901387 is a reply to message #901386] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg12
Re: Eclipse 4 and Web [message #901388 is a reply to message #901387] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg13
Re: Eclipse 4 and Web [message #901389 is a reply to message #901388] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg14
Re: Eclipse 4 and Web [message #901390 is a reply to message #901389] Sat, 11 August 2012 16:44 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
msg15
Re: Eclipse 4 and Web [message #901391 is a reply to message #901390] Sat, 11 August 2012 16:45 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
I am sorry for dummy messages - the forum doesn't allow post links to reources outside eclipse.org until 25 messages.

Quote:
Which Vaadin version are you using?


Vaadin 6 now. Porting is not difficult.


Quote:
Any screenshots?


This is demo of eclipse-like ide:

java-perspective:
http://s003.radikal.ru/i201/1208/46/a5204cecf1d9.png
debug-perspective:
http://s47.radikal.ru/i118/1208/67/19274c815ddd.png
Re: Eclipse 4 and Web [message #901411 is a reply to message #901391] Sat, 11 August 2012 23:01 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

Looks good. Were you able to implement dragging the vaadin tabs (parts)? Any progress on publishing the code?
Re: Eclipse 4 and Web [message #901433 is a reply to message #901391] Sun, 12 August 2012 08:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Wow that's really cool!

I'm going to present Eclipse 4 at JavaOne and it would be a great show
case to highlight power of Eclipse 4 architecture. Do you think we can
get something running on my locally machine say until mid September?

Tom

Am 11.08.12 18:45, schrieb Rushan Gilmullin:
> I am sorry for dummy messages - the forum doesn't allow post links to
> reources outside eclipse.org until 25 messages.
>
> Quote:
>> Which Vaadin version are you using?
>
>
> Vaadin 6 now. Porting is not difficult.
>
>
> Quote:
>> Any screenshots?
>
>
> This is demo of eclipse-like ide:
>
> java-perspective:
>
> debug-perspective:
>
>
Re: Eclipse 4 and Web [message #901543 is a reply to message #901433] Mon, 13 August 2012 10:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
If you want to make use of keybindings. I've extracted the binding logic
from JFace to make it widget independent.

The bundles of interest for you are:
* at.bestsolution.efxclipse.runtime.bindings
* at.bestsolution.efxclipse.runtime.bindings.e4
* at.bestsolution.efxclipse.runtime.bindings.generic

You can grab them from: https://github.com/tomsontom/e-fx-clipse/

The FX-Implementation is found in:
* at.bestsolution.efxclipse.runtime.workbench

Tom

Am 12.08.12 10:51, schrieb Tom Schindl:
> Wow that's really cool!
>
> I'm going to present Eclipse 4 at JavaOne and it would be a great show
> case to highlight power of Eclipse 4 architecture. Do you think we can
> get something running on my locally machine say until mid September?
>
> Tom
>
> Am 11.08.12 18:45, schrieb Rushan Gilmullin:
>> I am sorry for dummy messages - the forum doesn't allow post links to
>> reources outside eclipse.org until 25 messages.
>>
>> Quote:
>>> Which Vaadin version are you using?
>>
>>
>> Vaadin 6 now. Porting is not difficult.
>>
>>
>> Quote:
>>> Any screenshots?
>>
>>
>> This is demo of eclipse-like ide:
>>
>> java-perspective:
>>
>> debug-perspective:
>>
>>
>
Re: Eclipse 4 and Web [message #901713 is a reply to message #895717] Tue, 14 August 2012 09:46 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
Sopot Cela

The drag is implemented, it need some fix.

Thomas Schindl

I'm going on vacation later this week and will be able to work full time, I'm sure, to begin of september the working version will be. It will be ready earlier. After that will be published we can work together (and with other peoples) and all be ok.

----------------------

I apologize for the delay, it is not becouse I want to do everything alone as you might think from the outside, but a fear of showing incomplete... I had too little time to do fast... But very soon it be published...

[Updated on: Tue, 14 August 2012 09:49]

Report message to a moderator

Re: Eclipse 4 and Web [message #901714 is a reply to message #901713] Tue, 14 August 2012 09:50 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Don't fear us looking at your code! I think what you already
accomplished is a fantastic!

The early we get access to it the more we can help you. Easiest is to
dump it to github.

If you want you can contact me offline through the above E-Mail Adress.

Tom

Am 14.08.12 11:46, schrieb Rushan Gilmullin:
> Sopot Cela
>
> The drag is implemented, it need some fix.
>
> Thomas Schindl
>
> I'm going on vacation later this week and will be able to work full
> time, I'm sure, to september the working version will be. It will be
> ready earlier.
>
> ----------------------
>
> I apologize for the delay, it is not becouse I want to do everything
> alone as you might think from the outside, but a fear of showing
> incomplete... I had too little time to do fast... But very soon it be
> published...
>
Re: Eclipse 4 and Web [message #901716 is a reply to message #901714] Tue, 14 August 2012 10:14 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

Rushan, as Tom said, don't care that the code is not perfectly written. We are curious of the source and like to see it whatever it looks like. We all have some repo in github with some dirty code in it. Dump it there as soon as you can so we can contribute in making it better.
Re: Eclipse 4 and Web [message #901951 is a reply to message #901716] Wed, 15 August 2012 09:21 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1049
Registered: July 2009
Senior Member

@Rushan: A code repo would be great. A lot of people working on non SWT Renderer these days and code sharing would be a great thing here.
Re: Eclipse 4 and Web [message #902602 is a reply to message #895717] Sat, 18 August 2012 19:21 Go to previous messageGo to next message
Andreas  öhmann is currently offline Andreas öhmannFriend
Messages: 3
Registered: July 2009
Location: Leipzig
Junior Member
Please share the code. Github?
Re: Eclipse 4 and Web [message #902609 is a reply to message #902602] Sat, 18 August 2012 22:30 Go to previous messageGo to next message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
I created the account and repo in github:

https://github.com/semanticsoft/vaaclipse

I will commit the code as soon as I get home (it will be tomorrow 19 august evening or the afternoon of 20 august).

[Updated on: Sat, 18 August 2012 22:31]

Report message to a moderator

Re: Eclipse 4 and Web [message #902765 is a reply to message #902609] Mon, 20 August 2012 10:44 Go to previous messageGo to previous message
Rushan Gilmullin is currently offline Rushan GilmullinFriend
Messages: 61
Registered: June 2011
Member
Can you advice any git GUI client under Windows? I want to commit the renderer sources today.

And one question. In the screenshots above the editor area was implemented with hack. Now I implement the MArea and want to reimplement the editor area as MArea aliaced with MPlaceholder from different perspectives. But the application editor doesn't allow add MArea to Shared Elements segment of Trimmed Window, only Part Sash Container, Part and Input Part allowed.
Previous Topic:Need help for SWTBot with Menus, and e4 in general
Next Topic:App error please
Goto Forum:
  


Current Time: Sun Dec 21 13:46:15 GMT 2014

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

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