Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-09-11 20:58:46 +0000
committerJohn Arthorne2008-09-11 20:58:46 +0000
commit3a4f04283059f470689dfa8f1d97095db39a6271 (patch)
tree0756d0ec8afed8da54bb69bf22e7051764392d08 /bundles/org.eclipse.equinox.simpleconfigurator.manipulator
parent92464a0b91b043934817e5a9b56c3e89c7dfe9a1 (diff)
downloadrt.equinox.p2-3a4f04283059f470689dfa8f1d97095db39a6271.tar.gz
rt.equinox.p2-3a4f04283059f470689dfa8f1d97095db39a6271.tar.xz
rt.equinox.p2-3a4f04283059f470689dfa8f1d97095db39a6271.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.equinox.simpleconfigurator.manipulator')
-rw-r--r--bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
index 821be0550..25f14379d 100644
--- a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
+++ b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
@@ -496,6 +496,11 @@ public class SimpleConfiguratorManipulatorImpl implements ConfiguratorManipulato
}
private static String makeRelative(IPath toRel, IPath base) {
+ String relDevice = toRel.getDevice();
+ String baseDevice = base.getDevice();
+ //if the devices are different, we cannot make one relative to the other
+ if (relDevice != baseDevice && (relDevice == null || !relDevice.equalsIgnoreCase(baseDevice)))
+ return toRel.toOSString();
int i = base.matchingFirstSegments(toRel);
if (i == 0) {
return toRel.toOSString();

Back to the top