Nils Schwenzfeier | 13 Jul 12:06 2016
Picon

[orion-dev] Extend Orion sidebar

Hey,

I would like to extend / override the sidebar in the editor view. Is there any designated way to extend the
sidebar? E.g. using a custom ViewMode? Otherwise, do you have any suggestions for me for a best practice? 

Thank you for your effort!

Best Regards

Nils
Mike Milinkovich | 24 Jun 17:15 2016
Gravatar

[orion-dev] Orionhub.org migration issue?

Howdy folks,

I am getting an Error: 500 "Server Error" when I attempt to login to orionhub.org using Chrome Version 51.0.2704.103 on Ubuntu.

I have cleared my browser cache several times.

Oddly enough it does work from an incognito window.

<div>
    Howdy folks,<br><br>
        I am getting an Error: 500 "Server Error" when I attempt to
        login to orionhub.org using Chrome Version 51.0.2704.103 on
        Ubuntu.<br><br>
        I have cleared my browser cache several times.<br><br>
        Oddly enough it does work from an incognito window. <br><br>
    <div class="moz-signature">-- <br>
      Mike Milinkovich<br><a class="moz-txt-link-abbreviated" href="mailto:mike.milinkovich@...">mike.milinkovich@...</a><br>
      +1.613.220.3223<br><br>
</div>
  </div>
Anthony Hunter | 22 Jun 20:53 2016
Picon
Gravatar

https://orionhub.org

Hi Team,

Our Orion 12.0 release has been deployed to https://orionhub.org.

I have tagged the client and server sources in git as R12_0.

The Orion 12.0 release is available for download at http://download.eclipse.org/orion/ ( http://download.eclipse.org/orion/drops/R-12.0-201606220105/index.html )

Cheers...
Anthony

<div><p>Hi Team,<br><br>Our Orion 12.0 release has been deployed to <a href="https://orionhub.org/">https://orionhub.org</a>. <br><br>I have tagged the client and server sources in git as R12_0.<br><br>The Orion 12.0 release is available for download at <a href="http://download.eclipse.org/orion/">http://download.eclipse.org/orion/</a>  ( <a href="http://download.eclipse.org/orion/drops/R-12.0-201606220105/index.html">http://download.eclipse.org/orion/drops/R-12.0-201606220105/index.html</a> )<br><br>Cheers...<br>Anthony<br><br></p></div>
Justin Robinson | 20 May 11:19 2016
Picon

[orion-dev] Trying to dynamically add/remove a code editor on a page

Hi,

I'm running into an issue with trying to create more than one editor on the same page. I'm creating a widget for my project that dynamically adds and removes an editor on the page.

The first time I add the editor, the codeEdit.create promise resolves fine and I can create the editor, but the second time I try the same code the codeEdit.create promise rejects with the following exception:

 TypeError: Cannot read property 'overwriteKeyBindings' of undefined
    at Object.keyBindingFactory [as _keyBindingFactory] (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:42505:19)
    at Object.objects.mixin.install (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:27882:25)
    at Object.EditorView.create (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:42734:16)
    at EditorSetupHelper.objects.mixin.createEditor (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:42892:20)
    at CodeEdit.<anonymous> (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:43516:26)
    at settleDeferred (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:4265:28)
    at notify (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:4339:18)
    at MutationObserver.run (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:4223:13)

Sorry, I've only just signed up to this mailing list - what's the best way to record this problem or send you a repro?

Thanks
Justy
<div><div dir="ltr">Hi,<div><br></div>
<div>I'm running into an issue with trying to create more than one editor on the same page. I'm creating a widget for my project that dynamically adds and removes an editor on the page.</div>
<div><br></div>
<div>The first time I add the editor, the codeEdit.create promise resolves fine and I can create the editor, but the second time I try the same code the codeEdit.create promise rejects with the following exception:</div>
<div><br></div>
<div>
<div>&nbsp;TypeError: Cannot read property 'overwriteKeyBindings' of undefined</div>
<div>&nbsp; &nbsp; at Object.keyBindingFactory [as _keyBindingFactory] (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:42505:19)</div>
<div>&nbsp; &nbsp; at Object.objects.mixin.install (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:27882:25)</div>
<div>&nbsp; &nbsp; at Object.EditorView.create (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:42734:16)</div>
<div>&nbsp; &nbsp; at EditorSetupHelper.objects.mixin.createEditor (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:42892:20)</div>
<div>&nbsp; &nbsp; at CodeEdit.&lt;anonymous&gt; (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:43516:26)</div>
<div>&nbsp; &nbsp; at settleDeferred (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:4265:28)</div>
<div>&nbsp; &nbsp; at notify (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:4339:18)</div>
<div>&nbsp; &nbsp; at MutationObserver.run (https://localhost:2443/js/lib/orion/code_edit/built-codeEdit-amd.js:4223:13)</div>
</div>
<div><br></div>
<div>Sorry, I've only just signed up to this mailing list - what's the best way to record this problem or send you a repro?</div>
<div><br></div>
<div>Thanks</div>
<div>Justy</div> 		 	   		  </div></div>
Ian Skerrett | 16 May 18:46 2016

[orion-dev] Orion download page

Does Orion have a download page or even a download-able distribution? I could not find anything from eclipse.org/orion.

 

Thanks
Ian

 

<div><div class="WordSection1">
<p class="MsoNormal">Does Orion have a download page or even a download-able distribution? I could not find anything from eclipse.org/orion. <p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thanks<br>Ian<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div></div>
Ken Walker | 10 May 19:51 2016
Gravatar

[orion-dev] orionhub.org running old builds (maybe npm orion out of date too?)

Was going to give a demo next week and noticed orionhub seems to be running a February build.  Any chance of
getting that updated?

Not sure if the npmjs.com version of Orion is out of date too.  Fails to install ‘correctly’ due to a pty
failure, but it does run.

Thanks!
/Ken 
_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev
Libing Wang | 6 May 16:49 2016
Picon

Re: [orion-dev] Custom Types/Globals in CodeEditWidget

Curtis:
codeEdit consumes an "in-memory" file system that is barely a place holder to workaround the Orion inputManager. This file system is registered as the default file system, taking care of file read, write, etc.
I think the real challenge here is that, for example, the "in-memory" file system has no idea on where the imported files are. So unless end user implements a real file system and pass it as a user plugin, it is hard to support this.

Libing




From:        Curtis Windatt/Ottawa/IBM
To:        Orion developer discussions <orion-dev <at> eclipse.org>
Cc:        Libing Wang/Ottawa/IBM <at> IBMCA
Date:        05/05/2016 03:10 PM
Subject:        Re: [orion-dev] Custom Types/Globals in CodeEditWidget


Yes a .eslintrc file could be used to set the environment.  We were just demo'ing this feature this afternoon.  The problem is the same as the .definitions folder.  codeEditWidget has no project, so the tooling can't search for those files.

Libing, do you have any ideas on how we could workaround this?

Curtis




From:        Sebastian Pahnke <pahnke.sebastian <at> gmail.com>
To:        Orion developer discussions <orion-dev <at> eclipse.org>
Date:        05/05/2016 01:00 PM
Subject:        Re: [orion-dev] Custom Types/Globals in CodeEditWidget
Sent by:        orion-dev-bounces <at> eclipse.org



Hi Curtis,

as I have seen you have integrated .eslintrc support for the Orion IDE. I don’t know how hard it is, but if the codeEditWidget API could provide a function to feed in an .eslintrc file, then I could just set the required eslint-env directive once and accomplish 2) without hacking the built javaScriptPlugin file. Just an idea :)

