Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Perspective customizations not being respected
Perspective customizations not being respected [message #915740] Mon, 17 September 2012 21:57 Go to next message
Mario Marinato is currently offline Mario MarinatoFriend
Messages: 39
Registered: March 2011
Location: Brazil
Member
On an RCP application we develop, the user can customize the perspectives, choosing which menu and toolbar items should be displayed.

When user goes to Window -> Customize Perspective... -> Tool Bar Visibility and then unchecks a tool bar on the Tool Bar Structure pane and presses OK, the tool bar disappears properly.

But when the application is restarted, the tool bar is back, even though it still appears unchecked on the customization dialog.

I found an ugly workaround for that, which is to perform on startup-time the same actions performed when the user confirms on the customization dialog.

This workaround can be run on two moments:

a) On our ApplicationWorkbenchWindowAdvisor class, method postWindowOpen. On this case, the full tool bar appears and then it gets configured as the user wants. This approach's drawback is that the user sees the change happening.

b) On the same ApplicationWorkbenchWindowAdvisor class, method preWindowOpen, add a PerspectiveListener to configurer.getWindow() and then act on its perspectiveActivated method. This approach prevents user from seeing the change happen.

Does anyone know if there's a better way to do that? I believe we're lacking a configuration step to be made for this feature to work properly.

Our RCP application is based on Eclipse 3.8.


Mário Marinato
From Brazil
Re: Perspective customizations not being respected [message #915785 is a reply to message #915740] Tue, 18 September 2012 00:25 Go to previous messageGo to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

Did you set IWorkbenchConfigurer#setSaveAndRestore(true)?

If you did, 4.2 has same (toolbar visibility) problems.
for instance, reset perspective not restores toolbar visibility till re-launch.
4.2 is almost same with 3.8, So it should be bug.

I heard eclipse ui team suffers serious lack of human resource.
(see http://www.jroller.com/andyl/entry/something_is_really_broken_with)

How sad.
Re: Perspective customizations not being respected [message #916011 is a reply to message #915785] Tue, 18 September 2012 12:00 Go to previous messageGo to next message
Mario Marinato is currently offline Mario MarinatoFriend
Messages: 39
Registered: March 2011
Location: Brazil
Member
Yes, we use setSaveAndRestore, and it's working, because when our RCP is restarted the settings are there when you open the dialog.
They are not read properly.


Mário Marinato
From Brazil
Re: Perspective customizations not being respected [message #916069 is a reply to message #916011] Tue, 18 September 2012 13:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Please file a bug and post the bug-id here (if there does not exist
already one), my guess is that you can expect a fix in 4.3 only unless
you provide a patch to fix it in 3.8.

Tom

Am 18.09.12 14:01, schrieb Mario Marinato:
> Yes, we use setSaveAndRestore, and it's working, because when our RCP is
> restarted the settings are there when you open the dialog.
> They are not read properly.
Re: Perspective customizations not being respected [message #916214 is a reply to message #916069] Tue, 18 September 2012 18:29 Go to previous messageGo to next message
Mario Marinato is currently offline Mario MarinatoFriend
Messages: 39
Registered: March 2011
Location: Brazil
Member
Before filing a bug, I'm trying to discover if we are doing something wrong, because on Eclipse itself this configuration works properly.

Mário Marinato
From Brazil
Re: Perspective customizations not being respected [message #1844326 is a reply to message #916214] Thu, 09 September 2021 09:28 Go to previous message
Samaa Fayed is currently offline Samaa FayedFriend
Messages: 2
Registered: February 2021
Junior Member
Hello, I am facing the same issue, did you find any solution or workaround?
Previous Topic:How to use maven with RCP applications
Next Topic:Eclipse RCP Application not working on MacOS
Goto Forum:
  


Current Time: Wed Nov 06 08:39:09 GMT 2024

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

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

Back to the top