use of teamdash.team.SubteamBalancingMenu in project processdash by dtuma.
the class WBSEditor method buildTeamMenu.
private JMenu buildTeamMenu(String initials, DataTableModel dataModel) {
JMenu result = new JMenu("Team");
result.setMnemonic('T');
if (isMode(MODE_PLAIN))
result.add(new ShowTeamMemberListEditorMenuItem());
TeamMember m = null;
if (initials != null)
m = teamProject.getTeamMemberList().findTeamMember(initials);
if (m != null) {
if (!readOnly) {
WatchCoworkerTimesMenuItem watchMenu = new WatchCoworkerTimesMenuItem(dataModel);
result.add(new OptimizeEditingForIndivMenuItem(m, watchMenu));
result.add(watchMenu);
}
// make nodes visible if they have a data problem and they are
// assigned to this user
ErrorNotesColumn.showNodesWithErrors(teamProject.getWBS(), null, new AssignedToMemberTest(dataModel, m));
}
result.add(new ShowTeamTimePanelMenuItem());
if (showActualData) {
ButtonGroup g = new ButtonGroup();
result.add(new BottomUpShowReplanMenuItem(g));
result.add(new BottomUpShowPlanMenuItem(g));
}
if (isMode(MODE_PLAIN)) {
result.add(new SubteamBalancingMenu(teamProject.getTeamMemberList(), teamTimePanel, dirtyListener, showTeamTimePanelMenuItem, guiPrefs));
result.add(new BottomUpShowBalancedTeamBar());
result.add(new BottomUpShowHoursPerWeekMenuItem());
result.add(new BottomUpIncludeUnassignedMenuItem());
}
return result;
}
Aggregations