Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Graphical Editors

The code is changing rapidly, but currently [1] is where the appropriate editor for a given content provider is chosen.   There are built in editors like the current orion text editor and the markdown viewer.    And there are editors provided by plugins (there is only an image viewer out of the box right now).  The plugged in editors are done by [2].   There is a lot be done for the delegate editor still.

The base definition of a text editor is in [3].  We probably will need another base editor interface for non-textual editors.

[1] http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/tree/bundles/org.eclipse.orion.client.ui/web/edit/setup.js#n173

[2] http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/tree/bundles/org.eclipse.orion.client.ui/web/orion/editorDelegatedView.js

[3] http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/tree/bundles/org.eclipse.orion.client.editor/web/orion/editor/editor.js

In the latest code, I just added support for sharing the text model and undo stack between built in editors. I am looking into extending this for plugged in editors next.

Silenio




From:        "Wei, Wei" <wei.wei01@xxxxxxx>
To:        Orion developer discussions <orion-dev@xxxxxxxxxxx>,
Date:        12/02/2013 05:30 AM
Subject:        Re: [orion-dev] Graphical Editors
Sent by:        orion-dev-bounces@xxxxxxxxxxx




Hi Silenio,

Would you mind to offer more insights into this? It is hugely interesting to us. Better point to where the corresponding code is in the git repo. Thanks!

Cheers,
Wei

From: Silenio Quarti <Silenio_Quarti@xxxxxxxxxx>
Reply-To:
Orion developer discussions <
orion-dev@xxxxxxxxxxx>
Date:
Friday 29 November 2013 16:56
To:
Orion developer discussions <
orion-dev@xxxxxxxxxxx>
Subject:
Re: [orion-dev] Graphical Editors


I have been working on [1] which is about adding support to plugin different editors on the right -hand side of the Orion edit.html page.  There is already some support in the latest code if you would like to try it out, but it is still in early stages. Take a look at the screen shots below.

The basic idea is to host an IFRAME in the right hand side and allow plugins to provide its contents.  This should allow graphical editors to be integrated with Orion. Currently, I am working on making the communication between the host page in the IFRAME content seamless.  There is quite a bit of work involving sharing the textmodel/undostack and handling commands/keybindings still to be done.


[1]
https://bugs.eclipse.org/bugs/show_bug.cgi?id=416336

Silenio









From:        
sumit gupta <g.sumit@xxxxxxxxx>
To:        
Orion developer discussions <orion-dev@xxxxxxxxxxx>,
Date:        
11/28/2013 08:22 AM
Subject:        
Re: [orion-dev] Graphical Editors
Sent by:        
orion-dev-bounces@xxxxxxxxxxx




Oliver, thanks for the pointers. I was looking at mxgraph and like it quite a bit, except for the price :). jsplumb looks promising, so I'll play around with that for a bit. Please post if you create a github repository for your integration work, I would like to contribute.



On Thu, Nov 28, 2013 at 5:58 AM, Oliver Kopp <
kopp.dev@xxxxxxxxx> wrote:
Dear Sumit,

I'm also developing a graphical editor. Currently running standalone
only, but there are thoughts to integrate it in Orion.

As graphical framework, I'm using jsPlumb (
http://jsplumb.org). I also
had a look on D3JS (
http://d3js.org/) and Raphael
(
http://raphaeljs.com/), but jsPlumb looked the most promising: Nodes
are made using html, only the connections are made using SVG. This is
IMHO way faster than doing everything in SVG.

For sure, there are also other frameworks:
*
http://neyric.github.io/wireit/docs/,
* Fixed graph nodes and connectors only:
http://meemoo.org/ (equals
yahoo pipes),
http://pipes.deri.org/,
http://neyric.github.com/webhookit/docs/index.html,
*
http://jgraph.github.com/mxgraph/ (not for commercial use:
http://creativecommons.org/licenses/by-nc-sa/3.0/),
*
http://jgraph.github.io/mxgraph/ (commercial only)
*
http://yuilibrary.com/yui/docs/graphics/graphics-drag.html (no edges)

Even more alternatives are listed
http://stackoverflow.com/a/8234639/873282

All of them, however, don't seem to be integrated in Orion...

Cheers,

Oliver
_______________________________________________
orion-dev mailing list

orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list

orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev

[attachment "ATT00001.gif" deleted by Silenio Quarti/Ottawa/IBM] [attachment "ATT00002.gif" deleted by Silenio Quarti/Ottawa/IBM]

Back to the top