Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » List of all Available Editors
List of all Available Editors [message #494341] Fri, 30 October 2009 11:01 Go to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Hello,

How can I get a List of all available editors?
I want to create a editor choosing dialog.

Thanks!
Re: List of all Available Editors [message #494499 is a reply to message #494341] Fri, 30 October 2009 21:51 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Fri, 30 Oct 2009 07:01:01 -0400, jko wrote:
> How can I get a List of all available editors? I want to create a editor
> choosing dialog.

IWorkbenchPage has API to retrieve the list of editors.

Regards,
Remy
Re: List of all Available Editors [message #494755 is a reply to message #494499] Mon, 02 November 2009 14:24 Go to previous messageGo to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Hm, I tried
IEditorReference[] references = page.findEditors(input, null, IWorkbenchPage.MATCH_INPUT);

Unfortunately the returned list is always empty. I'm using the EditorInput passed on many other places, so I do not believe my input is wrong. When debugging into the method getEditorReferences() returns the empty list. This method calls getEditors from EditorAreaHelper, which calls EditorSashContainer#getEditorWorkbooks(). This method returns one EditorStack object with the id 'DefaultEditorWorkbook'. Its children list is empty.

Am I using proper API?

Jan
Re: List of all Available Editors [message #494809 is a reply to message #494341] Mon, 02 November 2009 17:23 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
jko@swisslab.de wrote:
> Hello,
>
> How can I get a List of all available editors?
See PlatformUI.getWorkbench().getEditorRegistry()

Dani
> I want to create a editor choosing dialog.
>
> Thanks!
Previous Topic:SWT ColorDialog : how to open full dialog
Next Topic:Platform hangs on adding dependency to plugin project - 1 files [1/2]
Goto Forum:
  


Current Time: Tue Mar 19 06:18:20 GMT 2024

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

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

Back to the top