The following snippet sets the title for a JFace dialog:
@Override
protected void configureShell(Shell shell) {
super.configureShell(shell);
shell.setText("My Dialog Title");
}
However the following error might occur:
This can be resolved if you change the setting from “error” to “warning” in the Eclipse preferences.