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

[email protected]
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-serv30459/java/org/objectstyle/wolips/variables

Modified Files:
	VariablesPlugin.java 
Log Message:
Removed ui stuff.

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.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- VariablesPlugin.java	14 Dec 2005 15:05:32 -0000	1.5
+++ VariablesPlugin.java	14 Dec 2005 15:11:53 -0000	1.6
@@ -59,26 +59,22 @@
 import java.io.FileOutputStream;
 import java.io.InputStream;
 import java.util.Dictionary;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
 
 import org.eclipse.ant.core.AntRunner;
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
 import org.objectstyle.woenvironment.env.WOEnvironment;
 import org.objectstyle.woenvironment.env.WOVariables;
+import org.objectstyle.wolips.core.runtime.AbstractCorePlugin;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.Constants;
 
 /**
  * The main plugin class to be used in the desktop.
  */
-public class VariablesPlugin extends AbstractUIPlugin {
+public class VariablesPlugin extends AbstractCorePlugin {
 	private static final String build_user_home_properties = "woproperties.xml";
 
 	private static final String build_user_home_properties_pde_info = "PDE User please copy "
@@ -88,9 +84,6 @@
 	// The shared instance.
 	private static VariablesPlugin plugin;
 
-	// Resource bundle.
-	private ResourceBundle resourceBundle;
-
 	private WOEnvironment woEnvironment;
 
 	/**
@@ -99,18 +92,6 @@
 	public VariablesPlugin() {
 		super();
 		plugin = this;
-		try {
-			this.resourceBundle = ResourceBundle
-					.getBundle("org.objectstyle.wolips.variables.VariablesPluginResources");
-		} catch (MissingResourceException x) {
-			this.resourceBundle = null;
-		}
-	}
-
-	private void logError(String string) {
-		this.getLog().log(
-				new Status(IStatus.ERROR, VariablesPlugin.getPluginId(),
-						IStatus.ERROR, string, null));
 	}
 
 	/**
@@ -166,28 +147,6 @@
 		return plugin;
 	}
 
-	/**
-	 * @param key
-	 * @return the string from the plugin's resource bundle, or 'key' if not
-	 *         found.
-	 */
-	public static String getResourceString(String key) {
-		ResourceBundle bundle = VariablesPlugin.getDefault()
-				.getResourceBundle();
-		try {
-			return (bundle != null) ? bundle.getString(key) : key;
-		} catch (MissingResourceException e) {
-			return key;
-		}
-	}
-
-	/**
-	 * @return the plugin's resource bundle
-	 */
-	public ResourceBundle getResourceBundle() {
-		return this.resourceBundle;
-	}
-
 	private IPath fixMissingSeparatorAfterDevice(String string) {
 		if (string != null && string.length() > 1 && string.charAt(1) == ':') {
 			return new Path(string.substring(2)).setDevice(string.substring(0,
@@ -286,7 +245,7 @@
 		try {
 			this.writePropertiesFileToUserHome();
 		} catch (Exception anException) {
-			this.logError(VariablesPlugin.build_user_home_properties_pde_info
+			this.debug(VariablesPlugin.build_user_home_properties_pde_info
 					+ " " + anException.getStackTrace());
 		}
 	}



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.