bug 9642. Apply drive spec of project for bitmaps defined with full path (i.e. /epoc32/....)
authortimkelly
Tue, 18 Aug 2009 11:45:34 -0500
changeset 446 8cd2a2915e7b
parent 444 281526d91b64
child 447 5018b19f0952
bug 9642. Apply drive spec of project for bitmaps defined with full path (i.e. /epoc32/....)
core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java
core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/MaskedFileImageModel.java
--- a/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java	Fri Aug 14 14:35:32 2009 -0500
+++ b/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java	Tue Aug 18 11:45:34 2009 -0500
@@ -59,6 +59,11 @@
 			this.sourceLocation = basePath != null && filePath.getDevice() == null && !filePath.isAbsolute()
 				? basePath.append(filePath) : filePath;
 		}
+		
+		if (sourceLocation.getDevice() == null){
+			sourceLocation = sourceLocation.setDevice(basePath.getDevice());
+		}
+		
 	}
 	
 	/**
--- a/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/MaskedFileImageModel.java	Fri Aug 14 14:35:32 2009 -0500
+++ b/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/MaskedFileImageModel.java	Tue Aug 18 11:45:34 2009 -0500
@@ -62,6 +62,9 @@
 			else
 				maskSourceLocation = basePath.append(maskPath);
 		}
+		if (maskSourceLocation != null && maskSourceLocation.getDevice() == null){
+			maskSourceLocation = maskSourceLocation.setDevice(basePath.getDevice());
+		}
 	}
 
 	/**
@@ -81,6 +84,9 @@
 			else
 				maskSourceLocation = basePath.append(maskPath);
 		}
+		if (maskSourceLocation != null && maskSourceLocation.getDevice() == null){
+			maskSourceLocation = maskSourceLocation.setDevice(basePath.getDevice());
+		}
 	}