Mercurial > projects > dwt-addons
diff dwtx/jface/viewers/ColorCellEditor.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | b6c35faf97c8 |
children | 7ffeace6c47f |
line wrap: on
line diff
--- a/dwtx/jface/viewers/ColorCellEditor.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/viewers/ColorCellEditor.d Fri Apr 11 01:24:25 2008 +0200 @@ -79,7 +79,7 @@ * Internal class for laying out this cell editor. */ private class ColorCellLayout : Layout { - public Point computeSize(Composite editor, int wHint, int hHint, + public override Point computeSize(Composite editor, int wHint, int hHint, bool force) { if (wHint !is DWT.DEFAULT && hHint !is DWT.DEFAULT) { return new Point(wHint, hHint); @@ -92,7 +92,7 @@ colorSize.y, rgbSize.y)); } - public void layout(Composite editor, bool force) { + public override void layout(Composite editor, bool force) { Rectangle bounds = editor.getClientArea(); Point colorSize = colorLabel.computeSize(DWT.DEFAULT, DWT.DEFAULT, force); @@ -191,7 +191,7 @@ /* (non-Javadoc) * Method declared on DialogCellEditor. */ - protected Control createContents(Composite cell) { + protected override Control createContents(Composite cell) { Color bg = cell.getBackground(); composite = new Composite(cell, getStyle()); composite.setBackground(bg); @@ -207,7 +207,7 @@ /* (non-Javadoc) * Method declared on CellEditor. */ - public void dispose() { + public override void dispose() { if (image !is null) { image.dispose(); image = null; @@ -218,7 +218,7 @@ /* (non-Javadoc) * Method declared on DialogCellEditor. */ - protected Object openDialogBox(Control cellEditorWindow) { + protected override Object openDialogBox(Control cellEditorWindow) { ColorDialog dialog = new ColorDialog(cellEditorWindow.getShell()); Object value = getValue(); if (value !is null) { @@ -231,7 +231,7 @@ /* (non-Javadoc) * Method declared on DialogCellEditor. */ - protected void updateContents(Object value) { + protected override void updateContents(Object value) { RGB rgb = cast(RGB) value; // XXX: We don't have a value the first time this method is called". if (rgb is null) {