Skip to content

Commit

Permalink
Store wizard dialog bounds. (#1283)
Browse files Browse the repository at this point in the history
WizardDialog asks the actual wizard for dialog bounds.

Issue #949
  • Loading branch information
marcushoepfner authored Dec 7, 2023
1 parent a0d191d commit 01ae9f9
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.ControlEnableState;
import org.eclipse.jface.dialogs.DialogSettings;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.dialogs.IPageChangeProvider;
import org.eclipse.jface.dialogs.IPageChangedListener;
Expand Down Expand Up @@ -1566,4 +1568,14 @@ public void run() {
});
}
}

@Override
protected IDialogSettings getDialogBoundsSettings() {
String name = getClass().getSimpleName() + ".dialogBounds"; //$NON-NLS-1$
IDialogSettings dialogSettings = getWizard().getDialogSettings();
if (dialogSettings == null) {
return null;
}
return DialogSettings.getOrCreateSection(dialogSettings, name);
}
}

0 comments on commit 01ae9f9

Please sign in to comment.