Fixed comments; indents
diff --git a/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/Day.java b/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/Day.java
index 6cab7c3..4df5b8b 100644
--- a/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/Day.java
+++ b/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/Day.java
@@ -58,15 +58,15 @@
addPaintListener(paintListener);
addDisposeListener(disposeListener);
- Display display = Display.getCurrent();
+ Display display = Display.getCurrent();
- WHITE = display.getSystemColor(SWT.COLOR_WHITE);
- BLACK = display.getSystemColor(SWT.COLOR_BLACK);
+ WHITE = display.getSystemColor(SWT.COLOR_WHITE);
+ BLACK = display.getSystemColor(SWT.COLOR_BLACK);
- // Bluish color scheme by default; change as necessary.
- CELL_BACKGROUND = new Color(display, 250, 250, 255);
- CELL_BORDER_EMPHASIZED = new Color(display, 100, 100, 255);
- CELL_BORDER_LIGHT = new Color(display, 200, 200, 255);
+ // Bluish color scheme by default; change as necessary.
+ CELL_BACKGROUND = new Color(display, 250, 250, 255);
+ CELL_BORDER_EMPHASIZED = new Color(display, 100, 100, 255);
+ CELL_BORDER_LIGHT = new Color(display, 200, 200, 255);
setBackground(CELL_BACKGROUND);
}
@@ -81,10 +81,10 @@
removePaintListener(paintListener);
removeDisposeListener(disposeListener);
- // Dispose colors here
- CELL_BACKGROUND.dispose();
- CELL_BORDER_EMPHASIZED.dispose();
- CELL_BORDER_LIGHT.dispose();
+ // Dispose colors here
+ CELL_BACKGROUND.dispose();
+ CELL_BORDER_EMPHASIZED.dispose();
+ CELL_BORDER_LIGHT.dispose();
}
};
diff --git a/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/DayEditor.java b/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/DayEditor.java
index 1b96941..cbdd52b 100644
--- a/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/DayEditor.java
+++ b/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/DayEditor.java
@@ -12,9 +12,21 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
+/**
+ * A DayEditor is an SWT control that can display events on a time line that can
+ * span one or more days.
+ *
+ * @since 3.2
+ */
public class DayEditor extends Composite {
private CompositeTable compositeTable = null;
+ /**
+ * Constructor DayEditor
+ *
+ * @param parent
+ * @param style
+ */
public DayEditor(Composite parent, int style) {
super(parent, style);
this.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
diff --git a/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/DayEditorTest.java b/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/DayEditorTest.java
index dffda48..06fc0ea 100644
--- a/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/DayEditorTest.java
+++ b/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/compositetable/day/DayEditorTest.java
@@ -5,6 +5,10 @@
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
+/**
+ * @since 3.2
+ *
+ */
public class DayEditorTest {
private Shell sShell = null; // @jve:decl-index=0:visual-constraint="10,10"
@@ -16,7 +20,7 @@
*/
private void createDayEditor() {
dayEditor = new DayEditor(sShell, SWT.NONE);
- dayEditor.setTimeBreakdown(7, 4);
+ dayEditor.setTimeBreakdown(7, 2);
}
/**