save and restore editor state zoom position [message #775821] |
Fri, 06 January 2012 18:22 |
sk sk Messages: 1 Registered: January 2012 |
Junior Member |
|
|
My editor has zoom in and zoom out option(device image) for editor part view, i
just want to save "editor state" while
closing editor and reopen with saved state information(Zoomed information).
Saving the state of the GUI Part in following actions
1.just open and close an editor part
2.Workbench state -currently we saved default information(100% unzoomed part) while close and
opening workbench state.
Additionally we want to "save the zoomed state in workbench close and open" .
In left side navigator we have some list which opens editors. Editor
part(device image) we have zoom position 125 to 400 % . While closing editor
zoom percentage is 200 , I need to save this zoom position for this part under
particular list id . While opening the same list id ,it display with last zoom
position.
public class name extends ViewPart
{
public void init(final IViewSite site) throws PartInitException
{
public void partOpened(IWorkbenchPartReference ref) {//do some stuff}
public void partclosed(IWorkbenchPartReference ref) {//do some stuff}
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.07252 seconds