Author: koen.aers(a)jboss.com
Date: 2011-12-08 03:34:20 -0500 (Thu, 08 Dec 2011)
New Revision: 37095
Modified:
branches/jbosstools-3.3.0.M5/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java
Log:
JBIDE-10405: Path Issues with Show In Forge on Windows
Modified:
branches/jbosstools-3.3.0.M5/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java
===================================================================
---
branches/jbosstools-3.3.0.M5/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java 2011-12-08
08:23:42 UTC (rev 37094)
+++
branches/jbosstools-3.3.0.M5/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/part/ForgeView.java 2011-12-08
08:34:20 UTC (rev 37095)
@@ -4,7 +4,6 @@
import java.beans.PropertyChangeListener;
import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -254,11 +253,11 @@
IStructuredSelection ss = (IStructuredSelection)sel;
Object first = ss.getFirstElement();
if (first instanceof IResource) {
- IPath path = ((IResource)first).getLocation();
+ String path = ((IResource)first).getLocation().toOSString();
runtime.sendInput("pick-up " + path + "\n");
} else if (first instanceof IJavaElement) {
try {
- IPath path = ((IJavaElement)first).getCorrespondingResource().getLocation();
+ String path =
((IJavaElement)first).getCorrespondingResource().getLocation().toOSString();
runtime.sendInput("pick-up " + path + "\n");
} catch (JavaModelException e) {
ForgeUIPlugin.log(e);
Show replies by date