From: Edward Mann Date: Tue, 26 Feb 2008 00:10:31 +0000 (+0000) Subject: Added change so that when you have a RSE project and click the right mouse button... X-Git-Url: http://git.phpeclipse.com?hp=1cac815a39318afd84c7d600d61c5a07b91e5592 Added change so that when you have a RSE project and click the right mouse button to get menu it will work. fixes #637 --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java index d144789..0a09a2e 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/PHPEditor.java @@ -5882,7 +5882,8 @@ public abstract class PHPEditor extends AbstractDecoratedTextEditor implements file = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(fei.getURI().getPath())); } else { FileEditorInput fei = (FileEditorInput) getEditorInput(); - file = ResourcesPlugin.getWorkspace().getRoot().getFile(fei.getPath()); + // added to fix ticket 637 + file = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(fei.getURI().getPath())); } ShowInContext context = BrowserUtil.getShowInContext(file, false, "");