Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBJ Hargrave2004-05-07 21:40:52 +0000
committerBJ Hargrave2004-05-07 21:40:52 +0000
commit3808fc2d00589dbcd1c99b49ec7631fc834e3fde (patch)
tree451807070909ec755d1757000ee34aca590433b7 /bundles/org.eclipse.osgi/console
parent3874b6fabd7d0cd1e479016852939f70f9c73fa1 (diff)
downloadrt.equinox.framework-3808fc2d00589dbcd1c99b49ec7631fc834e3fde.tar.gz
rt.equinox.framework-3808fc2d00589dbcd1c99b49ec7631fc834e3fde.tar.xz
rt.equinox.framework-3808fc2d00589dbcd1c99b49ec7631fc834e3fde.zip
Update OSGi specification source code and javadoc comments to bring up to date before M9
Diffstat (limited to 'bundles/org.eclipse.osgi/console')
-rw-r--r--bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandProvider.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandProvider.java b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandProvider.java
index 51f4798b4..81bf760e4 100644
--- a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandProvider.java
+++ b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkCommandProvider.java
@@ -21,7 +21,7 @@ import org.eclipse.osgi.framework.console.CommandProvider;
import org.eclipse.osgi.framework.launcher.Launcher;
import org.osgi.framework.BundleException;
import org.osgi.framework.ServiceReference;
-import org.osgi.service.packageadmin.NamedClassSpace;
+import org.osgi.service.packageadmin.ProvidingBundle;
/**
* This class provides methods to execute commands from the command line. It registers
@@ -802,11 +802,11 @@ public class FrameworkCommandProvider implements CommandProvider {
}
}
- NamedClassSpace[] namedClassSpaces = packageAdmin.getNamedClassSpaces(null);
- NamedClassSpace namedClassSpace = null;
+ ProvidingBundle[] namedClassSpaces = packageAdmin.getProvidingBundles(null);
+ ProvidingBundle namedClassSpace = null;
if (namedClassSpaces != null) {
for (int i=0; i<namedClassSpaces.length; i++) {
- if (namedClassSpaces[i].getProvidingBundle() == bundle) {
+ if (namedClassSpaces[i].getBundle() == bundle) {
namedClassSpace = namedClassSpaces[i];
break;
}
@@ -847,7 +847,7 @@ public class FrameworkCommandProvider implements CommandProvider {
intp.print(" "); //$NON-NLS-1$
intp.print(namedClassSpaces[i]);
- org.osgi.framework.Bundle provider = namedClassSpaces[i].getProvidingBundle();
+ org.osgi.framework.Bundle provider = namedClassSpaces[i].getBundle();
intp.print("<"); //$NON-NLS-1$
intp.print(provider);
intp.println(">"); //$NON-NLS-1$
@@ -1485,15 +1485,15 @@ public class FrameworkCommandProvider implements CommandProvider {
org.osgi.service.packageadmin.PackageAdmin packageAdmin = (org.osgi.service.packageadmin.PackageAdmin) context.getService(packageAdminRef);
if (packageAdmin != null) {
try {
- org.osgi.service.packageadmin.NamedClassSpace[] symBundles = null;
+ org.osgi.service.packageadmin.ProvidingBundle[] symBundles = null;
- symBundles = packageAdmin.getNamedClassSpaces(token);
+ symBundles = packageAdmin.getProvidingBundles(token);
if (symBundles == null) {
intp.println(ConsoleMsg.formatter.getString("CONSOLE_NO_NAMED_CLASS_SPACES_MESSAGE")); //$NON-NLS-1$
} else {
for (int i = 0; i < symBundles.length; i++) {
- org.osgi.service.packageadmin.NamedClassSpace symBundle = symBundles[i];
+ org.osgi.service.packageadmin.ProvidingBundle symBundle = symBundles[i];
intp.print(symBundle);
boolean removalPending = symBundle.isRemovalPending();
@@ -1503,7 +1503,7 @@ public class FrameworkCommandProvider implements CommandProvider {
intp.println(")"); //$NON-NLS-1$
}
- org.osgi.framework.Bundle provider = symBundle.getProvidingBundle();
+ org.osgi.framework.Bundle provider = symBundle.getBundle();
if (provider != null) {
intp.print("<"); //$NON-NLS-1$
intp.print(provider);

Back to the top