else if(element instanceof CFJavaFileEditorInput)
{
String filepath = ((CFJavaFileEditorInput)element).getPath(element).toString();
IPath path = new Path(filepath);
Workspace workspace = (Workspace)CFMLPlugin.getWorkspace();
IFile file = new ExternalFile(path,workspace);
model = ((ExternalFile)file).getAnnotationModel();
document.setParserResource(file);
document.clearAllMarkers();
document.parseDocument();
}
else if (element instanceof RemoteFileEditorInput)
{
String filepath = ((RemoteFileEditorInput)element).getPath(element).toString();
Path path = new Path(filepath);
Workspace workspace = (Workspace)CFMLPlugin.getWorkspace();
ExternalFile file = new ExternalFile(path,workspace);
model = file.getAnnotationModel();
document.setParserResource(file);
document.clearAllMarkers();
document.parseDocument();
}
else if(element instanceof FileStoreEditorInput)
{
String filepath = ((FileStoreEditorInput)element).getURI().getPath().toString();
IPath path = new Path(filepath);
Workspace workspace = (Workspace)CFMLPlugin.getWorkspace();
IFile file = new ExternalFile(path,workspace);
model = ((ExternalFile)file).getAnnotationModel();
document.setParserResource(file);
document.clearAllMarkers();
document.parseDocument();