Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Feasibility of swapping/swtiching between views when an event occurs(Feasibility of swapping/switching between views when an event occurs)
Feasibility of swapping/swtiching between views when an event occurs [message #1817416] Thu, 21 November 2019 20:12 Go to next message
feekay ped is currently offline feekay pedFriend
Messages: 1
Registered: November 2019
Junior Member
Hello,

I am new to RCP and would like to know if it's feasible to swap/switch between the views when an event occurs?

Example: I have 2 views (view A and view B) defined in a perspective. The default layout of the perspective only displays view A. Is it possible to open view B when an event occurs in view A. When opening view B it should hide view A. This behavior is similar to switching tabs, however there should be only one tab for both views. Do not want to manually switch between the views.

Is this possible? Any help will be very appreciated.

Thanks for your time.
Re: Feasibility of swapping/swtiching between views when an event occurs [message #1817724 is a reply to message #1817416] Thu, 28 November 2019 09:27 Go to previous message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 179
Registered: April 2012
Senior Member
You can programmatically open and close views, see the IWorkbenchPage#showView and IWorkbenchPage#hideView methods

Check out the following post:
https://stackoverflow.com/questions/171824/programmatically-showing-a-view-from-an-eclipse-plug-in
Previous Topic:Strange Menu Drawing Behavior With Exported RCP
Next Topic:Eclipse Plugin - Custom Builder
Goto Forum:
  


Current Time: Thu Oct 22 15:45:49 GMT 2020

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

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

Back to the top