Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do not restore the perspective

Jack clouseau
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have scenario where the perspective opened before closing the rcp application should not be restored when the application is restarted.

This is required because, we have the login system implemented and depending on the login-user we need to enable the perspective which the login-user is authorized to.

But when user-A login and opens "perspective A" before closing the application, then for user-B "perspective A" is showed by default when user-B login.

I know this is being stored in .metadata folder, but i do not want to clear the metadata folder at runtime (while opening the application)

So while restarting the application, how do i restrict the workbench not to open the last opened perspective?

I have tried overriding the getInitialWindowPerspectiveId() of workbenchadvisor class but no use.

I also tried, deleting the prespective descriptor from the perspective registry but still no use...

any inputs to solve this is much appreciated...
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic