Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to get IEditorPart ID from IContentType?
How to get IEditorPart ID from IContentType? [message #335759] Tue, 28 April 2009 10:12 Go to next message
Esteban Dugueperoux is currently offline Esteban Dugueperoux
Messages: 322
Registered: July 2009
Senior Member
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 Go to previous message
Romain Dervaux is currently offline Romain Dervaux
Messages: 40
Registered: July 2009
Member
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) ?
Previous Topic:Missing Required Bundle org.eclipse.wst.common.modulecore_0.0.0
Next Topic:How to switch off automatic perspective switching?
Goto Forum:
  


Current Time: Thu Oct 23 03:10:22 GMT 2014

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

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