But as for now, the solution works fine and I thank you for your help.

Regards,
Sebastian


Am 05.05.2016 um 15:26 schrieb Curtis Windatt <Curtis_Windatt <at> ca.ibm.com>:

That's great that you were able to inject a new tern plugin into the build ternWorkerCore.

No there is no way to modify the default eslint environments.  To help users with this we have additional eslint rules that will mark the code warning about no environment directive set.  That rule has a quick fix to set the missing eslint-env entry in your file.  I'm not sure how difficult hooking into these quick fixes would be (and whether having to have an eslint-nev directive is reasonable to you).  Maybe in the future our ESLint implementation would look at everything Tern is aware of and ignore the eslint-env, but that isn't our current focus.

Curtis



From:        Sebastian Pahnke <pahnke.sebastian <at> gmail.com>
To:        Orion developer discussions <orion-dev <at> eclipse.org>
Date:        05/04/2016 02:28 PM
Subject:        Re: [orion-dev] Custom Types/Globals in CodeEditWidget
Sent by:        orion-dev-bounces <at> eclipse.org



Hi,

I just wrote a simple test Tern plugin replicating my use case (see below).

1) If I hack this into the dependency list of ternDefaults in the built ternWorkerCore file and add the plugin name to the required plugins, my types are loaded and if I specify /* eslint-env mytypes */ in the editor I can see the code completion for them.

2) If I hack  „mytypes: true“ into the list of standard environments in TernAssist.computeContentAssist in the built javaScriptPlugin file, I can omit the eslint-env directive and use code completion for my types right away.

Using this approach I can completely get rid of the extension of the builtin object in eslint/conf/environments, which is nice. Can I somehow achieve 2) from outside the built files?

<at> Libing: I know the user plugins and already make use of them for other use cases. But they don’t help me in injecting a custom Tern definition file and enable code completion. For that I just want to use the existing framework.

Example Tern plugin:
define([
"tern/lib/tern",
], function(tern) {

   tern.registerPlugin("mytypes", function(server, options) {
server.addDefs(defs);
});

   var defs = {
       "!name": "mytypes",
       "Foo": {
           "!type": "fn()",
           "create": {
             "!type": "fn(name: string) -> +Foo",
             "!doc": "Returns a new Foo object."
           },
           "prototype": {
               "name": {
                 "!type": "string",
                 "!doc": "The name of the Foo."
               }
           }
       }
   };
});

Regards,
Sebastian


Am 04.05.2016 um 19:50 schrieb Libing Wang <Libing_Wang <at> ca.ibm.com>:

Just a reminder that you can pass any user plugins if you are not aware of that...
https://wiki.eclipse.org/Orion/How_Tos/Code_Edit#Passing_user_plugins

-Libing



From:        Sebastian Pahnke <pahnke.sebastian <at> gmail.com>
To:        Orion developer discussions <orion-dev <at> eclipse.org>
Date:        05/04/2016 12:46 PM
Subject:        Re: [orion-dev] Custom Types/Globals in CodeEditWidget
Sent by:        orion-dev-bounces <at> eclipse.org



It’s OK :)
I will look into writing a Tern plugin and see if that at least helps in reducing the hacking and the update overhead.

Thanks and regards,
Sebastian


Am 04.05.2016 um 18:29 schrieb Curtis Windatt <Curtis_Windatt <at> ca.ibm.com>:

Right, this being in the code edit widget is going to be a problem.  Loading .definition folders, using .tern-project file, etc. are all based around having a project.  And CodeEditWidget doesn't have a project...

So assuming you are stuck hacking in definitions, I would still recommend adding them as a Tern plugin, then modifying TernDefaults to load that plugin.  However, I doubt you could do that in the built/minified code.  We don't have a workflow to load all of the plugins in a folder, we load each one in TernDefaults.

This is not very helpful for you :(

Curtis



From:        Sebastian Pahnke <pahnke.sebastian <at> gmail.com>
To:        Orion developer discussions <orion-dev <at> eclipse.org>
Date:        05/04/2016 11:04 AM
Subject:        Re: [orion-dev] Custom Types/Globals in CodeEditWidget
Sent by:        orion-dev-bounces <at> eclipse.org



Hi,

currently it is rather a „hack in“ than a „hook in“ or plugin, since I have to patch the built ternWorkerCore and javaScriptPlugin files, because I know of no other way :)

1) Can I use that with the CodeEditWidget and if yes, where do I have to put the .definition folder?

