}
public void createControl(Composite parent) {
- System.out.println("page create control");
+ if (DEBUG) {
+ System.out.println("page create control");
+ }
Composite container = new Composite(parent, SWT.NULL);
GridLayout layout = new GridLayout();
container.setLayout(layout);
int layoutColumns = 4;
layout.numColumns = layoutColumns;
- if (row == null) {
- System.out.println("Row is null");
- }
- if (row.getColumnNames() == null) {
- System.out.println("Columns are null");
- }
- if (row.getTableData() == null) {
- System.out.println("Data is null");
+ if (DEBUG) {
+ if (row == null) {
+ System.out.println("Row is null");
+ }
+ if (row.getColumnNames() == null) {
+ System.out.println("Columns are null");
+ }
+ if (row.getTableData() == null) {
+ System.out.println("Data is null");
+ }
}
columnNames = row.getColumnNames();
String[] data = row.getTableData();
- for (int i = 0; i < row.getColumnCount(); i++) {
- System.out.println("data = " + i + "=" + data[i]);
- System.out.println("column = " + i + "=" + columnNames[i]);
+ if (DEBUG) {
+ for (int i = 0; i < row.getColumnCount(); i++) {
+ System.out.println("data = " + i + "=" + data[i]);
+ System.out.println("column = " + i + "=" + columnNames[i]);
+ }
}
oldValues = new Text[row.getColumnCount()];
// newValues = new Text[row.getColumnCount()];
}
public void updateQuery() {
- System.out.println("PHP SELECT");
+ if (DEBUG) {
+ System.out.println("PHP SELECT");
+ }
StringBuffer setClause = new StringBuffer();
StringBuffer whereClause = new StringBuffer();
String temp;
whereClause.append(columnNames[i]);
whereClause.append(" = ");
temp = oldValues[i].getText();
-// if (temp.charAt(0) == '$') {
-// whereClause.append(temp);
-// } else {
- whereClause.append("'"+temp+"'");
-// }
-
+ // if (temp.charAt(0) == '$') {
+ // whereClause.append(temp);
+ // } else {
+ whereClause.append("'" + temp + "'");
+ // }
}
if (setValues[i].getSelection()) {