Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » CodeMirror Eclipse (SWT, RCP and RAP)
CodeMirror Eclipse (SWT, RCP and RAP) [message #1053433] Sun, 05 May 2013 15:43 Go to next message
Angelo ZERR is currently offline Angelo ZERRFriend
Messages: 121
Registered: July 2009
Senior Member
Hi RAP Team/User,

For your information I have created CodeMirror Eclipse which embeds JS CodeMirror editor in a SWT Browser (to support single sourcing). It works with SWT/RWT (it provides SWT control which do that) and RAP/RCP (it provides Eclipse 3.x EditorPart which do that).

You can play with the CodeMirror RAP live demo

Hope you will like it.

Regards Angelo
Re: CodeMirror Eclipse (SWT, RCP and RAP) [message #1053528 is a reply to message #1053433] Mon, 06 May 2013 12:09 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 387
Registered: July 2009
Senior Member
Hi.

Thank you for your contribution, I added it to the RAP wiki. How is it
related to the existing[1] CodeMirror widget for RAP? Is there a big
difference?

Greetings,
Tim

[1]https://github.com/eiswind/codemirror-eclipse-rcp

Am 05.05.2013 17:43, schrieb Angelo ZERR:
> Hi RAP Team/User,
>
> For your information I have created
> https://github.com/angelozerr/CodeMirror-Eclipse which embeds JS
> CodeMirror editor in a SWT Browser (to support single sourcing). It
> works with SWT/RWT (it provides SWT control which do that) and RAP/RCP
> (it provides Eclipse 3.x EditorPart which do that).
> You can play with the http://cmeclipse.opensagres.cloudbees.net/codemirror
> Hope you will like it.
>
> Regards Angelo

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: CodeMirror Eclipse (SWT, RCP and RAP) [message #1053535 is a reply to message #1053528] Mon, 06 May 2013 12:33 Go to previous messageGo to next message
Angelo ZERR is currently offline Angelo ZERRFriend
Messages: 121
Registered: July 2009
Senior Member
Hi Tim,

Many thank's to have add it to the RAP wiki.

To develop my CodeMirror Eclipse I have studied the existing https://github.com/eiswind/codemirror-eclipse-rcp
At first I told me that I will fork it, but I have restarted from scratch to improve it. Here the differences :

  • use last version of CodeMirror
  • https://github.com/eiswind/codemirror-eclipse-rcp provides just a SWT Control which embeds CodeMirror. My CodeMirror Eclipse provides too Eclipse 3.x EditorPart which uses the SWT Control (dirty EditorPart is bound with the CodeMirror dirty state).
  • provides the capability to use CodeMirror Eclipse with a simple Java main or RCP Application. With https://github.com/eiswind/codemirror-eclipse-rcp its' very difficult because it uses "org.eclipse.equinox.http.registry.resources" to manage resources. In my version you can configure the SWT Control with simple file.
  • provides a resources API which works with any context (SWT/RWT, RCP, RAP) to declare the HTML codemirror to use it. Switch the context, the link used is file// (for SWT, RCP) and http:// (for RAP). The resources API manage that, so with the same code you manage your codemirror editor with RCP and RAP both.
  • hosts too my work with CodeMirror-XQuery (https://github.com/angelozerr/CodeMirror-XQuery) I have developped CodeMirror addon to manage completion like Eclipse (show context info, templates system etc)


Regards Angelo
Re: CodeMirror Eclipse (SWT, RCP and RAP) [message #1053678 is a reply to message #1053535] Tue, 07 May 2013 08:35 Go to previous messageGo to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 145
Registered: March 2010
Location: France
Senior Member
Hi Angelo,

Very nice contribution.
How your source code is licensed ? it is not mentioned in the project.

Best regards,
Arnaud
Re: CodeMirror Eclipse (SWT, RCP and RAP) [message #1053687 is a reply to message #1053678] Tue, 07 May 2013 08:46 Go to previous message
Angelo ZERR is currently offline Angelo ZERRFriend
Messages: 121
Registered: July 2009
Senior Member
Hi Arnaud,

I have modified https://github.com/angelozerr/CodeMirror-Eclipse to add the license (EPL). My code is not clean and I must add comments + header license.

Regards Angelo
Previous Topic:Detect end theming Animation in server side
Next Topic:Combo - Enterable ListBox
Goto Forum:
  


Current Time: Sun Dec 21 02:37:35 GMT 2014

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

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