Open-With behaviour [message #1210979] |
Tue, 26 November 2013 07:46 |
aleksandr skeuse 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
|
|
|
Powered by
FUDForum. Page generated in 0.02507 seconds