2) I don’t really setup „custom completions“, I just add my (dynamic) Tern definition file into the built ternWorkerCore file (in the ternDefaults definition, like ecma5, ecma6, chai). So nothing too complicated.
Let’s say I succeed in adding my type definitions via 1) (see my example file from the last email), then I could activate the code completion for my types simply by adding /* eslint-env mydefinition */, right? So the only feature missing for my needs would be „Turning of filtering based on eslint-env“, as you said. Do I understand that correctly?

3) Again, I don’t setup a custom ESLint validation, I just patch the ESLint globals (see eslint/conf/environments) in the built ternWorkerCore file so that my custom types appear as builtin types, just as String or Date are. Otherwise a new MyType1() would give me red squiggles.

I hope that makes it clearer.

Regards
Sebastian


Am 04.05.2016 um 16:03 schrieb Curtis Windatt <Curtis_Windatt <at> ca.ibm.com>:

Your plugin adds 1) Type definitions for Tern  2) Custom completions and 3) ESLint validation?  

1) We have limited support already for adding type definitions.  See Bug 484833 https://bugs.eclipse.org/bugs/show_bug.cgi?id=484833

2) Custom completions would require a new Tern plugin that contributes on the 'completions' request.  We would like to support third party Tern plugins, though at the moment we are focused on fetching type definitions for your code (creating or finding an index for some node module you are using).  I was pretty sure we had a bug for this, but I don't see one, so feel free to create one.  Turning off the filtering based on eslint-env will be one step towards this.  The only thing holding us back from that change is that projects without a .tern-project entry would get all of our templates showing up in content assist all the time.

3) We haven't set up a way to contribute to our ESLint setup so I would be interested in how you are hooking in.  Adding new rules shouldn't be difficult but when setting up the configuration for ESLint we are doing lookups in Orion's preference service as well as looking at eslintrc files.

Curtis



From:        Sebastian Pahnke <pahnke.sebastian <at> gmail.com>
To:        Orion developer discussions <orion-dev <at> eclipse.org>
Date:        05/04/2016 02:55 AM
Subject:        [orion-dev] Custom Types/Globals in CodeEditWidget
Sent by:        orion-dev-bounces <at> eclipse.org



Hi,

to use the CodeEditWidget and its completion/validation features with my own custom types, I currently have to do the following steps (which currently work fine for me):

1. In ternWorkerCore.js search for the ternDefaults definition and add a link to my ASP.NETHTTP request handler (e.g. TypeHandler.ashx?return=types) to the dependencies list => this loads the code completion definitions for Tern

2. In ternWorkerCore.js search for eslint/conf/environments and add a link to my request handler (e.g. TypeHandler.ashx?return=globals) which extends the builtin globals by my types => ESLint knows my types WITHOUT having to specify a eslint-env directive

3. In javascriptPlugin.js search for ecma5 in the computeContentAssist function and add the name of my type definition file (e.g. mydefinition: true)

The mentioned request handler dynamically creates the Tern definitions / ESLint globals for the custom types (see below for example outputs), because they can possibly change due to a plugin concept. Therefore a static definition file is not sufficient.

But this procedure is tedious and error prone especially when I update the widget, since the mentioned files are minified by default(!). To figure out the steps above I actually created a custom build definition which omits the minification step.

With all the new possibilities due to .tern-project files, is there an easier way to accomplish this? Ideally I would like to write some kind of plugin file where I setup all I need and then just feed it to the CodeEditWidget by a function/during the create step. The important points for me are:
1. A dynamic HTTP request handler has to work, a static definition file is not sufficient
2. The types should behave like builtins without the need to specify a eslint-env directive in every script

TypeHandler.ashx?return=types returns a Tern definition file like this:
define([], function () {
            return {
                             "!name": "mydefinition",
                             
                             MyType1: {
                                              ...
                             }
            };
});

TypeHandler.ashx?return=globals returns ESLint globals like this (extending the predefined builtins!):
define(["eslint/conf/globals"], function (globals) {
            globals.builtin.MyType1 = false;
            ...
            return { builtin: globals.builtin };
});

Thanks and regards,
Sebastian

_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev




_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev


_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev

_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev


_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev


