[jbosstools-issues] [JBoss JIRA] (JBIDE-22628) Zoom in / out functionality is not working with Visual Page Editor

Ilya Buziuk (JIRA) issues at jboss.org
Sat Jun 25 15:50:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-22628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257084#comment-13257084 ] 

Ilya Buziuk commented on JBIDE-22628:
-------------------------------------

[~scabanovich], if it is overriden the following way, zoom in / out functionality is working fine and all tests in jst & vpe are passing:
{code}
	@Override
	public Object getSelectedPage() {
		return  sourceEditor != null ? sourceEditor : super.getSelectedPage(); 
	}
{code}
Without overriding it, getSelected page returns either *VpeEditorPartFactory* (jsf) or *VpvEditorPart* (html)
However, I think that checking for suitable adapter, rather than returning null,  can not do any harm and is  rather reasonable for some editors which  can not always provide *AbstractTextEditor* from *getSelectedPage()*. WDYT ?

> Zoom in / out functionality is not working with Visual Page Editor  
> --------------------------------------------------------------------
>
>                 Key: JBIDE-22628
>                 URL: https://issues.jboss.org/browse/JBIDE-22628
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: visual-page-editor-core
>    Affects Versions: 4.4.0.Alpha2
>            Reporter: Ilya Buziuk
>            Assignee: Ilya Buziuk
>              Labels: upstream
>             Fix For: 4.4.x
>
>
> New zoom in / out functionality (Cntl + / -) which is available in Neon is not working in Visual Page Editor.  The interesting thing, that if you do Zoom in / out  in the html editor which supports this functionality and reopen file again in the Visual Editor the new scale will be adjusted



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list