Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View with ISaveablePart
View with ISaveablePart [message #820852] Wed, 14 March 2012 16:53 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
Hi,

Can i use ISaveablePart with ViewPart? I have tried that but save action does not get enabled... any idea?

if ViewPart can not be used with ISaveablePart then how to add editor to perspective... i donot want editor to be attached with File.

Cheers,

Re: View with ISaveablePart [message #845879 is a reply to message #820852] Sun, 15 April 2012 14:02 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi,

Yes that works. Please call

firePropertyChange(PROP_DIRTY);

and reply with "true" in the isdirty method if your view has contents to be
saved. This will enable the save buttons. It works exactly the same as in
editors. They implement isaveablepart as well.

> if ViewPart can not be used with ISaveablePart then how to add editor to
perspective... i donot want editor to be attached with File.

You just open an editor and it gets displayed. To open an editor
programmatically, call openEditor on the page.

to get the page: platformui.getworkbench.getactiveworkbenchwindow....
etcetera
to get the page from a view: getsite.getpage

Regards,

Wim

> Hi,
>
> Can i use ISaveablePart with ViewPart? I have tried that but save action
does not get enabled... any idea?
>
> if ViewPart can not be used with ISaveablePart then how to add editor to
perspective... i donot want editor to be attached with File.
>
> Cheers,
Previous Topic:Updating only visible rows
Next Topic:Default entry point does not exist
Goto Forum:
  


Current Time: Sat Apr 27 04:42:24 GMT 2024

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

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

Back to the top