Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Connect editors to perspectives
Connect editors to perspectives [message #449509] Mon, 15 May 2006 11:52 Go to next message
Eclipse UserFriend
Hi,

I'd like to show different sets of editors in
different perspectives in a way that editors
of type A are only visible on perspective A,
while editors of type B are visible on perspective
B and get hidden if the user switches to
perspective A. Is that possible out of the box?

Thanks,
Axel
Re: Connect editors to perspectives [message #449517 is a reply to message #449509] Mon, 15 May 2006 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Perspectives are designed to organize views and editors for specific
tasks, so this is exactly their purpose. One simple, commonly used
solution is to create action sets that are associated with the
perspectives. The action sets are then contributed to the toolbar and
menu bar when the perspective is opened. The actions are used to open the
editor. In my application, I have three perspectives with separate
editors for each.

This process is nicely detailed in McAffer & Lemieux "Eclipse Rich Client
Platform".

Michael Schmidt
Re: Connect editors to perspectives [message #449518 is a reply to message #449517] Mon, 15 May 2006 13:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael,

Michael Schmidt wrote:
> The actions are used to open
> the editor.

Could you elaborate this a little? My editors are already
contributing actionsets to the toolbar/ the main menu. How are
they supposed to show and hide their corresponding editors on
a perspective change?

> This process is nicely detailed in McAffer & Lemieux "Eclipse Rich
> Client Platform".

I'll try to get hold of this book, but it seems a little
pricy just to solve this problem ;)

Regards,
Axel
Re: Connect editors to perspectives [message #449571 is a reply to message #449518] Mon, 15 May 2006 17:03 Go to previous message
Eclipse UserFriend
Axel Schlueter wrote:
> Could you elaborate this a little?

Never mind, I got it working by a perspective
listener who closes and reopens all editors on
(de)activation of a perspective.

Regards,
Axel
Previous Topic:Linking file in project
Next Topic:Error exporting product for multiple platforms
Goto Forum:
  


Current Time: Sun Aug 31 00:11:11 EDT 2025

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

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

Back to the top