mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[251877] Find/Replace dialog incorrectly restores Forward/Backward button states
This commit is contained in:
parent
351ab621de
commit
899c96ac5b
1 changed files with 6 additions and 3 deletions
|
@ -565,10 +565,13 @@ public class FindReplaceDialog extends SelectionDialog
|
||||||
|
|
||||||
fForwardButton = new Button(directionGroup, SWT.RADIO);
|
fForwardButton = new Button(directionGroup, SWT.RADIO);
|
||||||
fForwardButton.setText(Messages.getString("FindReplaceDialog.ButtonForward")); //$NON-NLS-1$
|
fForwardButton.setText(Messages.getString("FindReplaceDialog.ButtonForward")); //$NON-NLS-1$
|
||||||
Button backwardButton = new Button(directionGroup, SWT.RADIO);
|
final Button backwardButton = new Button(directionGroup, SWT.RADIO);
|
||||||
backwardButton.setText(Messages.getString("FindReplaceDialog.ButtonBackward")); //$NON-NLS-1$
|
backwardButton.setText(Messages.getString("FindReplaceDialog.ButtonBackward")); //$NON-NLS-1$
|
||||||
fForwardButton.setSelection(fProperties.getProperty(FindReplaceDialog.SEARCH_FORMAT_FORWARD, "true").equalsIgnoreCase("true"));
|
final boolean isForward = fProperties.getProperty(FindReplaceDialog.SEARCH_FORMAT_FORWARD, "true").equalsIgnoreCase("true");
|
||||||
backwardButton.setSelection(!fForwardButton.getSelection());
|
Display.getDefault().asyncExec(new Runnable() { public void run() {
|
||||||
|
fForwardButton.setSelection(isForward);
|
||||||
|
backwardButton.setSelection(!isForward);
|
||||||
|
}});
|
||||||
|
|
||||||
data = new FormData();
|
data = new FormData();
|
||||||
data.top = new FormAttachment(fReplaceText);
|
data.top = new FormAttachment(fReplaceText);
|
||||||
|
|
Loading…
Add table
Reference in a new issue