Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] editor in RCP app not working

Correct.  Editors don't open by themselves.  From your 
WorkbenchWindowAdvisor's postWindowOpen method you could call 
getWindowConfigurer().getWindow().getActivePage().openEditor(...), but 
you'll need to pass a dummy input.
Just create a dummy implementation of IEditorInput.  You won't want to 
open things from postWindowOpen() in a real app, but that should get you 
up and running.  The next step would be to write a view, from which your 
editor is opened, with its input coming from the selected object from 
whatever your domain is.  Or at least, that's how things often work.

Nick





Andreas Pakulat <apaku@xxxxxx> 
Sent by: platform-dev-bounces@xxxxxxxxxxx
04/28/2005 01:19 PM
Please respond to
"Eclipse platform general developers list."


To
platform-dev@xxxxxxxxxxx
cc

Subject
Re: [platform-dev] editor in RCP app not working






On 28.Apr 2005 - 11:41:49, Nick Edgar wrote:
> For this one, you should also indicate how you're trying to open the 
> editor.  Are you explicitly calling IWorkbenchPage.openEditor(...), or 
are 
> you expecting it to show up in one of the navigator views?

I expected the latter - that an instance of the editor is created when
the app is started. I just wanted to have a demo like app, because
currently there is no input for the editor...

I guess I have to create at least some "dummy" input...

Andreas

-- 
You will be audited by the Internal Revenue Service.
_______________________________________________
platform-dev mailing list
platform-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-dev




Back to the top