try { idr = PluginSettings.instance( ).getDevice( "dv.SWT" ); } catch ( ChartException pex ) { idr = null; WizardBase.displayException( pex ); } addDisposeListener( this );
	public FontCanvas( Composite parent, int style, FontDefinition fdSelected,			ColorDefinition cdSelected, boolean bUseSize, boolean bUseColor,			boolean bUseAlignment )	{		super( parent, style );		this.setSize( parent.getClientArea( ).x, parent.getClientArea( ).x );		this.fdCurrent = fdSelected == null ? FontDefinitionImpl.createEmpty( )				: fdSelected;		this.cdCurrent = cdSelected == null ? ColorDefinitionImpl.create( 0,				0,				0 ) : cdSelected;		this.bUseColor = bUseColor;		this.bUseAlignment = bUseAlignment;		this.bUseSize = bUseSize;		addPaintListener( this );	}