Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] che-dev Digest, Vol 17, Issue 34

Tyler, thanks for the pointers.  Am I reading it correctly in the File Types documentation that to implement a new FileType, that I have to modify Che core, or is that done by using an injected reference?  I'm looking at the last paragraph where it says you need to register the file extension in /eclipse/che/blob/master/core/ide/che-core-ide-jseditor/src/main/java/org/eclipse/che/ide/jseditor/client/filetype/ExtensionFileTypeIdentifier.java.

On Thu, Apr 21, 2016 at 11:00 AM, <che-dev-request@xxxxxxxxxxx> wrote:
Send che-dev mailing list submissions to
        che-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/che-dev
or, via email, send a message with subject or body 'help' to
        che-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
        che-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of che-dev digest..."


Today's Topics:

   1. Adding an imported language grammar? (Jesse Shaffer)
   2. Re: Adding an imported language grammar? (Tyler Jewell)


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

Message: 1
Date: Wed, 20 Apr 2016 15:46:13 -0500
From: Jesse Shaffer <dajester2005@xxxxxxxxx>
To: che-dev@xxxxxxxxxxx
Subject: [che-dev] Adding an imported language grammar?
Message-ID:
        <CAMZ7h4gYg1r_jzZRLZVTrTPAvX8ZK6=E_Nx8-sOqgaTifzXQuw@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

I've used the Orion tmlanguage import tool, but I'm not sure how to proceed
as far as importing the Orion grammar into che.  Is there documentation on
this?

Thanks,

Jesse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/che-dev/attachments/20160420/945fe246/attachment.html>

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

Message: 2
Date: Thu, 21 Apr 2016 05:48:50 -0700
From: Tyler Jewell <tyler@xxxxxxxxxxx>
To: che developer discussions <che-dev@xxxxxxxxxxx>
Subject: Re: [che-dev] Adding an imported language grammar?
Message-ID:
        <CAMzFgbV0FvvwbOzpHAnwfPWwX3A2sSzXKXFLsXysc0o1Fmp-sQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Jesse:

The great guys at EclipseSource are working on a plugin resource center to
be published in July that documents how these various components work.

Here are some pointers that can get you started now.

File Types and Extensions.
https://eclipse-che.readme.io/docs/file-types

As for the rest of what is happening with Orion - these are some notes from
an earlier discussion.

https://github.com/eclipse/orion.client/blob/master/bundles/org.eclipse.orion.client.ui/web/plugins/languages/python/pythonPlugin.js
here
is the python plugin in orion codebase
python mime type is supported by orion widget by default, to view the list
of supported mime types, please, look at section "contentType parameter" (
https://wiki.eclipse.org/Orion/How_Tos/Code_Edit)
to alter the logic perhaps need to register grammar in
orion.edit.highlighter (
https://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Plugging_into_the_editor#orion.edit.highlighter
)
python grammar is described here -
https://github.com/eclipse/orion.client/blob/master/bundles/org.eclipse.orion.client.editor/web/orion/editor/stylers/text_x-python/syntax.js#L36


Tyler Jewell | CEO | tyler@?codenvy.?com | 9?78?.8?84?.53?55

On Wed, Apr 20, 2016 at 1:46 PM, Jesse Shaffer <dajester2005@xxxxxxxxx>
wrote:

> I've used the Orion tmlanguage import tool, but I'm not sure how to
> proceed as far as importing the Orion grammar into che.  Is there
> documentation on this?
>
> Thanks,
>
> Jesse
>
> _______________________________________________
> che-dev mailing list
> che-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/che-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/che-dev/attachments/20160421/87eba89b/attachment.html>

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

_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev


End of che-dev Digest, Vol 17, Issue 34
***************************************


Back to the top