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;
/**
* The constructor.
*/
- public PHPeclipsePlugin(IPluginDescriptor descriptor) {
- super(descriptor);
+ public PHPeclipsePlugin() {
+ super();
plugin = this;
// externalTools = new ExternalToolsPlugin();
}
static IPath getInstallLocation() {
- return new Path(getDefault().getDescriptor().getInstallURL().getFile());
+ return new Path(getDefault().getBundle().getEntry("/").getFile());
}
// public static int getJVM() {
// }
public static String getPluginId() {
- return getDefault().getDescriptor().getUniqueIdentifier();
+ return getDefault().getBundle().getSymbolicName() ;
}
/**
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) {