boolean minimized = (!restoring && (state.isMinimized( rundata ) || state2 == WindowState.MINIMIZED));
if (!customized && fusion.getAllowEdit(rundata))// state.allowCustomize(rundata))
{
actions.add( new PortletAction("customize", "Customize") );
}
if (state.allowPrintFriendly(rundata))
{
actions.add( new PortletAction("print", "Print Friendly Format") );
}
if (!helped && fusion.getAllowInfo(rundata))//state.allowInfo(rundata))
{
actions.add( new PortletAction("info", "Information") );
}
if (state.allowClose(rundata))
{
actions.add( new PortletAction("close", "Close") );
}
if (!restoring && (maximized || customized || helped || minimized))
{
actions.add( new PortletAction("restore", "Restore") );
}
if (!minimized && state.allowMinimize( rundata ))
{
actions.add( new PortletAction("minimize", "Minimize") );
}
if (!maximized && state.allowMaximize( rundata ))
{
actions.add( new PortletAction("maximize", "Maximize") );
}
return createActionList(actions, jdata, portlet);
}