<div>Curtis:<br>codeEdit consumes an "in-memory"
file system that is barely a place holder to workaround the Orion inputManager.
This file system is registered as the default file system, taking care
of file read, write, etc.<br>I think the real challenge here is that,
for example, the "in-memory" file system has no idea on where
the imported files are. So unless end user implements a real file system
and pass it as a user plugin, it is hard to support this.<br><br>Libing<br><br><br><br><br>From: &nbsp; &nbsp; &nbsp;
&nbsp;Curtis Windatt/Ottawa/IBM<br>To: &nbsp; &nbsp; &nbsp;
&nbsp;Orion developer discussions
&lt;orion-dev <at> eclipse.org&gt;<br>Cc: &nbsp; &nbsp; &nbsp;
&nbsp;Libing Wang/Ottawa/IBM <at> IBMCA<br>Date: &nbsp; &nbsp; &nbsp;
&nbsp;05/05/2016 03:10 PM<br>Subject: &nbsp; &nbsp;
&nbsp; &nbsp;Re: [orion-dev]
Custom Types/Globals in CodeEditWidget<br><br><br>Yes a .eslintrc file could be used to
set the environment. &nbsp;We were just demo'ing this feature this afternoon.
&nbsp;The problem is the same as the .definitions folder. &nbsp;codeEditWidget
has no project, so the tooling can't search for those files.<br><br>Libing, do you have any ideas on how
we could workaround this?<br><br>Curtis<br><br><br><br><br>From: &nbsp; &nbsp; &nbsp;
&nbsp;Sebastian Pahnke &lt;pahnke.sebastian <at> gmail.com&gt;<br>To: &nbsp; &nbsp; &nbsp;
&nbsp;Orion developer discussions
&lt;orion-dev <at> eclipse.org&gt;<br>Date: &nbsp; &nbsp; &nbsp;
&nbsp;05/05/2016 01:00 PM<br>Subject: &nbsp; &nbsp;
&nbsp; &nbsp;Re: [orion-dev]
Custom Types/Globals in CodeEditWidget<br>Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;orion-dev-bounces <at> eclipse.org<br><br><br><br>Hi Curtis,<br><br>as I have seen you have integrated .eslintrc support for
the Orion IDE. I don&rsquo;t know how hard it is, but if the codeEditWidget
API could provide a function to feed in an .eslintrc file, then I could
just set the required eslint-env directive once and accomplish 2) without
hacking the built javaScriptPlugin file. Just an idea :)<br><br>But as for now, the solution works fine and I thank you
for your help.<br><br>Regards,<br>Sebastian<br><br><br>Am 05.05.2016 um 15:26 schrieb Curtis Windatt &lt;<a href="mailto:Curtis_Windatt <at> ca.ibm.com">Curtis_Windatt <at> ca.ibm.com</a>&gt;:<br><br>That's great that you were able to inject
a new tern plugin into the build ternWorkerCore.<br><br>No there is no way to modify the default eslint environments. &nbsp;To
help users with this we have additional eslint rules that will mark the
code warning about no environment directive set. &nbsp;That rule has a
quick fix to set the missing eslint-env entry in your file. &nbsp;I'm not
sure how difficult hooking into these quick fixes would be (and whether
having to have an eslint-nev directive is reasonable to you). &nbsp;Maybe
in the future our ESLint implementation would look at everything Tern is
aware of and ignore the eslint-env, but that isn't our current focus.<br><br>Curtis<br><br><br><br>From: &nbsp; &nbsp; &nbsp; &nbsp;Sebastian
Pahnke &lt;<a href="mailto:pahnke.sebastian <at> gmail.com">pahnke.sebastian <at> gmail.com</a>&gt;<br>To: &nbsp; &nbsp; &nbsp; &nbsp;Orion
developer discussions &lt;<a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a>&gt;<br>Date: &nbsp; &nbsp; &nbsp; &nbsp;05/04/2016
02:28 PM<br>Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re:
[orion-dev] Custom Types/Globals in CodeEditWidget<br>Sent by: &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:orion-dev-bounces <at> eclipse.org">orion-dev-bounces <at> eclipse.org</a><br><br><br><br>Hi,<br><br>I just wrote a simple test Tern plugin replicating my use case (see below).
<br><br>1) If I hack this into the dependency list of ternDefaults in the built
ternWorkerCore file and add the plugin name to the required plugins, my
types are loaded and if I specify /* eslint-env mytypes */ in the editor
I can see the code completion for them. <br><br>2) If I hack &nbsp;&bdquo;mytypes: true&ldquo; into the list of standard environments
in TernAssist.computeContentAssist in the built javaScriptPlugin file,
I can omit the eslint-env directive and use code completion for my types
right away.<br><br>Using this approach I can completely get rid of the extension of the builtin
object in eslint/conf/environments, which is nice. Can I somehow achieve
2) from outside the built files?<br><br> <at> Libing: I know the user plugins and already make use of them for other
use cases. But they don&rsquo;t help me in injecting a custom Tern definition
file and enable code completion. For that I just want to use the existing
framework.<br><br>Example Tern plugin:<br>define([<br>"tern/lib/tern",<br>], function(tern) {<br><br> &nbsp; &nbsp;tern.registerPlugin("mytypes", function(server,
options) {<br>server.addDefs(defs);<br>});<br><br> &nbsp; &nbsp;var defs = {<br> &nbsp; &nbsp; &nbsp; &nbsp;"!name": "mytypes",<br> &nbsp; &nbsp; &nbsp; &nbsp;"Foo": {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"!type": "fn()",<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"create": {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"!type": "fn(name:
string) -&gt; +Foo",<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"!doc": "Returns
a new Foo object."<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;},<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"prototype": {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"name":
{<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"!type":
"string",<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"!doc":
"The name of the Foo."<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp;};<br>});<br><br>Regards,<br>Sebastian<br><br><br>Am 04.05.2016 um 19:50 schrieb Libing Wang &lt;<a href="mailto:Libing_Wang <at> ca.ibm.com">Libing_Wang <at> ca.ibm.com</a>&gt;:<br><br>Just a reminder that you can pass any user plugins if you are not aware
of that...<br><a href="https://wiki.eclipse.org/Orion/How_Tos/Code_Edit#Passing_user_plugins">https://wiki.eclipse.org/Orion/How_Tos/Code_Edit#Passing_user_plugins</a><br><br>-Libing<br><br><br><br>From: &nbsp; &nbsp; &nbsp; &nbsp;Sebastian
Pahnke &lt;<a href="mailto:pahnke.sebastian <at> gmail.com">pahnke.sebastian <at> gmail.com</a>&gt;<br>To: &nbsp; &nbsp; &nbsp; &nbsp;Orion
developer discussions &lt;<a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a>&gt;<br>Date: &nbsp; &nbsp; &nbsp; &nbsp;05/04/2016
12:46 PM<br>Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re:
[orion-dev] Custom Types/Globals in CodeEditWidget<br>Sent by: &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:orion-dev-bounces <at> eclipse.org">orion-dev-bounces <at> eclipse.org</a><br><br><br><br>It&rsquo;s OK :) <br>I will look into writing a Tern plugin and see if that at least helps in
reducing the hacking and the update overhead.<br><br>Thanks and regards,<br>Sebastian<br><br><br>Am 04.05.2016 um 18:29 schrieb Curtis Windatt &lt;<a href="mailto:Curtis_Windatt <at> ca.ibm.com">Curtis_Windatt <at> ca.ibm.com</a>&gt;:<br><br>Right, this being in the code edit widget is going to be a problem. &nbsp;Loading
.definition folders, using .tern-project file, etc. are all based around
having a project. &nbsp;And CodeEditWidget doesn't have a project...<br><br>So assuming you are stuck hacking in definitions, I would still recommend
adding them as a Tern plugin, then modifying TernDefaults to load that
plugin. &nbsp;However, I doubt you could do that in the built/minified
code. &nbsp;We don't have a workflow to load all of the plugins in a folder,
we load each one in TernDefaults.<br><br>This is not very helpful for you :(<br><br>Curtis<br><br><br><br>From: &nbsp; &nbsp; &nbsp; &nbsp;Sebastian
Pahnke &lt;<a href="mailto:pahnke.sebastian <at> gmail.com">pahnke.sebastian <at> gmail.com</a>&gt;<br>To: &nbsp; &nbsp; &nbsp; &nbsp;Orion
developer discussions &lt;<a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a>&gt;<br>Date: &nbsp; &nbsp; &nbsp; &nbsp;05/04/2016
11:04 AM<br>Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re:
[orion-dev] Custom Types/Globals in CodeEditWidget<br>Sent by: &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:orion-dev-bounces <at> eclipse.org">orion-dev-bounces <at> eclipse.org</a><br><br><br><br>Hi,<br><br>currently it is rather a &bdquo;hack in&ldquo; than a &bdquo;hook in&ldquo; or plugin, since
I have to patch the built ternWorkerCore and javaScriptPlugin files, because
I know of no other way :)<br><br>1) Can I use that with the CodeEditWidget and if yes, where do I have to
put the .definition folder?<br><br>2) I don&rsquo;t really setup &bdquo;custom completions&ldquo;, I just add my (dynamic)
Tern definition file into the built ternWorkerCore file (in the ternDefaults
definition, like ecma5, ecma6, chai). So nothing too complicated. <br>Let&rsquo;s say I succeed in adding my type definitions via 1) (see my example
file from the last email), then I could activate the code completion for
my types simply by adding /* eslint-env mydefinition */, right? So the
only feature missing for my needs would be &bdquo;Turning of filtering based
on eslint-env&ldquo;, as you said. Do I understand that correctly?<br><br>3) Again, I don&rsquo;t setup a custom ESLint validation, I just patch the ESLint
globals (see eslint/conf/environments) in the built ternWorkerCore file
so that my custom types appear as builtin types, just as String or Date
are. Otherwise a new MyType1() would give me red squiggles.<br><br>I hope that makes it clearer.<br><br>Regards<br>Sebastian<br><br><br>Am 04.05.2016 um 16:03 schrieb Curtis Windatt &lt;<a href="mailto:Curtis_Windatt <at> ca.ibm.com">Curtis_Windatt <at> ca.ibm.com</a>&gt;:<br><br>Your plugin adds 1) Type definitions for Tern &nbsp;2) Custom completions
and 3) ESLint validation? &nbsp;<br><br>1) We have limited support already for adding type definitions. &nbsp;See
Bug 484833 <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=484833">https://bugs.eclipse.org/bugs/show_bug.cgi?id=484833</a><br><br>2) Custom completions would require a new Tern plugin that contributes
on the 'completions' request. &nbsp;We would like to support third party
Tern plugins, though at the moment we are focused on fetching type definitions
for your code (creating or finding an index for some node module you are
using). &nbsp;I was pretty sure we had a bug for this, but I don't see
one, so feel free to create one. &nbsp;Turning off the filtering based
on eslint-env will be one step towards this. &nbsp;The only thing holding
us back from that change is that projects without a .tern-project entry
would get all of our templates showing up in content assist all the time.<br><br>3) We haven't set up a way to contribute to our ESLint setup so I would
be interested in how you are hooking in. &nbsp;Adding new rules shouldn't
be difficult but when setting up the configuration for ESLint we are doing
lookups in Orion's preference service as well as looking at eslintrc files.<br><br>Curtis<br><br><br><br>From: &nbsp; &nbsp; &nbsp; &nbsp;Sebastian
Pahnke &lt;<a href="mailto:pahnke.sebastian <at> gmail.com">pahnke.sebastian <at> gmail.com</a>&gt;<br>To: &nbsp; &nbsp; &nbsp; &nbsp;Orion
developer discussions &lt;<a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a>&gt;<br>Date: &nbsp; &nbsp; &nbsp; &nbsp;05/04/2016
02:55 AM<br>Subject: &nbsp; &nbsp; &nbsp; &nbsp;[orion-dev]
Custom Types/Globals in CodeEditWidget<br>Sent by: &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:orion-dev-bounces <at> eclipse.org">orion-dev-bounces <at> eclipse.org</a><br><br><br><br>Hi,<br><br>to use the CodeEditWidget and its completion/validation features with my
own custom types, I currently have to do the following steps (which currently
work fine for me):<br><br>1. In ternWorkerCore.js search for the ternDefaults definition and add
a link to my <a href="http://asp.net/">ASP.NET</a>HTTP
request handler (e.g. TypeHandler.ashx?return=types) to the dependencies
list =&gt; this loads the code completion definitions for Tern<br><br>2. In ternWorkerCore.js search for eslint/conf/environments and add a link
to my request handler (e.g. TypeHandler.ashx?return=globals) which extends
the builtin globals by my types =&gt; ESLint knows my types WITHOUT having
to specify a eslint-env directive<br><br>3. In javascriptPlugin.js search for ecma5 in the computeContentAssist
function and add the name of my type definition file (e.g. mydefinition:
true)<br><br>The mentioned request handler dynamically creates the Tern definitions
/ ESLint globals for the custom types (see below for example outputs),
because they can possibly change due to a plugin concept. Therefore a static
definition file is not sufficient.<br><br>But this procedure is tedious and error prone especially when I update
the widget, since the mentioned files are minified by default(!). To figure
out the steps above I actually created a custom build definition which
omits the minification step.<br><br>With all the new possibilities due to .tern-project files, is there an
easier way to accomplish this? Ideally I would like to write some kind
of plugin file where I setup all I need and then just feed it to the CodeEditWidget
by a function/during the create step. The important points for me are:<br>1. A dynamic HTTP request handler has to work, a static definition file
is not sufficient<br>2. The types should behave like builtins without the need to specify a
eslint-env directive in every script<br><br>TypeHandler.ashx?return=types returns a Tern definition file like this:<br>define([], function () {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"!name": "mydefinition",<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MyType1: {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; ...<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>});<br><br>TypeHandler.ashx?return=globals returns ESLint globals like this (extending
the predefined builtins!):<br>define(["eslint/conf/globals"], function (globals) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; globals.builtin.MyType1 = false;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ...<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return { builtin: globals.builtin
};<br>});<br><br>Thanks and regards,<br>Sebastian<br><br>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br><br><br><br><br>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br><br><br>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br><br>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br><br><br>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev <at> eclipse.org">orion-dev <at> eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br>_______________________________________________<br>orion-dev mailing list<br>orion-dev <at> eclipse.org<br>To change your delivery options, retrieve your password, or unsubscribe
from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br><br><br>
</div>
Sebastian Pahnke | 4 May 09:55 2016
Picon

