Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » HowTo: Editor --> Perspective
HowTo: Editor --> Perspective [message #435719] Mon, 22 August 2005 15:59 Go to next message
Daniel is currently offline DanielFriend
Messages: 34
Registered: July 2009
Member
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 17:31 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 18:45 Go to previous messageGo to next message
Daniel is currently offline DanielFriend
Messages: 34
Registered: July 2009
Member
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 19:06 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Fri Dec 06 14:21:53 GMT 2024

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

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

Back to the top