viewXMLAction = new Action(){
public void run() {
ViewXMLDialog vxd = new ViewXMLDialog(getSite().getShell(), ((FrameworksContentProvider)viewer.getContentProvider()).getVirtualDocument());
vxd.open();
// open dialog with just an XML thing
}
};
viewXMLAction.setImageDescriptor(FWXImages.getImageRegistry().getDescriptor(FWXImages.ICON_XML_VIEW));