Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RCP: Passing data to workbench/ Saving workbench data  RSS feed

Michael Imhof
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Passing data to new workbench
I'm developing an RCP application using different workbench windows using

new OpenInNewWindowAction(workbenchWindow).run();

With this call, I get a new workbench window with default content (set
in my WorkbenchWindowAdvisor.preWindowOpen())
But i want to customize the content of this new workbench!!!

How can I send any data to the new workbench???
Is there a construct in the RCP framework??

Saving workbench data
Closing the application and open again is working fine for the number of
windows and the window positions. But if I had Data A in the first workbench
window and Data B in the second workbench window, after restart this data is lost (of course!).

How can I save/restore workbench specific data?

Both problems are solved with eclipse IDE (if your open a new perspective outside of the current perspective and close the application, all the settings are restored when reopened).

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!