woproject/projects/wolips/plugins/org.objectstyle.wolips.variables/java/org/objectstyle/wolips/variables VariablesPlugin.java,1.6,1.7

[email protected] Sun, 26 Feb 2006 00:40:06 -0800 (PST)
Newsgroups gmane.comp.web.webobjects.woproject.cvs
Message-ID <[email protected]>
Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.variables/java/org/objectstyle/wolips/variables
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24971/java/org/objectstyle/wolips/variables

Modified Files:
	VariablesPlugin.java 
Log Message:
Replaced deprecated code.

Index: VariablesPlugin.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.variables/java/org/objectstyle/wolips/variables/VariablesPlugin.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- VariablesPlugin.java	14 Dec 2005 15:11:53 -0000	1.6
+++ VariablesPlugin.java	26 Feb 2006 08:39:34 -0000	1.7
@@ -2,7 +2,7 @@
  *
  * The ObjectStyle Group Software License, Version 1.0
  *
- * Copyright (c) 2004 - 2005 The ObjectStyle Group
+ * Copyright (c) 2004 - 2006 The ObjectStyle Group
  * and individual authors of the software.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -61,6 +61,7 @@
 import java.util.Dictionary;
 
 import org.eclipse.ant.core.AntRunner;
+import org.eclipse.core.runtime.FileLocator;
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
@@ -106,8 +107,8 @@
 		monitor = new NullProgressMonitor();
 		File tmpFile = File.createTempFile("wolips", "xml");
 		FileOutputStream fileOutputStream = new FileOutputStream(tmpFile);
-		InputStream inputStream = this.openStream(new Path(
-				VariablesPlugin.build_user_home_properties));
+		InputStream inputStream = FileLocator.openStream(this.getBundle(),
+				new Path(VariablesPlugin.build_user_home_properties), false);
 		int aByte = 0;
 		while (aByte >= 0) {
 			aByte = inputStream.read();



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642