mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-16 20:55:44 +02:00
Get rid of some warnings.
This commit is contained in:
parent
7994b5c333
commit
da81942d76
2 changed files with 9 additions and 9 deletions
|
@ -31,7 +31,7 @@ import org.eclipse.swt.widgets.Shell;
|
||||||
public class VerifyDialog extends TitleAreaDialog {
|
public class VerifyDialog extends TitleAreaDialog {
|
||||||
private int SIZING_WIDTH = 400;
|
private int SIZING_WIDTH = 400;
|
||||||
|
|
||||||
private static int TEST_TYPE;
|
static int TEST_TYPE;
|
||||||
public static final int TEST_SIZING = 0;
|
public static final int TEST_SIZING = 0;
|
||||||
public static final int TEST_FOCUS = 1;
|
public static final int TEST_FOCUS = 1;
|
||||||
public static final int TEST_ACCESS = 2;
|
public static final int TEST_ACCESS = 2;
|
||||||
|
@ -42,7 +42,7 @@ public class VerifyDialog extends TitleAreaDialog {
|
||||||
private Point _testDialogSize;
|
private Point _testDialogSize;
|
||||||
|
|
||||||
private Label _queryLabel;
|
private Label _queryLabel;
|
||||||
private Button _yesButton;
|
Button _yesButton;
|
||||||
private Button _noButton;
|
private Button _noButton;
|
||||||
private Button _checkList[];
|
private Button _checkList[];
|
||||||
private String _failureText;
|
private String _failureText;
|
||||||
|
@ -181,7 +181,7 @@ public class VerifyDialog extends TitleAreaDialog {
|
||||||
* Disables the yes button if any of the items in the checklist
|
* Disables the yes button if any of the items in the checklist
|
||||||
* are unchecked. Enables the yes button otherwise.
|
* are unchecked. Enables the yes button otherwise.
|
||||||
*/
|
*/
|
||||||
private void checkYesEnable() {
|
void checkYesEnable() {
|
||||||
boolean enable = true;
|
boolean enable = true;
|
||||||
for (int i = 0; i < _checkList.length; i++) {
|
for (int i = 0; i < _checkList.length; i++) {
|
||||||
if ( !_checkList[i].getSelection() ) {
|
if ( !_checkList[i].getSelection() ) {
|
||||||
|
@ -193,7 +193,7 @@ public class VerifyDialog extends TitleAreaDialog {
|
||||||
/*
|
/*
|
||||||
* Initializes the checklist, banner texts, and query label
|
* Initializes the checklist, banner texts, and query label
|
||||||
*/
|
*/
|
||||||
private void initializeTest() {
|
void initializeTest() {
|
||||||
IDialogTestPass test = _dialogTests[TEST_TYPE];
|
IDialogTestPass test = _dialogTests[TEST_TYPE];
|
||||||
setTitle( test.title() );
|
setTitle( test.title() );
|
||||||
setMessage( test.description() );
|
setMessage( test.description() );
|
||||||
|
@ -282,7 +282,7 @@ public class VerifyDialog extends TitleAreaDialog {
|
||||||
}
|
}
|
||||||
FailureDialog dialog = new FailureDialog( getShell() );
|
FailureDialog dialog = new FailureDialog( getShell() );
|
||||||
dialog.create();
|
dialog.create();
|
||||||
String temp = text.toString();
|
//String temp = text.toString();
|
||||||
dialog.setText( text.toString() );
|
dialog.setText( text.toString() );
|
||||||
if (dialog.open() == IDialogConstants.OK_ID) {
|
if (dialog.open() == IDialogConstants.OK_ID) {
|
||||||
_failureText = dialog.toString();
|
_failureText = dialog.toString();
|
||||||
|
|
|
@ -31,7 +31,7 @@ import org.eclipse.swt.widgets.Shell;
|
||||||
public class VerifyDialog extends TitleAreaDialog {
|
public class VerifyDialog extends TitleAreaDialog {
|
||||||
private int SIZING_WIDTH = 400;
|
private int SIZING_WIDTH = 400;
|
||||||
|
|
||||||
private static int TEST_TYPE;
|
static int TEST_TYPE;
|
||||||
public static final int TEST_SIZING = 0;
|
public static final int TEST_SIZING = 0;
|
||||||
public static final int TEST_FOCUS = 1;
|
public static final int TEST_FOCUS = 1;
|
||||||
public static final int TEST_ACCESS = 2;
|
public static final int TEST_ACCESS = 2;
|
||||||
|
@ -42,7 +42,7 @@ public class VerifyDialog extends TitleAreaDialog {
|
||||||
private Point _testDialogSize;
|
private Point _testDialogSize;
|
||||||
|
|
||||||
private Label _queryLabel;
|
private Label _queryLabel;
|
||||||
private Button _yesButton;
|
Button _yesButton;
|
||||||
private Button _noButton;
|
private Button _noButton;
|
||||||
private Button _checkList[];
|
private Button _checkList[];
|
||||||
private String _failureText;
|
private String _failureText;
|
||||||
|
@ -181,7 +181,7 @@ public class VerifyDialog extends TitleAreaDialog {
|
||||||
* Disables the yes button if any of the items in the checklist
|
* Disables the yes button if any of the items in the checklist
|
||||||
* are unchecked. Enables the yes button otherwise.
|
* are unchecked. Enables the yes button otherwise.
|
||||||
*/
|
*/
|
||||||
private void checkYesEnable() {
|
void checkYesEnable() {
|
||||||
boolean enable = true;
|
boolean enable = true;
|
||||||
for (int i = 0; i < _checkList.length; i++) {
|
for (int i = 0; i < _checkList.length; i++) {
|
||||||
if ( !_checkList[i].getSelection() ) {
|
if ( !_checkList[i].getSelection() ) {
|
||||||
|
@ -193,7 +193,7 @@ public class VerifyDialog extends TitleAreaDialog {
|
||||||
/*
|
/*
|
||||||
* Initializes the checklist, banner texts, and query label
|
* Initializes the checklist, banner texts, and query label
|
||||||
*/
|
*/
|
||||||
private void initializeTest() {
|
void initializeTest() {
|
||||||
IDialogTestPass test = _dialogTests[TEST_TYPE];
|
IDialogTestPass test = _dialogTests[TEST_TYPE];
|
||||||
setTitle( test.title() );
|
setTitle( test.title() );
|
||||||
setMessage( test.description() );
|
setMessage( test.description() );
|
||||||
|
|
Loading…
Add table
Reference in a new issue