fix some navigation action labels
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPeclipsePlugin.java
index 622ca18..6eeecfb 100644 (file)
@@ -73,7 +73,6 @@ import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IAdapterManager;
 import org.eclipse.core.runtime.IConfigurationElement;
 import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IPluginDescriptor;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Path;
@@ -300,8 +299,8 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon
   /**
    * The constructor.
    */
-  public PHPeclipsePlugin(IPluginDescriptor descriptor) {
-    super(descriptor);
+  public PHPeclipsePlugin() {
+    super();
     plugin = this;
 //    externalTools = new ExternalToolsPlugin();
 
@@ -494,7 +493,7 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon
   }
 
   static IPath getInstallLocation() {
-    return new Path(getDefault().getDescriptor().getInstallURL().getFile());
+    return new Path(getDefault().getBundle().getEntry("/").getFile());
   }
 
   //  public static int getJVM() {
@@ -502,7 +501,7 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon
   //  }
 
   public static String getPluginId() {
-    return getDefault().getDescriptor().getUniqueIdentifier();
+    return getDefault().getBundle().getSymbolicName() ;
   }
 
   /**
@@ -711,10 +710,10 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon
       InputStream is = getDefault().openStream(
                new Path("prefs/default_" + operatingSystem + ".properties"));
       PropertyResourceBundle resourceBundle = new PropertyResourceBundle(is);
-      Enumeration enum = resourceBundle.getKeys();
+      Enumeration e = resourceBundle.getKeys();
       String key;
-      while (enum.hasMoreElements()) {
-        key = (String)enum.nextElement();
+      while (e.hasMoreElements()) {
+        key = (String)e.nextElement();
         store.setDefault(key, resourceBundle.getString( key ));
       }
     } catch (Exception e) {