Skip to content

Commit

Permalink
fixup! fix: Reload and update schemas - saves the last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelaepure10 committed Jun 14, 2024
1 parent c80f621 commit bf31b84
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,11 @@ private boolean changeCheck() {

@Override
public void run() {
MessageBox mb = new MessageBox(display.getActiveShell(),
Shell shell = display.getActiveShell();
if (shell == null) {
shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
}
MessageBox mb = new MessageBox(shell,
SWT.YES | SWT.NO | SWT.CANCEL | SWT.ICON_QUESTION);
mb.setMessage("Save changes to the current project?"); //$NON-NLS-1$
mb.setText("Unsaved changes"); //$NON-NLS-1$
Expand Down

0 comments on commit bf31b84

Please sign in to comment.