object = rem.resolveFile(fcd.filename);
if (object.getType().equals(FileType.IMAGINARY)) {
object.createFile();
fileViewer.refresh();
// Now open it
RemoteFileEditorInput input = new RemoteFileEditorInput(object);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage();
page.openEditor(input, CFMLEditor.ID);
}
}
} catch (FileSystemException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (PartInitException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} else if (obj instanceof RemoteFile) {
FileObject rem = ((RemoteFile) obj).getFileItem();
FileObject object;
try {
object = rem.resolveFile(fcd.filename);
if (object.getType().equals(FileType.IMAGINARY)) {
object.createFile();
fileViewer.refresh();
// Now open it
RemoteFileEditorInput input = new RemoteFileEditorInput(object);
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage();
page.openEditor(input, CFMLEditor.ID);
}
} catch (FileSystemException e) {