Mercurial > projects > dwt-addons
diff dwtx/jface/viewers/CheckboxCellEditor.d @ 70:46a6e0e6ccd4
Merge with d-fied sources of 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 01:36:46 +0200 |
parents | ea8ff534f622 |
children | 7ffeace6c47f |
line wrap: on
line diff
--- a/dwtx/jface/viewers/CheckboxCellEditor.d Mon May 19 13:41:06 2008 +0200 +++ b/dwtx/jface/viewers/CheckboxCellEditor.d Thu May 22 01:36:46 2008 +0200 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -103,12 +103,12 @@ /** * The <code>CheckboxCellEditor</code> implementation of * this <code>CellEditor</code> framework method returns - * the checkbox setting wrapped as a <code>bool</code>. + * the checkbox setting wrapped as a <code>Boolean</code>. * - * @return the bool checkbox value + * @return the Boolean checkbox value */ protected override Object doGetValue() { - return new ValueWrapperBool( value ); + return value ? Boolean.TRUE : Boolean.FALSE; } /* (non-Javadoc) @@ -121,13 +121,13 @@ /** * The <code>CheckboxCellEditor</code> implementation of * this <code>CellEditor</code> framework method accepts - * a value wrapped as a <code>bool</code>. + * a value wrapped as a <code>Boolean</code>. * - * @param value a bool value + * @param value a Boolean value */ protected override void doSetValue(Object value) { - Assert.isTrue( null !is cast(ValueWrapperBool)value ); - this.value = (cast(ValueWrapperBool) value).value; + Assert.isTrue( null !is cast(Boolean)value ); + this.value = (cast(Boolean) value).booleanValue(); } public override void activate(ColumnViewerEditorActivationEvent activationEvent) {