[579748] Compile error from removal of Platform.getPluginStateLocation()
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/META-INF/MANIFEST.MF b/plugins/org.eclipse.jst.j2ee.webservice/META-INF/MANIFEST.MF index f6fb551..4339c22 100644 --- a/plugins/org.eclipse.jst.j2ee.webservice/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.jst.j2ee.webservice/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.jst.j2ee.webservice; singleton:=true -Bundle-Version: 1.1.700.qualifier +Bundle-Version: 1.1.800.qualifier Bundle-Activator: org.eclipse.jst.j2ee.internal.webservice.plugin.WebServicePlugin Bundle-Vendor: %pluginVendor Bundle-Localization: plugin
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/pom.xml b/plugins/org.eclipse.jst.j2ee.webservice/pom.xml index c1f774d..e5f0da7 100644 --- a/plugins/org.eclipse.jst.j2ee.webservice/pom.xml +++ b/plugins/org.eclipse.jst.j2ee.webservice/pom.xml
@@ -21,6 +21,6 @@ <groupId>org.eclipse.webtools.javaee</groupId> <artifactId>org.eclipse.jst.j2ee.webservice</artifactId> - <version>1.1.700-SNAPSHOT</version> + <version>1.1.800-SNAPSHOT</version> <packaging>eclipse-plugin</packaging> </project>
diff --git a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/plugin/WebServicePlugin.java b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/plugin/WebServicePlugin.java index 3e1f8e3..366b528 100644 --- a/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/plugin/WebServicePlugin.java +++ b/plugins/org.eclipse.jst.j2ee.webservice/webservice/org/eclipse/jst/j2ee/internal/webservice/plugin/WebServicePlugin.java
@@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2006 IBM Corporation and others. + * Copyright (c) 2003, 2022 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -129,22 +129,10 @@ /** - * Returns the URL from which all resources are based. - * - * @return the URL from which all resources are based. + * @deprecated - no known callers */ public URL getBaseURL() { - String installURL = getPluginInstallLocation(); - if (installURL != null) { - try { - StringBuffer sb = new StringBuffer(installURL); - sb.append("plugin.properties"); //$NON-NLS-1$ - return new URL(sb.toString()); - } catch (MalformedURLException e) { - //Ignore - } - } - return null; + return Platform.getBundle(PLUGIN_ID).getEntry("plugin.properties"); //$NON-NLS-1$ } /** @@ -164,18 +152,6 @@ return null; } - public String getPluginStateLocation() { - return Platform.getPluginStateLocation(this).addTrailingSeparator().toOSString(); - } - - public String getPluginInstallLocation() { - try { - return Platform.resolve(getInstance().getBundle().getEntry("/")).getFile(); //$NON-NLS-1$ - } catch (Throwable t) { - return null; - } - } - /** * Returns the string resource associated with the key. *