# HG changeset patch # User Frank Benoit # Date 1207847412 -7200 # Node ID 4567a6f54939b2b4f2d624b1a7cb8dd8f4b50a5d # Parent 1ab001d670119c4780692e88b94d2b022ff4658f fix compile errors diff -r 1ab001d67011 -r 4567a6f54939 dwtx/jface/dialogs/PopupDialog.d --- a/dwtx/jface/dialogs/PopupDialog.d Thu Apr 10 11:21:35 2008 +0200 +++ b/dwtx/jface/dialogs/PopupDialog.d Thu Apr 10 19:10:12 2008 +0200 @@ -699,9 +699,9 @@ GridDataFactory.fillDefaults().align_(DWT.END, DWT.CENTER).applyTo(toolBar); menuImage = ImageDescriptor.createFromFile( - import("dwtx.jface.dialogs.images.popup_menu.gif")).createImage();//$NON-NLS-1$ + getImportData!("dwtx.jface.dialogs.images.popup_menu.gif")).createImage();//$NON-NLS-1$ disabledMenuImage = ImageDescriptor.createFromFile( - import("dwtx.jface.dialogs.images.popup_menu_disabled.gif")).createImage();//$NON-NLS-1$ + getImportData!("dwtx.jface.dialogs.images.popup_menu_disabled.gif")).createImage();//$NON-NLS-1$ viewMenuButton.setImage(menuImage); viewMenuButton.setDisabledImage(disabledMenuImage); viewMenuButton.setToolTipText(JFaceResources diff -r 1ab001d67011 -r 4567a6f54939 dwtx/jface/fieldassist/FieldDecorationRegistry.d --- a/dwtx/jface/fieldassist/FieldDecorationRegistry.d Thu Apr 10 11:21:35 2008 +0200 +++ b/dwtx/jface/fieldassist/FieldDecorationRegistry.d Thu Apr 10 19:10:12 2008 +0200 @@ -110,21 +110,21 @@ // Define the images used in the standard decorations. imageRegistry.put(IMG_DEC_FIELD_CONTENT_PROPOSAL, ImageDescriptor.createFromFile( - import("dwtx.jface.fieldassist.images.contassist_ovr.gif")));//$NON-NLS-1$ + getImportData!("dwtx.jface.fieldassist.images.contassist_ovr.gif")));//$NON-NLS-1$ imageRegistry.put(IMG_DEC_FIELD_ERROR, ImageDescriptor.createFromFile( - import("dwtx.jface.fieldassist.images.error_ovr.gif")));//$NON-NLS-1$ + getImportData!("dwtx.jface.fieldassist.images.error_ovr.gif")));//$NON-NLS-1$ imageRegistry.put(IMG_DEC_FIELD_WARNING, ImageDescriptor.createFromFile( - import("dwtx.jface.fieldassist.images.warn_ovr.gif")));//$NON-NLS-1$ + getImportData!("dwtx.jface.fieldassist.images.warn_ovr.gif")));//$NON-NLS-1$ imageRegistry.put(IMG_DEC_FIELD_REQUIRED, ImageDescriptor.createFromFile( - import("dwtx.jface.fieldassist.images.required_field_cue.gif")));//$NON-NLS-1$ + getImportData!("dwtx.jface.fieldassist.images.required_field_cue.gif")));//$NON-NLS-1$ imageRegistry.put(IMG_DEC_FIELD_ERROR_QUICKFIX, ImageDescriptor.createFromFile( - import("dwtx.jface.fieldassist.images.errorqf_ovr.gif")));//$NON-NLS-1$ + getImportData!("dwtx.jface.fieldassist.images.errorqf_ovr.gif")));//$NON-NLS-1$ imageRegistry.put(IMG_DEC_FIELD_INFO, ImageDescriptor.createFromFile( - import("dwtx.jface.fieldassist.images.info_ovr.gif")));//$NON-NLS-1$ + getImportData!("dwtx.jface.fieldassist.images.info_ovr.gif")));//$NON-NLS-1$ // Define the standard decorations. Some do not have standard // descriptions. Use null in these cases. diff -r 1ab001d67011 -r 4567a6f54939 dwtx/jface/viewers/AbstractListViewer.d --- a/dwtx/jface/viewers/AbstractListViewer.d Thu Apr 10 11:21:35 2008 +0200 +++ b/dwtx/jface/viewers/AbstractListViewer.d Thu Apr 10 19:10:12 2008 +0200 @@ -471,7 +471,7 @@ if (elements.length is 0) { return; } - preservingSelection(new class Runnable(elements) { + preservingSelection(new class(elements) Runnable { Object[] elements_; this(Object[] a){ elements_= a; diff -r 1ab001d67011 -r 4567a6f54939 dwtx/jface/viewers/DialogCellEditor.d --- a/dwtx/jface/viewers/DialogCellEditor.d Thu Apr 10 11:21:35 2008 +0200 +++ b/dwtx/jface/viewers/DialogCellEditor.d Thu Apr 10 19:10:12 2008 +0200 @@ -96,7 +96,7 @@ static this() { ImageRegistry reg = JFaceResources.getImageRegistry(); reg.put(CELL_EDITOR_IMG_DOTS_BUTTON, ImageDescriptor.createFromFile( - import("dwtx.jface.images.dots_button.gif")));//$NON-NLS-1$ + getImportData!("dwtx.jface.images.dots_button.gif")));//$NON-NLS-1$ } /**