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

Trong Tran (JIRA) jira-events at lists.jboss.org
Tue May 25 06:38:55 EDT 2010


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

Trong Tran updated GTNPORTAL-1210:
----------------------------------

     Original Estimate: 4 hours
    Remaining Estimate: 4 hours
                Labels: sprint_34  (was: )
         Fix Version/s: 3.1.0-GA


> 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
>            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