[brailleblaster] push by cknapp.c...@xxxxxxxxx - Cleaned up code on 2015-02-09 20:18 GMT

  • From: brailleblaster@xxxxxxxxxxxxxx
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Mon, 09 Feb 2015 20:19:03 +0000

Revision: b8e0cf9cee68
Branch:   searchDialogTest
Author:   Corey Knapp <cknapp.code@xxxxxxxxx>
Date:     Mon Feb  9 20:13:39 2015 UTC
Log:      Cleaned up code
https://code.google.com/p/brailleblaster/source/detail?r=b8e0cf9cee68

Modified:
 /src/main/org/brailleblaster/search/SearchDialog.java

=======================================
--- /src/main/org/brailleblaster/search/SearchDialog.java Mon Feb 9 19:52:37 2015 UTC +++ /src/main/org/brailleblaster/search/SearchDialog.java Mon Feb 9 20:13:39 2015 UTC
@@ -150,26 +150,22 @@

                Button forwardRadioBtn = new Button(grpDirection, SWT.RADIO);
                forwardRadioBtn.setSelection(true);
- //forwardRadioBtn.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
                forwardRadioBtn.addSelectionListener(new SelectionAdapter() {
                        @Override
                        public void widgetSelected(SelectionEvent e) {
                                searchDirection = SCH_FORWARD;
                        }
                });
-               //forwardRadioBtn.setBounds(10, 21, 90, 16);
                // formToolkit.adapt(btnRadioButton, true, true);
                forwardRadioBtn.setText("Forward");

                Button backwardRadioBtn = new Button(grpDirection, SWT.RADIO);
- //backwardRadioBtn.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
                backwardRadioBtn.addSelectionListener(new SelectionAdapter() {
                        @Override
                        public void widgetSelected(SelectionEvent e) {
                                searchDirection = SCH_BACKWARD;
                        }
                });
-               //backwardRadioBtn.setBounds(10, 43, 90, 16);
                // formToolkit.adapt(btnRadioButton_1, true, true);
                backwardRadioBtn.setText("Backward");

@@ -183,8 +179,6 @@

                Button allRadioBtn = new Button(grpScope, SWT.RADIO);
                allRadioBtn.setSelection(true);
- //allRadioBtn.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
-               //allRadioBtn.setBounds(10, 20, 90, 16);
                // formToolkit.adapt(btnRadioButton_2, true, true);
                allRadioBtn.setText("All");
                allRadioBtn.addSelectionListener(new SelectionAdapter() {
@@ -196,10 +190,8 @@
                allRadioBtn.setEnabled(false);

                Button selectedLinesBtn = new Button(grpScope, SWT.RADIO);
-               //selectedLinesBtn.setBounds(10, 43, 90, 16);
                // formToolkit.adapt(btnSelectedLines, true, true);
                selectedLinesBtn.setText("Selected Lines");
- //selectedLinesBtn.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
                selectedLinesBtn.addSelectionListener(new SelectionAdapter() {
                        @Override
                        public void widgetSelected(SelectionEvent e) {
@@ -217,7 +209,6 @@
                // formToolkit.paintBordersFor(grpOptions);

                Button caseSensitiveCheck = new Button(grpOptions, SWT.CHECK);
-               //caseSensitiveCheck.setBounds(10, 21, 91, 16);
                // formToolkit.adapt(btnCaseSensitive, true, true);
                caseSensitiveCheck.setText("Case sensitive");
caseSensitiveCheck.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
@@ -234,7 +225,6 @@
                });

                Button wholeWordCheck = new Button(grpOptions, SWT.CHECK);
-               //wholeWordCheck.setBounds(10, 43, 91, 16);
                // formToolkit.adapt(btnWholeWord, true, true);
                wholeWordCheck.setText("Whole word");
wholeWordCheck.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
@@ -250,14 +240,12 @@
                });

                Button regExpressionsCheck = new Button(grpOptions, SWT.CHECK);
-               //regExpressionsCheck.setBounds(10, 65, 124, 16);
regExpressionsCheck.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
                // formToolkit.adapt(btnRegularExpressions, true, true);
                regExpressionsCheck.setText("Regular expressions");
                regExpressionsCheck.setEnabled(false);

                Button wrapSearchCheck = new Button(grpOptions, SWT.CHECK);
-               //wrapSearchCheck.setBounds(107, 21, 91, 16);
wrapSearchCheck.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
                // formToolkit.adapt(btnWrapSearch, true, true);
                wrapSearchCheck.setText("Wrap search");
@@ -273,7 +261,6 @@
                });

                Button incrementalCheck = new Button(grpOptions, SWT.CHECK);
-               //incrementalCheck.setBounds(107, 43, 91, 16);
incrementalCheck.setLayoutData(new GridData(SWT.LEFT,SWT.BEGINNING, false, false, 1, 1));
                // formToolkit.adapt(btnIncremental, true, true);
                incrementalCheck.setText("Incremental");
@@ -441,10 +428,6 @@
                        } // widgetSelected()

                }); // closeBtn.addSelectionListener...
-               shlFindreplace.layout(true, true);
- Point newSize2 = shlFindreplace.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
-               System.out.println(newSize2.x + ", " + newSize2.y);
- shlFindreplace.setSize(shlFindreplace.computeSize(SWT.DEFAULT, SWT.DEFAULT, true));
                shlFindreplace.pack(true);
        } // createContents()


Other related posts:

  • » [brailleblaster] push by cknapp.c...@xxxxxxxxx - Cleaned up code on 2015-02-09 20:18 GMT - brailleblaster