241242243244245246247248249250251
if(editorPart.getEditorInput() instanceof IPathEditorInput) path = ((IPathEditorInput)editorPart.getEditorInput()).getPath(); if (path != null) dialog.setOriginalFile(path); dialog.create(); if (dialog.open() == Window.CANCEL) { return; }