Community
Participate
Working Groups
The javadoc for #openDialogBox() does not say how to indicate that the dialog box was canceled. The de-facto behaviour is that if null is returned, it is considered as "cancel".
I assume you mean the method declaration in class DialogCellEditor?
yes
Clarified the spec for openDialog as follows: /** * Opens a dialog box under the given parent control and returns the * dialog's value when it closes, or <code>null</code> if the dialog * was cancelled or no selection was made in the dialog. * <p> * This framework method must be implemented by concrete subclasses. * It is called when the user has pressed the button and the dialog * box must pop up. * </p> * * @param cellEditorWindow the parent control cell editor's window * so that a subclass can adjust the dialog box accordingly * @return the selected value, or <code>null</code> if the dialog was * cancelled or no selection was made in the dialog */ I'm viewing this as a spec clarification, not a breaking API change, since callers would have already had to handle null.