mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
add params option to showOKOnlyDialogThen
This commit is contained in:
parent
52c2973d8f
commit
3a53abce52
1 changed files with 6 additions and 3 deletions
|
@ -197,7 +197,7 @@ public class DlgDelegate {
|
|||
@Override
|
||||
public void show()
|
||||
{
|
||||
showOKOnlyDialogThen( m_msgString, m_action );
|
||||
showOKOnlyDialogThen( m_msgString, m_action, m_params );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -408,10 +408,13 @@ public class DlgDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
private void showOKOnlyDialogThen( String msg, Action action )
|
||||
private void showOKOnlyDialogThen( String msg, Action action,
|
||||
Object[] params )
|
||||
{
|
||||
// Assert.assertNull( m_dlgStates );
|
||||
DlgState state = new DlgState( DlgID.DIALOG_OKONLY ).setMsg( msg )
|
||||
DlgState state = new DlgState( DlgID.DIALOG_OKONLY )
|
||||
.setMsg( msg )
|
||||
.setParams( params )
|
||||
.setAction(action);
|
||||
addState( state );
|
||||
showDialog( DlgID.DIALOG_OKONLY );
|
||||
|
|
Loading…
Add table
Reference in a new issue