Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Perpsective and editors
Perpsective and editors [message #325975] Tue, 04 March 2008 18:29 Go to next message
Eclipse UserFriend
Originally posted by: joelgreg.yahoo.com

Hello gang,

can I open a perspective and have an editor already shown? The method

public void createInitialLayout(IPageLayout layout)

and layout object allows me to add views (as well as the plugin.xml) but
no editor. I can ask the workbench to show the editor area but how can I
add editors to the perspective? I understand that editors are usually
added via an action but what if I want the user to start editing a emtpy
input as soon as he sees the the perspective? Any idea is welcome.

Tks JG
Re: Perpsective and editors [message #325976 is a reply to message #325975] Tue, 04 March 2008 20:33 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Use this to open an editor:

IDE.openEditor(getWorkbenchPage(), <IFile>, true);


Joel Gregoire wrote:
> Hello gang,
>
> can I open a perspective and have an editor already shown? The method
> public void createInitialLayout(IPageLayout layout)
>
> and layout object allows me to add views (as well as the plugin.xml) but
> no editor. I can ask the workbench to show the editor area but how can I
> add editors to the perspective? I understand that editors are usually
> added via an action but what if I want the user to start editing a emtpy
> input as soon as he sees the the perspective? Any idea is welcome.
> Tks JG
>


Previous Topic:Extending Ant View
Next Topic:Code coverage integration with PDE headless automated build and test
Goto Forum:
  


Current Time: Fri Jul 19 12:16:20 GMT 2024

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

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

Back to the top