[gatein-issues] [JBoss JIRA] Updated: (GTNPORTAL-1210) Portal mode transition in UIPortalComposer should not be hardcoded

Minh Hoang TO (JIRA) jira-events at lists.jboss.org
Wed May 26 00:06:54 EDT 2010


     [ https://jira.jboss.org/browse/GTNPORTAL-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Minh Hoang TO updated GTNPORTAL-1210:
-------------------------------------

    Assignee: Minh Hoang TO


> Portal mode transition in UIPortalComposer should not be hardcoded
> ------------------------------------------------------------------
>
>                 Key: GTNPORTAL-1210
>                 URL: https://jira.jboss.org/browse/GTNPORTAL-1210
>             Project: GateIn Portal
>          Issue Type: Task
>            Reporter: Minh Hoang TO
>            Assignee: Minh Hoang TO
>            Priority: Minor
>             Fix For: 3.1.0-GA
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
>           / Swicth to Porlets Tab
>             if (portalMode % 2 == 0)
>             {
>                uiPortalApp.setModeState(UIPortalApplication.APP_VIEW_EDIT_MODE);
>                Util.showComponentEditInViewMode(UIPortlet.class);
>             }
> I'm talking about portal mode transition in UIPortalComposer. There should not be hardcoded check like  portalMode % 2 == 0 .  A switch/case on portalMode is better as it makes the code easier to understand and easier to refactor.

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

        


More information about the gatein-issues mailing list