[orion-dev] Custom Types/Globals in CodeEditWidget

Hi,

to use the CodeEditWidget and its completion/validation features with my own custom types, I currently
have to do the following steps (which currently work fine for me):

1. In ternWorkerCore.js search for the ternDefaults definition and add a link to my ASP.NET HTTP request
handler (e.g. TypeHandler.ashx?return=types) to the dependencies list => this loads the code
completion definitions for Tern

2. In ternWorkerCore.js search for eslint/conf/environments and add a link to my request handler (e.g.
TypeHandler.ashx?return=globals) which extends the builtin globals by my types => ESLint knows my
types WITHOUT having to specify a eslint-env directive

3. In javascriptPlugin.js search for ecma5 in the computeContentAssist function and add the name of my
type definition file (e.g. mydefinition: true)

The mentioned request handler dynamically creates the Tern definitions / ESLint globals for the custom
types (see below for example outputs), because they can possibly change due to a plugin concept.
Therefore a static definition file is not sufficient.

But this procedure is tedious and error prone especially when I update the widget, since the mentioned
files are minified by default(!). To figure out the steps above I actually created a custom build
definition which omits the minification step.

With all the new possibilities due to .tern-project files, is there an easier way to accomplish this?
Ideally I would like to write some kind of plugin file where I setup all I need and then just feed it to the
CodeEditWidget by a function/during the create step. The important points for me are:
1. A dynamic HTTP request handler has to work, a static definition file is not sufficient
2. The types should behave like builtins without the need to specify a eslint-env directive in every script

