Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » View with ISaveablePart
View with ISaveablePart [message #820852] Wed, 14 March 2012 12:53 Go to next message
Eclipse UserFriend
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 10:02 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 00:32:17 EDT 2025

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

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

Back to the top