Hi Mike,

Ok I think if E4 wants to provide a CSS editor with Orion, it should
provide a generic SWT OrionControl like I have done with
CMControl<https://github.com/angelozerr/CodeMirror-Eclipse/blob/master/core/codemirror.eclipse.swt/src/codemirror/eclipse/swt/CMControl.java>
.
The big advantage to do that is that this SWT control can be used anywhere
(like you have used, in a 3.x ViewPart, in a e4 Pojo Editor in a simple
View to display just CSS content with syntax color, etc)

With OrionControl you can set the mode (css, javascript, etc).

If you want I can create this project for the moment in my GitHub to see in
action my idea?

But the first thing is to fix problems with IE. I will investigate problems
(I think with some polyfill javascript functions it will fix some problems,
but I'm afraid it will not enough because it seems that Orion doesn't
support IE8 (according my tests)).

It should be really cool, if Orion team could help us with this topic (use
Orion editor with IE8).

Many thank's

Regards Angelo


2013/9/9 Mike Wilson <[email protected]>

> Angelo,
>
> What I'd really be interested in is seeing you do the equivalent of
> CodeMirror-Eclipse using the Orion editor. If there are things in Orion
> that would make that difficult, we definitely want to fix them.
>
> McQ.
>
> [image: Inactive hide details for Angelo zerr ---2013/09/09
> 08:10:45---Paul, if you are interested I could do the same thing that you 
> h]Angelo
> zerr ---2013/09/09 08:10:45---Paul, if you are interested I could do the
> same thing that you have done with Orion but with my Code
>
> From: Angelo zerr <[email protected]>
> To: E4 Project developer mailing list <[email protected]>,
> Date: 2013/09/09 08:10
> Subject: Re: [e4-dev] Orion CSS preference editor
> Sent by: [email protected]
> ------------------------------
>
>
>
> Paul, if you are interested I could do the same thing that you have done
> with Orion but with my CodeMirror Eclipse (it will be easy to do that), but
> I'm not sure that E4 wish to use CodeMirror.
>
> Tell me if you are interested.
>
> Regards Angelo
>
>
> 2013/9/9 Angelo zerr <*[email protected]* <[email protected]>>
>
>    Hi Paul,
>
>    I have tried to play with your CSS Editor but it doesn't works for me.
>    The browser displays the content of the CSS but syntax coloring +
>    completion doesn't work. I use Windows and my Browser is IE8.
>
>    After debugging your plugin, it seems that Orion code doesn't support
>    IE8 (code uses JSON object, Array#forEach  which is not supported by IE8).
>    For your information I have done the similiar thing with *
>    
> https://github.com/angelozerr/CodeMirror-Eclipse*<https://github.com/angelozerr/CodeMirror-Eclipse>
>  It
>    embedds CodeMirror with SWT Browser and it works with RAP too
>
>    You can find online demo at *
>    
> http://cmeclipse-2.opensagres.eu.cloudbees.net/codemirror*<http://cmeclipse-2.opensagres.eu.cloudbees.net/codemirror>
>  You
>    will find a CSS Editor which manages completion, folding, validation,
>    matching bracket, close bracket, etc.
>    It works with IE because CodeMirror supports IE. You can change the
>    theme of the CSS editor with Windows/Preferences -> CSS/Theme
>    CodeMirror Eclipse provides too a preference page to select your
>    browser (Mozilla, WebKit).
>
>
>    Here conclusion about my little experience with SWT Browser/ HTML
>    editor :
>
>    1) the JS editor used should support IE (CodeMirror supports IE).
>    2) <meta http-equiv="X-UA-Compatible" content="IE=edge" /> should be
>    included in the HTML page
>    3) avoid using IE, it's better (IE is slow). For instance, CodeMirror
>    Eclipse provides a preference page to select Web Browser (Mozzila, WebKit).
>    4) editor JS must manage fullScreen mode. CodeMirror supports
>    fullScreen so you have not the impressions that a browser is used.
>
>    For CSS features, I think validation and completion (as you have
>    managed) is important. After that if you can add some cool feature like
>    folding, comments, format, matching bracket,ntext hover it should be 
> better.
>
>    Hope my post will help you.
>
>    Regards Angelo
>
>
>    2013/9/8 Wim Jongman <*[email protected]* <[email protected]>>
>       Never mind, I found the bug: *
>       
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=410841*<https://bugs.eclipse.org/bugs/show_bug.cgi?id=410841>
>
>
>       On Sun, Sep 8, 2013 at 10:28 PM, Wim Jongman <*[email protected]
>       * <[email protected]>> wrote:
>          Hi Paul,
>
>          I have installed it. Do you have some but some instructions on
>          how to use it? What is the bug number?
>
>          Regards,
>
>          Wim
>
>
>
>          On Fri, Sep 6, 2013 at 7:47 PM, Paul Webster <*
>          [email protected]* <[email protected]>>
>          wrote:
>             I've released an Orion based CSS preference editor.  It can
>             be installed from *
>             
> http://download.eclipse.org/e4/updates/0.15-I-builds*<http://download.eclipse.org/e4/updates/0.15-I-builds>
>
>             "CSS file editor > E4 Orion CSS Preference editor
>             (Incubation)"
>
>             It supports the swt-* properties for content assist.  It's a
>             start, but can definitely use some additions to the content
>             assist/templates.  It's based on the orion editor 3.0
>
>             Please feel free to test it out and provide feedback.
>
>             Later,
>             Paul
>
>             --
>             Paul Webster
>             Hi floor.  Make me a sammich! - GIR
>
>             _______________________________________________
>             e4-dev mailing list*
>             **[email protected]* <[email protected]>*
>             
> **https://dev.eclipse.org/mailman/listinfo/e4-dev*<https://dev.eclipse.org/mailman/listinfo/e4-dev>
>
>
>       _______________________________________________
>       e4-dev mailing list*
>       **[email protected]* <[email protected]>*
>       
> **https://dev.eclipse.org/mailman/listinfo/e4-dev*<https://dev.eclipse.org/mailman/listinfo/e4-dev>
>
> _______________________________________________
> e4-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/e4-dev
>
>
> _______________________________________________
> e4-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/e4-dev
>
>

<<graycol.gif>>

_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to