Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 425056

Summary: Document regions
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: elijahe, grant_gayed, Michael_Rennie, Silenio_Quarti
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2014-01-07 18:59:41 EST
There are various cases where we want the ability to recognize a region of a content type embedded inside a larger document that has a different content type. For example, <script> tags define a region of application/javascript content inside an HTML document, <?php ?> tags define a region of text/x-php within an HTML document, and so on.

This is an initial bug for tracking regions. I will open additional bugs for exposing region info to editor services (which is the larger purpose of this work).
Comment 1 Grant Gayed CLA 2014-01-09 17:20:32 EST
I've pushed an initial implementation for those interested to try out and give feedback on, commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=98ef29a02604091c444383cae7dd2d534c28a3cc .

The API is EditorView.getStyleAccessor().getStyles(offset), which returns an array of style objects from general-to-specific.
Comment 2 John Arthorne CLA 2015-05-05 14:43:48 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html