Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Open-With behaviour(Change default editor)
Open-With behaviour [message #1210979] Tue, 26 November 2013 07:46
aleksandr skeuse is currently offline aleksandr skeuseFriend
Messages: 6
Registered: April 2012
Junior Member
Hi all,

in a RCP application the default behaviour to open a file with unknown content (PDF for example) is to open it with the default editor, the inplace editor in my case.

I want to change these behaviour so that the system editor is used for unknown content files (as with 'Open-With/System editor') but can't find a way to do it.

I tried something like
IEditorRegistry editorRegistry = PlatformUI.getWorkbench().getEditorRegistry();
editorRegistry.setDefaultEditor("pdf", IEditorRegistry.SYSTEM_EXTERNAL_EDITOR_ID);

but it doesn't work maybe because pdf is unknown content.

Could you please help me out with it / give me a direction, a idea?

thanks,
aleks
Previous Topic:Retrieving content from Part, created with a PartDescriptor?
Next Topic:Design/Architectual question perspective | views
Goto Forum:
  


Current Time: Thu Apr 25 19:40:00 GMT 2024

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

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

Back to the top