Fix bug [ 1814848 ] Showing wrong number of workflows after processed

This commit is contained in:
Carlos Ruiz 2007-10-17 06:24:00 +00:00
parent 9104552770
commit 73814632f3
2 changed files with 14 additions and 4 deletions

View File

@ -651,6 +651,14 @@ public final class AMenu extends CFrame
} // updateInfo } // updateInfo
/**
* Update Activities Label
*/
public void updateActivities(int act_length)
{
centerPane.setTitleAt(m_tabActivities, Msg.getMsg (m_ctx, "WorkflowActivities") + ": " + act_length);
} // updateInfo
/************************************************************************* /*************************************************************************
* Start Workflow Activity * Start Workflow Activity
* @param AD_Workflow_ID id * @param AD_Workflow_ID id
@ -669,6 +677,7 @@ public final class AMenu extends CFrame
*/ */
public void stateChanged (ChangeEvent e) public void stateChanged (ChangeEvent e)
{ {
updateInfo();
// show activities // show activities
if (centerPane.getSelectedIndex() == m_tabActivities) if (centerPane.getSelectedIndex() == m_tabActivities)
wfActivity.display(); wfActivity.display();

View File

@ -374,6 +374,7 @@ public class WFActivity extends CPanel
statusBar.setStatusLine(Msg.getMsg(Env.getCtx(), "WFNoActivities")); statusBar.setStatusLine(Msg.getMsg(Env.getCtx(), "WFNoActivities"));
bNext.setEnabled(false); bNext.setEnabled(false);
bPrevious.setEnabled(false); bPrevious.setEnabled(false);
m_menu.updateActivities(0);
return; return;
} }
// Display Activity // Display Activity
@ -427,10 +428,10 @@ public class WFActivity extends CPanel
// //
// globalqss - comment following lines to solve the // globalqss - comment following lines to solve the
// Bug [ 1711626 ] Workflow tab just allow to navigate first two activities // Bug [ 1711626 ] Workflow tab just allow to navigate first two activities
// if (m_menu != null) if (m_menu != null)
// { {
// m_menu.updateInfo(); // calls loadActivities - updates menu tab m_menu.updateActivities(m_activities.length);
// } }
// End // End
if (m_index+1 >= m_activities.length) if (m_index+1 >= m_activities.length)
{ {