Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orion » How can I associate the editors with file or content types?
How can I associate the editors with file or content types? [message #899639] Wed, 01 August 2012 16:04 Go to next message
Udo Hafermann is currently offline Udo HafermannFriend
Messages: 3
Registered: July 2009
Junior Member
I would like to use the Orion editors with (existing) files that have other extensions than the default ones. Where is the mapping configured?
Re: How can I associate the editors with file or content types? [message #899679 is a reply to message #899639] Wed, 01 August 2012 19:03 Go to previous message
Mark Macdonald is currently offline Mark MacdonaldFriend
Messages: 22
Registered: July 2009
Junior Member
Hi,

The mapping of file-to-editor is handled by 2 services, so associating a new file type with the Orion Editor is a 2-step process:

  1. Contribute a content type ID for the file type using the orion.core.contenttype service. (example)
  2. Associate your new content type with the Orion Editor using the orion.file.openWith service. (example)

Previous Topic:EclipseCon slides
Next Topic:Embedded in the Eclipse IDE Editor What should I do?
Goto Forum:
  


Current Time: Fri Nov 28 16:05:25 GMT 2014

Powered by FUDForum. Page generated in 0.01598 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software