TypeHandler.ashx?return=types returns a Tern definition file like this:
define([], function () {
	return {
		"!name": "mydefinition",
		
		MyType1: {
			...
		}
	};
});

TypeHandler.ashx?return=globals returns ESLint globals like this (extending the predefined builtins!):
define(["eslint/conf/globals"], function (globals) {
	globals.builtin.MyType1 = false;
	...
	return { builtin: globals.builtin };
});

Thanks and regards,
Sebastian

Randika Navagamuwa | 3 May 18:38 2016
Picon
Picon

Re: [orion-dev] Extending multi cursor feature

Hello Silenio,
  Thanks to your solution I managed to overcome the problem I had. Working demo[1]. Thank you for showing me the right path. :)


Thanks and regards,
Randika

On Fri, Apr 29, 2016 at 12:42 AM, Randika Navagamuwa <randika.12-oSlsMAnLMR77CP1MCdZXNQ@public.gmane.org> wrote:
Hi Silenio,
 Thanks for the quick response. Though we might need to change the code a bit, this sure will work. Is there an API to create or add annotations. If there is one then it will reduce a lot of work. In the mean time I'll try  go though this.

Thanks and regards,
Randika

On Fri, Apr 29, 2016 at 12:31 AM, Silenio Quarti <Silenio_Quarti-G1DYhSM1WHTQT0dZR+AlfA@public.gmane.org> wrote:
Hi Randika,
 
I think _updateBlockCursorVisible is way too low level (and not API).  For me, the display cursors of the other participants are not real cursors (i.e they should not blink, etc).  Otherwise they will get confused with the actual cursors (specially in multiple selection mode).  The display cursors should be just annotations on top of the text (like error squiggles, etc).
 
Here is a snippet of code that adds several annotations (vertical coloured lines that resemble a cursor).  Does this approach work for you?  Let me if you need more details to try the snippet out.
 
 
        var view = .......  the editor text view ........
        var annotationStyler = ....... the editor annotation styler .........
        annotationStyler.addAnnotationType("virtualCursors");
        view.annotationModel.addAnnotation({
            type: "virtualCursors",
            start: 100,
            end: 100,
            rangeStyle: {
                style: {
                    outline: "1px solid red"
                }
            }
        });
        view.annotationModel.addAnnotation({
            type: "virtualCursors",
            start: 130,
            end: 130,
            rangeStyle: {
                style: {
                    outline: "1px solid green"
                }
            }
        });
        view.annotationModel.addAnnotation({
            type: "virtualCursors",
            start: 400,
            end: 400,
            rangeStyle: {
                style: {
                    outline: "1px solid magenta"
                }
            }
        });
 
 
 
----- Original message -----
From: Randika Navagamuwa <randika.12-oSlsMAnLMR77CP1MCdZXNQ@public.gmane.org>
Sent by: orion-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
To: Orion developer discussions <orion-dev-j9T/66MeVpHF2uMehF1BdA@public.gmane.orgg>
Cc:
Subject: [orion-dev] Extending multi cursor feature
Date: Thu, Apr 28, 2016 11:10 AM
 
Hi all,
  I'm trying to implement a feature for Eclipse che as a GSOC student, which would display cursors of other participants when having a pair programming session. Since che uses Orion editor I'm trying to add that to a standalone orion editor.  As the initial step I went through the source code and managed to do this[1]. Click on multiple positions on the editor and there will be multiple cursors and cursors should be there without disappearing. 
  I was using the code, that is used in the _updateBlockCursorVisible  function in built-codeEdit.js file to achieve this. I just want to know is there an easier way to achieve this or am I going on the correct path. It would be great if someone could point me in the right direction.
 
 
