[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: HowTo: Editor --> Perspective

Paul Webster wrote:
Daniel wrote:


Hi !!

Im new to working with RCP i was wondering
how can i add an Editor to a Perspective
i have been able to do all other steps
like create single perspectives, views /etc
but the editor are giving me troubles
everytime i try to do this i get a NullPointer Exception


My first guess is that the editorArea is associated with the perspective, but editors themselves aren't. You can't place editors when creating your perspective the way you can place views.

You can open editor programmatically from IWorkbenchPage#openEditor(...)

Later,
PW
Thanks that starts to give me an idea of what im doing wrong ....

But what must i do to call an editor from a menu, if said editor is extended from the class org.eclipse.ui.part.EditorPart ??¿¿???

att,

Daniel Quintero