How to get IEditorPart ID from IContentType? [message #335759] |
Tue, 28 April 2009 10:12  |
Eclipse User |
|
|
|
Hi,
I look for a mean from a IContentType or directly the filename get possible IEditorPart ID.
How do eclipse do to display a list of possible editors in "Open With" menu?
I want that because I want to do a GMF editor containing Node representing File, some are readable by eclipse editors, some other not.
When user right click on a Node, He can open corresponding File with "Open" or "Open With" like in Navigator view.
Thanks.
|
|
|
Re: How to get IEditorPart ID from IContentType? [message #335762 is a reply to message #335759] |
Tue, 28 April 2009 11:44  |
Eclipse User |
|
|
|
Esteban DUGUEPEROUX a écrit :
> Hi,
>
> I look for a mean from a IContentType or directly the filename get
> possible IEditorPart ID.
> How do eclipse do to display a list of possible editors in "Open With"
> menu?
>
> I want that because I want to do a GMF editor containing Node
> representing File, some are readable by eclipse editors, some other not.
> When user right click on a Node, He can open corresponding File with
> "Open" or "Open With" like in Navigator view.
>
> Thanks.
maybe
org.eclipse.ui.ide.IDE.getDefaultEditor(IFile file) ?
|
|
|
Powered by
FUDForum. Page generated in 0.03633 seconds