preview( path );
preview( path.substring(6) );
	public void widgetSelected( SelectionEvent e )	{		if ( e.widget.equals( btnOK ) )		{			applyMarkerIcon = true;			if ( iconPalette == null )			{				iconPalette = PaletteImpl.create( ImageImpl.create( getImagePath( ) ) );			}			else			{				iconPalette.getEntries( )						.add( ImageImpl.create( getImagePath( ) ) );			}			shell.dispose( );		}		else if ( e.widget.equals( btnCancel ) )		{			shell.dispose( );		}		else if ( e.widget.equals( btnURL ) )		{			switchTo( URI_TYPE );		}		else if ( e.widget.equals( btnLocal ) )		{			switchTo( LIST_TYPE );		}		else if ( e.widget.equals( btnPreview ) )		{			uriEditor.setText( uriEditor.getText( ).trim( ) );			try			{				url = new URL( uriEditor.getText( ) );			}			catch ( MalformedURLException ex )			{				ex.printStackTrace( );			}			preview( url );		}		else if ( e.widget.equals( iconList ) )		{			String path = iconList.getSelection( )[0];			if ( iconList.getSelection( )[0].startsWith( "h" ) //$NON-NLS-1$					|| iconList.getSelection( )[0].startsWith( "H" ) ) //$NON-NLS-1$			{				path = path.replace( '\"', '/' ); //$NON-NLS-1$				try				{					url = new URL( path );				}				catch ( MalformedURLException ex )				{					ex.printStackTrace( );				}				preview( url );			}			else			{				preview( path );			}		}		else if ( e.widget.equals( btnBrowse ) )		{			FileDialog fileChooser = new FileDialog( shell, SWT.OPEN );			fileChooser.setText( Messages.getString( "MarkerIconDialog.Chooser.Title" ) ); //$NON-NLS-1$			fileChooser.setFilterExtensions( new String[]{					"*.gif", "*.jpg", "*.png", "*.ico", "*.bmp" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$			} );			try			{				String fullPath = fileChooser.open( );				if ( fullPath != null )				{					if ( iconList.indexOf( fullPath ) != -1 )					{						return;					}					previewCanvas.loadImage( fullPath );					iconList.add( fullPath );					iconList.select( iconList.indexOf( fullPath ) );				}			}			catch ( Throwable ex )			{				ex.printStackTrace( );			}		}		else if ( e.widget.equals( btnRemove ) )		{			if ( iconList.getSelectionCount() != 0 )			{				iconPalette.getEntries( ).remove( iconList.getSelectionIndex( ) );			}		}	}