Thanks and regards,
Randika
 
--
Regards
Randika Navagamuwa,
Department of Computer Science & Engineering,
University of Moratuwa,
Sri Lanka.
    
_______________________________________________
orion-dev mailing list
orion-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev
 


_______________________________________________
orion-dev mailing list
orion-dev <at> eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/orion-dev



--
Regards
Randika Navagamuwa,
Department of Computer Science & Engineering,
University of Moratuwa,
Sri Lanka.



--
Regards
Randika Navagamuwa,
Department of Computer Science & Engineering,
University of Moratuwa,
Sri Lanka.
<div>
<div dir="ltr">Hello Silenio,<div>&nbsp; Thanks to your solution I managed to overcome the problem I had. Working demo[1]. Thank you for showing me the right path. :)</div>
<div><br></div>
<div>[1]<a href="http://rnavagamuwa.github.io/orion-editor/">http://rnavagamuwa.github.io/orion-editor/</a>
</div>
<div><br></div>
<div>Thanks and regards,</div>
<div>Randika</div>
</div>
<div class="gmail_extra">
<br><div class="gmail_quote">On Fri, Apr 29, 2016 at 12:42 AM, Randika Navagamuwa <span dir="ltr">&lt;<a href="mailto:randika.12@..." target="_blank">randika.12@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">Hi Silenio,<div>&nbsp;Thanks for the quick response. Though we might need to change the code a bit, this sure will work. Is there an API to create or add annotations. If there is one then it will reduce a lot of work. In the mean time I'll try &nbsp;go though this.</div>
<div><br></div>
<div>Thanks and regards,</div>
<div>Randika</div>
</div>
<div class="HOEnZb"><div class="h5">
<div class="gmail_extra">
<br><div class="gmail_quote">On Fri, Apr 29, 2016 at 12:31 AM, Silenio Quarti <span dir="ltr">&lt;<a href="mailto:Silenio_Quarti@..." target="_blank">Silenio_Quarti@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr"><div dir="ltr">
<div dir="ltr">Hi Randika,</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">I think&nbsp;_updateBlockCursorVisible&nbsp;is way too low level (and not API).&nbsp; For me, the display cursors of the other participants are not real cursors (i.e they should not blink, etc).&nbsp; Otherwise they will get confused with the actual cursors (specially in multiple selection mode).&nbsp; The display cursors should be just annotations on top of the text (like error squiggles, etc).<br>
</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">Here is a snippet of code that adds several annotations (vertical coloured lines that resemble a cursor).&nbsp; Does this approach work for you?&nbsp;&nbsp;Let me if you need more details to try the snippet out.</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; var view = ....... &nbsp;the editor text view ........</div>
<div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; var annotationStyler = ....... the editor annotation styler .........</div>
<div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; annotationStyler.addAnnotationType("virtualCursors");<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;view.annotationModel.addAnnotation({<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;type: "virtualCursors",<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;start: 100,<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;end: 100,<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;rangeStyle: {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;style: {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;outline: "1px solid red"<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;});<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;view.annotationModel.addAnnotation({<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;type: "virtualCursors",<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;start: 130,<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;end: 130,<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;rangeStyle: {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;style: {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;outline: "1px solid green"<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;});<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;view.annotationModel.addAnnotation({<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;type: "virtualCursors",<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;start: 400,<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;end: 400,<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;rangeStyle: {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;style: {<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;outline: "1px solid magenta"<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;});</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">&nbsp;</div>
<blockquote dir="ltr">
<div><div>----- Original message -----<br>From: Randika Navagamuwa &lt;<a href="mailto:randika.12@..." target="_blank">randika.12@...</a>&gt;<br>Sent by: <a href="mailto:orion-dev-bounces@..." target="_blank">orion-dev-bounces@...</a><br>To: Orion developer discussions &lt;<a href="mailto:orion-dev@..." target="_blank">orion-dev@...g</a>&gt;<br>Cc:<br>Subject: [orion-dev] Extending multi cursor feature<br>Date: Thu, Apr 28, 2016 11:10 AM<br>&nbsp;
<div dir="ltr">Hi all,
<div>&nbsp; I'm trying to implement a feature for Eclipse che as a GSOC student, which would d<span>isplay cursors of other participants when having a pair programming session. Since che uses Orion editor I'm trying to add that to a standalon</span><span>e orion editor.&nbsp; As the initial step I went through the source code and managed to do this[1]. Click on multiple positions on th</span><span>e editor and there will be multiple cursors and cursors should be there without&nbsp;disappearing.&nbsp;</span>
</div>
<div>
<span>&nbsp; I was using the code, that is used in the&nbsp;</span><span>_updateBlockCursorVisible </span><span>&nbsp;</span><span><span>function in&nbsp;</span></span><span><span>built-codeEdit.js</span>&nbsp;file&nbsp;</span><span>to&nbsp;achieve</span><span>&nbsp;this. I just want to know is there an easier way to achieve this or am I going on the correct path. It would be great if someone could point me in the right direction.</span>
</div>
<div>&nbsp;</div>
<div><span><span>[1]<a href="http://rnavagamuwa.github.io/orion-editor/" target="_blank">http://rnavagamuwa.github.io/orion-editor/</a></span></span></div>
<div>&nbsp;</div>
<div><span><span>Thanks and regards,</span></span></div>
<div>
<span><span>Randika</span></span>
<div>&nbsp;</div>
<span><span>-- </span></span>
<div><div dir="ltr">
<div>
<div>
<div><span><span>Regards<br>Randika Navagamuwa,</span></span></div>
<span><span>Department of Computer Science &amp; Engineering,</span></span>
</div>
<span><span>University of Moratuwa,</span></span>
</div>
<span><span>Sri Lanka.</span></span>
</div></div>
<span><span> </span></span>
</div>
<div>
<a href="http://lk.linkedin.com/in/rnavagamuwa/" target="_blank"></a><span>&nbsp;</span><a href="https://www.facebook.com/rnavagamuwa" target="_blank"></a><span>&nbsp;</span><a href="https://twitter.com/rnavagamuwa" target="_blank"></a><span>&nbsp;</span><a href="https://plus.google.com/+RandikaNavagamuwa/" target="_blank"></a>&nbsp;</div>
</div>
</div></div>
<div>_______________________________________________<br>orion-dev mailing list<br><a href="mailto:orion-dev@..." target="_blank">orion-dev@...</a><br>To change your delivery options, retrieve your password, or unsubscribe from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev" target="_blank">https://dev.eclipse.org/mailman/listinfo/orion-dev</a>
</div>
</blockquote>
<div dir="ltr">&nbsp;</div>
</div></div>
<br><br>_______________________________________________<br>
orion-dev mailing list<br><a href="mailto:orion-dev@..." target="_blank">orion-dev <at> eclipse.org</a><br>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit<br><a href="https://dev.eclipse.org/mailman/listinfo/orion-dev" rel="noreferrer" target="_blank">https://dev.eclipse.org/mailman/listinfo/orion-dev</a><br>
</blockquote>
</div>
<br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">
<div>
<div>
<div>Regards<br>Randika Navagamuwa,<br>
</div>Department of Computer Science &amp; Engineering,<br>
</div>University of Moratuwa,<br>
</div>Sri Lanka.<br>
</div></div>
</div>
</div></div>
</blockquote>
</div>
<br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">
<div>
<div>
<div>Regards<br>Randika Navagamuwa,<br>
</div>Department of Computer Science &amp; Engineering,<br>
</div>University of Moratuwa,<br>
</div>Sri Lanka.<br>
</div></div>
</div>
</div>
João Paulo Varandas | 3 May 17:08 2016
Picon
Gravatar

[orion-dev] Orionhub - Support?

Hello team!

I'm currently using the builtEditor from orionhub. I found it amazing and it really suits what I intend to do right now in an enterprise application I'm currently building. Thanks and congratulations for the great work.

I'd like to test a few things in the cloud version. Does anyone know where can I get support for login in the cloud version?






João Paulo Varandas
<div><div dir="ltr">
<div class="gmail_default">Hello team!</div>
<div class="gmail_default"><br></div>
<div class="gmail_default">I'm currently using the builtEditor from orionhub. I found it amazing and it really suits what I intend to do right now in an enterprise application I'm currently building. Thanks and congratulations for the great work.</div>
<div class="gmail_default"><br></div>
<div class="gmail_default">I'd like to test a few things in the cloud version. Does anyone know where can I get support for login in the cloud version?<br>
</div>
<div class="gmail_default"><br></div>
<div class="gmail_default"><br></div>
<div class="gmail_default"><br></div>
<div class="gmail_default"><br></div>
<div class="gmail_default"><br></div>
<div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>
<div><br></div>
<div>Jo&atilde;o Paulo Varandas</div>
<div>
<a href="mailto:jpvarandas <at> gmail.com" target="_blank">jpvarandas@...</a><br>11 99889-2321</div>
</div></div></div></div></div></div>
</div></div>
Randika Navagamuwa | 28 Apr 17:09 2016
Picon
Picon

[orion-dev] Extending multi cursor feature

Hi all,
  I'm trying to implement a feature for Eclipse che as a GSOC student, which would display cursors of other participants when having a pair programming session. Since che uses Orion editor I'm trying to add that to a standalone orion editor.  As the initial step I went through the source code and managed to do this[1]. Click on multiple positions on the editor and there will be multiple cursors and cursors should be there without disappearing. 
  I was using the code, that is used in the _updateBlockCursorVisible  function in built-codeEdit.js file to achieve this. I just want to know is there an easier way to achieve this or am I going on the correct path. It would be great if someone could point me in the right direction.


Thanks and regards,
Randika

--
Regards
Randika Navagamuwa,
Department of Computer Science & Engineering,
University of Moratuwa,
Sri Lanka.
    
<div><div dir="ltr">Hi all,<div>&nbsp; I'm trying to implement a feature for Eclipse che as a GSOC student, which would d<span>isplay cursors of other participants when having a pair programming session. Since che uses Orion editor I'm trying to add that to a standalon</span><span>e orion editor.&nbsp; As the initial step I went through the source code and managed to do this[1]. Click on multiple positions on th</span><span>e editor and there will be multiple cursors and cursors should be there without&nbsp;disappearing.&nbsp;</span>
</div>
<div>
<span>&nbsp; I was using the code, that is used in the&nbsp;</span><span>_updateBlockCursorVisible </span><span>&nbsp;</span><span><span>function in&nbsp;</span></span><span><span>built-codeEdit.js</span>&nbsp;file&nbsp;</span><span>to&nbsp;achieve</span><span>&nbsp;this. I just want to know is there an easier way to achieve this or am I going on the correct path. It would be great if someone could point me in the right direction.</span>
</div>
<div><span><span><br></span></span></div>
<div><span><span>[1]<a href="http://rnavagamuwa.github.io/orion-editor/">http://rnavagamuwa.github.io/orion-editor/</a></span></span></div>
<div><span><span><br></span></span></div>
<div><span><span>Thanks and regards,</span></span></div>
<div><span><span>Randika<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">
<div>
<div>
<div>Regards<br>Randika Navagamuwa,<br>
</div>Department of Computer Science &amp; Engineering,<br>
</div>University of Moratuwa,<br>
</div>Sri Lanka.<br>
</div></div>
</span></span></div>
<div>
<a href="http://lk.linkedin.com/in/rnavagamuwa/" target="_blank"></a><span>&nbsp;</span><a href="https://www.facebook.com/rnavagamuwa" target="_blank"></a><span>&nbsp;</span><span></span><span></span><a href="https://twitter.com/rnavagamuwa" target="_blank"></a><span>&nbsp;</span><a href="https://plus.google.com/+RandikaNavagamuwa/" target="_blank"></a>&nbsp;<br>
</div>
</div></div>

Gmane