Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » HowTo: Editor --> Perspective
HowTo: Editor --> Perspective [message #435719] Mon, 22 August 2005 11:59 Go to next message
Eclipse UserFriend
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

Help would be welcome

att,
Daniel Quintero
Desarollador
Redsis
Re: HowTo: Editor --> Perspective [message #435722 is a reply to message #435719] Mon, 22 August 2005 13:31 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: HowTo: Editor --> Perspective [message #435745 is a reply to message #435722] Mon, 22 August 2005 14:45 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: HowTo: Editor --> Perspective [message #435748 is a reply to message #435745] Mon, 22 August 2005 15:06 Go to previous message
Eclipse UserFriend
Daniel wrote:
>
> 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 ??¿¿???
>

Create an actionSet that contributes to a menu, then check out an
example like org.eclipse.ui.actions.OpenFileAction

Later,
PW
Previous Topic:how to update a view in real-time?
Next Topic:How to achieve specific classloading when deserializing?
Goto Forum:
  


Current Time: Mon Jul 07 15:23:08 EDT 2025

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

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

Back to the top