Skip to main content


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 DugueperouxFriend
Messages: 472
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 DervauxFriend
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 Apr 25 16:25:34 GMT 2024

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

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

Back to the top