Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
etudiants:2014:bertrand:scrumtool6 [2014/06/03 00:40] – jordi | etudiants:2014:bertrand:scrumtool6 [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 23: | Ligne 23: | ||
=== 3.1 CeditCollaboratorsProduct - Add collaborator=== | === 3.1 CeditCollaboratorsProduct - Add collaborator=== | ||
- | <sxh php; | + | <sxh php; |
view.getBtnEditCollaborator().addSelectionListener(new SelectionListener() { | view.getBtnEditCollaborator().addSelectionListener(new SelectionListener() { | ||
Ligne 51: | Ligne 51: | ||
=== 3.2 CeditCollaboratorsProduct - Remove collaborator === | === 3.2 CeditCollaboratorsProduct - Remove collaborator === | ||
- | <sxh php; | + | <sxh php; |
view.getBtnEditCollaborator().addSelectionListener(new SelectionListener() { | view.getBtnEditCollaborator().addSelectionListener(new SelectionListener() { | ||
Ligne 75: | Ligne 75: | ||
} | } | ||
}); | }); | ||
+ | </ | ||
+ | |||
+ | === 3.3 - CeditCollaboratorsProduct - Edit role === | ||
+ | |||
+ | <sxh php; | ||
+ | view.getBtnSaveEditRole().addSelectionListener(new SelectionListener() { | ||
+ | |||
+ | @Override | ||
+ | public void widgetSelected(SelectionEvent arg0) { | ||
+ | |||
+ | PlayroleId id = new PlayroleId(playroleActif.getCollaborator().getId(), | ||
+ | Playrole pl = new Playrole(id, | ||
+ | |||
+ | DAO.delPlayrole(playroleActif); | ||
+ | DAO.addPlayrole(pl); | ||
+ | |||
+ | view.getSashForm_1().setWeights(new int[] { 1, 0 }); | ||
+ | view.getBtnEditRole().setEnabled(false); | ||
+ | view.getBtnEditCollaborator().setEnabled(false); | ||
+ | view.getTableViewerRemoveCollaborator().remove(playroleActif); | ||
+ | view.getTableViewerRemoveCollaborator().add(pl); | ||
+ | |||
+ | Utils.MsgBox(view.getShell(), | ||
+ | } | ||
+ | }); | ||
</ | </ |