String filePath = URIUtil.getLocalPath( uri ); if ( filePath != null ) source = DesignChoiceConstants.IMAGE_REF_TYPE_FILE;
	public void setURI( String uri ) throws SemanticException	{		String source = DesignChoiceConstants.IMAGE_REF_TYPE_URL;		String filePath = URIUtil.getLocalPath( uri );		if ( filePath != null )			source = DesignChoiceConstants.IMAGE_REF_TYPE_FILE;		try		{			design.getActivityStack( ).startTrans( );			setProperty( ImageItem.SOURCE_PROP, source );			setProperty( ImageItem.URI_PROP, uri );		}		catch ( SemanticException e )		{			design.getActivityStack( ).rollback( );			throw e;		}		design.getActivityStack( ).commit( );	}