Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Bind the editor to a specific filename without an extension
Bind the editor to a specific filename without an extension [message #628017] Thu, 23 September 2010 04:41 Go to next message
Eclipse UserFriend
Hello,

Is it possible to bind a editor in RCP to a specific filename without an extension.

I know there is some content type association, but do not have a clear picture as to how it works ?

Could anyone please share some information/snippet regarding this ?

Thanks,
Murthy
Re: Bind the editor to a specific filename without an extension [message #628640 is a reply to message #628017] Thu, 23 September 2010 09:56 Go to previous messageGo to next message
Eclipse UserFriend
I think you have to define a matchingStrategy for your editor. Go into your editor extension point in the plugin.xml and click on the matchingStrategy link to create a new class that implements IEditorMatchingStrategy.

This Interface has one method called match(IEditorReference, IEditorInput) which returns true or false based on your algorithm.
Re: Bind the editor to a specific filename without an extension [message #629461 is a reply to message #628640] Tue, 28 September 2010 07:46 Go to previous message
Eclipse UserFriend
Thanks for the suggestion.... I got it working using a content type and the filename property of the editor
Previous Topic:Standalone view placeholder - improper layout?
Next Topic:Issue with Coolbar packing?
Goto Forum:
  


Current Time: Tue Jul 01 06:52:43 EDT 2025

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

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

Back to the top