Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] onInputChange: how are file types decided?

Ok. Let's try again with less linkspank...

- How does our mainstream code actually support content-types? From the sounds of it, there are multiple places where this is happening, which seems odd to me.
- What is the basis for content type discovery? (i.e. "text/_javascript_" versus "*.js" versus ??)

McQ.

Inactive hide details for John Arthorne---2011/06/10 10:28:03---The list of all "extension points" is found here. DocumentationJohn Arthorne---2011/06/10 10:28:03---The list of all "extension points" is found here. Documentation is still missing for most of them:


From:

John Arthorne/Ottawa/IBM@IBMCA

To:

Orion developer discussions <orion-dev@xxxxxxxxxxx>

Date:

2011/06/10 10:28

Subject:

Re: [orion-dev] onInputChange: how are file types decided?




The list of all "extension points" is found here. Documentation is still missing for most of them:

http://wiki.eclipse.org/Orion/Documentation/Developer_Guide



Mike Wilson/Ottawa/IBM@IBMCA
Sent by: orion-dev-bounces@xxxxxxxxxxx

06/10/2011 10:16 AM

Please respond to
Orion developer discussions <orion-dev@xxxxxxxxxxx>
To
Orion developer discussions <orion-dev@xxxxxxxxxxx>
cc
Subject
Re: [orion-dev] onInputChange: how are file types decided?




Pointer to the "various extension points"?

McQ.

Inactive hide details for Susan Franklin McCourt ---2011/06/10 10:04:26---In the mainstream code, there are various extension pSusan Franklin McCourt ---2011/06/10 10:04:26---In the mainstream code, there are various extension points that control how styling is done, what editor is opened for a filety

From:

Susan Franklin McCourt <susan_franklin@xxxxxxxxxx>

To:

Orion developer discussions <orion-dev@xxxxxxxxxxx>

Cc:

Orion developer discussions <orion-dev@xxxxxxxxxxx>, orion-dev-bounces@xxxxxxxxxxx

Date:

2011/06/10 10:04

Subject:

Re: [orion-dev] onInputChange: how are file types decided?





In the mainstream code, there are various extension points that control how styling is done, what editor is opened for a filetype, etc. etc.
But these examples are trying to show the editor being used independent of all those services and the Orion platform.

Hence the "poor man's" file typing. We specifically don't want to reuse the orion client code for these example (though from previous comments John has made, his use case is a bit different than this one).

susan


Inactive hide details for Mike Wilson ---06/09/2011 10:57:44 AM---Is it platform code, or a pluggable service? Either way, we dMike Wilson ---06/09/2011 10:57:44 AM---Is it platform code, or a pluggable service? Either way, we definitely don't want multiple copies of

From:
Mike Wilson <Mike_Wilson@xxxxxxxxxx>
To:
Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date:
06/09/2011 10:57 AM
Subject:
Re: [orion-dev] onInputChange: how are file types decided?
Sent by:
orion-dev-bounces@xxxxxxxxxxx




Is it platform code, or a pluggable service? Either way, we definitely don't want multiple copies of that code floating around.

McQ.


Inactive hide details for "John J. Barton" ---2011/06/09 11:48:27---I accidentally stumbled on the answer in examples/editor/em"John J. Barton" ---2011/06/09 11:48:27---I accidentally stumbled on the answer in examples/editor/embeddededitor:

From:

"John J. Barton" <johnjbarton@xxxxxxxxxxxxxxx>

To:

Orion developer discussions <orion-dev@xxxxxxxxxxx>

Date:

2011/06/09 11:48

Subject:

Re: [orion-dev] onInputChange: how are file types decided?





I accidentally stumbled on the answer in examples/editor/embeddededitor:

if (fileName) {
            var splits = fileName.split(".");
            var extension = splits.pop().toLowerCase();
            if (splits.length > 0) {
                switch(extension) {
                    case "js":
                        this.styler = new
examples.textview.TextStyler(editorWidget, "js");
                        break;
                    case "java":
                        this.styler = new
examples.textview.TextStyler(editorWidget, "java");
                        break;
                    case "css":
                        this.styler = new
examples.textview.TextStyler(editorWidget, "css");
                        break;
                    case "html":
                        this.styler = new
orion.editor.TextMateStyler(editorWidget, orion.editor.HtmlGrammar.grammar);
                        break;
                }
            }
        }

This should be a platform call so we call get the same answer and don't
dupe code.

jjb
_______________________________________________
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

_______________________________________________
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


GIF image

GIF image


Back to the top