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,