JBIDE-17818 Visual Editor: Need to handle external html / htm files

fixed bug for external file opened with wtp editor + html preview
This is a new API. Let's move this method to VpvView.java as a private (it's the only place where it's used). It's OK for 4.2.x and we can add a new API in master.