[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-4935) VPE layout is broken for pages.

Yura Zhishko (JIRA) jira-events at lists.jboss.org
Tue Sep 22 13:29:49 EDT 2009


VPE layout is broken for pages.
-------------------------------

                 Key: JBIDE-4935
                 URL: https://jira.jboss.org/jira/browse/JBIDE-4935
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: Visual Page Editor core
    Affects Versions: 3.1.0.M4
            Reporter: Yura Zhishko
            Assignee: Denis Maliarevich
            Priority: Minor


1) Create JSF 1.2 Kick Start Project in clear workspace
2) Open inputUserName.jsp
ASSERT: Page is opened and split for Visual and Source parts. Both parts fill equal spaces. Source Pane is on top (screenshot-1).
ASSERT FAILED: All space is occupied by Source Pane and Visual pane is minimized and situated on the top (screenshot-2).

Static method CustomSashForm.isSourceEditorFirst() always returns "false", as the method JspEditorPlugin.getDefault().getPreferenceStore()
		.getString(IVpePreferencesPage.VISUAL_SOURCE_EDITORS_SPLITTING) returns "" String, if we hadn't rotate s/v editors before, so the next code:

if (CustomSashForm.isSourceEditorFirst()) {
    sourceContent = new Composite(container, SWT.NONE);
    visualContent = new Composite(container, SWT.NONE);
} else {
    visualContent = new Composite(container, SWT.NONE);
    sourceContent = new Composite(container, SWT.NONE);
}

will put Visual Content on the top. It seems, that we don't set such preferences for clear workspace at all.
3) Maximize Visual pane
4) Make a rotation
ASSERT: Page should be opened with maximized Visual Pane
ASSERT FAILED: Source pane is maximized (screenshot-3).

The root of last failed is shown on screenshot-4.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list