Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/META-INF/MANIFEST.MF2
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/OSGI-INF/discovery.xml4
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/pom.xml2
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/Activator.java4
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/DiscoveryComponent.java54
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServiceHandlerUtil.java2
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ConnectionHandler.java3
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/DisonnectRemoteServicehandler.java3
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ReflectiveRemoteServiceHandler.java8
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/property/ConnectedTester.java3
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java14
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/model/EndpointNode.java12
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/AbstractRegistrationNode.java10
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExceptionNode.java6
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExportRegistrationNode.java2
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ImportRegistrationNode.java1
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/RSAAdapterFactory.java2
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/StackTraceElementNode.java2
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteservices/ui/MethodInvocationDialog.java31
-rw-r--r--osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/.settings/org.eclipse.m2e.core.prefs4
-rw-r--r--osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF2
-rw-r--r--osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/pom.xml2
-rw-r--r--osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java28
23 files changed, 109 insertions, 92 deletions
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/META-INF/MANIFEST.MF b/framework/bundles/org.eclipse.ecf.remoteservice.ui/META-INF/MANIFEST.MF
index 6f70e1f06..e2a7f6d8e 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/META-INF/MANIFEST.MF
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: %plugin.name
Bundle-SymbolicName: org.eclipse.ecf.remoteservice.ui;singleton:=true
Automatic-Module-Name: org.eclipse.ecf.remoteservice.ui
-Bundle-Version: 3.4.202.qualifier
+Bundle-Version: 3.4.203.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui,
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/OSGI-INF/discovery.xml b/framework/bundles/org.eclipse.ecf.remoteservice.ui/OSGI-INF/discovery.xml
index 459748841..12ff64750 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/OSGI-INF/discovery.xml
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/OSGI-INF/discovery.xml
@@ -3,9 +3,5 @@
<implementation class="org.eclipse.ecf.internal.remoteservices.ui.DiscoveryComponent"/>
<property name="endpoint.listener.scope" type="String" value="(ecf.endpoint.id.ns=*)"/>
<reference bind="bindRemoteServiceAdmin" cardinality="0..1" interface="org.osgi.service.remoteserviceadmin.RemoteServiceAdmin" name="RemoteServiceAdmin" policy="dynamic" unbind="unbindRemoteServiceAdmin"/>
- <service>
- <provide interface="org.osgi.service.remoteserviceadmin.EndpointEventListener"/>
- <provide interface="org.osgi.service.remoteserviceadmin.RemoteServiceAdminListener"/>
- </service>
<reference bind="bindEndpointDescriptionLocator" cardinality="0..1" interface="org.eclipse.ecf.osgi.services.remoteserviceadmin.IEndpointDescriptionLocator" name="IEndpointDescriptionLocator" policy="dynamic" unbind="unbindEndpointDescriptionLocator"/>
</scr:component>
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/pom.xml b/framework/bundles/org.eclipse.ecf.remoteservice.ui/pom.xml
index 50da8ff09..52038a1a2 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/pom.xml
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/pom.xml
@@ -10,6 +10,6 @@
</parent>
<groupId>org.eclipse.ecf</groupId>
<artifactId>org.eclipse.ecf.remoteservice.ui</artifactId>
- <version>3.4.202-SNAPSHOT</version>
+ <version>3.4.203-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/Activator.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/Activator.java
index 84bb60611..a35501214 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/Activator.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/Activator.java
@@ -21,7 +21,9 @@ import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.ecf.core.IContainerManager;
+import org.eclipse.ecf.core.util.BundleStarter;
import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.util.tracker.ServiceTracker;
@@ -56,6 +58,8 @@ public class Activator extends AbstractUIPlugin {
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
+ BundleStarter.startDependents(context, new String[] { "org.eclipse.ecf.osgi.services.distribution" },
+ Bundle.RESOLVED | Bundle.STARTING);
this.context = context;
ServiceTracker<IExtensionRegistry, IExtensionRegistry> st = new ServiceTracker(this.context,
IExtensionRegistry.class, null);
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/DiscoveryComponent.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/DiscoveryComponent.java
index ec1cf0578..b4a48be1f 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/DiscoveryComponent.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/DiscoveryComponent.java
@@ -9,15 +9,16 @@
package org.eclipse.ecf.internal.remoteservices.ui;
import java.util.ArrayList;
+import java.util.Hashtable;
import java.util.List;
import org.eclipse.ecf.osgi.services.remoteserviceadmin.IEndpointDescriptionLocator;
+import org.eclipse.ecf.osgi.services.remoteserviceadmin.ITopologyManager;
import org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin;
import org.eclipse.ecf.remoteserviceadmin.ui.endpoint.EndpointDiscoveryView;
import org.eclipse.ecf.remoteserviceadmin.ui.rsa.RemoteServiceAdminView;
-import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
-import org.osgi.framework.BundleException;
+import org.osgi.framework.ServiceRegistration;
import org.osgi.service.remoteserviceadmin.EndpointEvent;
import org.osgi.service.remoteserviceadmin.EndpointEventListener;
import org.osgi.service.remoteserviceadmin.RemoteServiceAdminEvent;
@@ -25,13 +26,17 @@ import org.osgi.service.remoteserviceadmin.RemoteServiceAdminListener;
public class DiscoveryComponent implements EndpointEventListener, RemoteServiceAdminListener {
- private static final String RSA_SYMBOLICNAME = "org.eclipse.ecf.osgi.services.remoteserviceadmin"; //$NON-NLS-1$
+ private static String ENDPOINT_LISTENER_SCOPE = System
+ .getProperty("org.eclipse.ecf.remoteservices.ui.endpointListenerScope", "(ecf.endpoint.id.ns=*)");
private static DiscoveryComponent instance;
private BundleContext context;
private RemoteServiceAdmin rsa;
+ @SuppressWarnings("unused")
+ private ITopologyManager tm;
+
void bindRemoteServiceAdmin(org.osgi.service.remoteserviceadmin.RemoteServiceAdmin r) {
rsa = (RemoteServiceAdmin) r;
}
@@ -40,6 +45,14 @@ public class DiscoveryComponent implements EndpointEventListener, RemoteServiceA
this.rsa = null;
}
+ void bindTopologyManager(ITopologyManager tm) {
+ this.tm = tm;
+ }
+
+ void unbindTopologyManager(ITopologyManager tm) {
+ this.tm = null;
+ }
+
public BundleContext getContext() {
return this.context;
}
@@ -49,6 +62,10 @@ public class DiscoveryComponent implements EndpointEventListener, RemoteServiceA
private IEndpointDescriptionLocator edLocator;
+ private ServiceRegistration<EndpointEventListener> eelRegistration;
+
+ private ServiceRegistration<RemoteServiceAdminListener> rsaadminRegistration;
+
void bindEndpointDescriptionLocator(IEndpointDescriptionLocator locator) {
this.edLocator = locator;
}
@@ -80,11 +97,26 @@ public class DiscoveryComponent implements EndpointEventListener, RemoteServiceA
synchronized (this) {
instance = this;
this.context = context;
+ // Register this instance as an endpoint event listener
+ Hashtable<String, Object> props = new Hashtable<String, Object>();
+ props.put(EndpointEventListener.ENDPOINT_LISTENER_SCOPE, ENDPOINT_LISTENER_SCOPE);
+ this.eelRegistration = context.registerService(EndpointEventListener.class, this, props);
+ // register as remote service admin listener
+ this.rsaadminRegistration = context.registerService(RemoteServiceAdminListener.class, this, null);
}
+
}
void deactivate() {
synchronized (this) {
+ if (this.eelRegistration != null) {
+ this.eelRegistration.unregister();
+ this.eelRegistration = null;
+ }
+ if (this.rsaadminRegistration != null) {
+ this.rsaadminRegistration.unregister();
+ this.rsaadminRegistration = null;
+ }
instance = null;
discoveryView = null;
rsa = null;
@@ -96,22 +128,6 @@ public class DiscoveryComponent implements EndpointEventListener, RemoteServiceA
}
}
- public void startRSA() throws BundleException {
- Bundle rsaBundle = null;
- BundleContext ctxt = null;
- synchronized (this) {
- ctxt = this.context;
- if (ctxt == null)
- return;
- }
- for (Bundle b : ctxt.getBundles())
- if (b.getSymbolicName().equals(RSA_SYMBOLICNAME))
- rsaBundle = b;
- if (rsaBundle == null)
- throw new BundleException(Messages.DiscoveryComponent_ERROR_MSG_CANNOT_FIND_RSA_BUNDLE);
- rsaBundle.start();
- }
-
private List<EndpointEvent> history;
List<EndpointEvent> getHistory() {
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServiceHandlerUtil.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServiceHandlerUtil.java
index 0bc036ebe..468f0a8aa 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServiceHandlerUtil.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/RemoteServiceHandlerUtil.java
@@ -102,7 +102,7 @@ public class RemoteServiceHandlerUtil {
private static IRemoteServiceReference[] getRemoteServiceReferencesForRemoteServiceAdapter(
IRemoteServiceContainerAdapter adapter, IServiceInfo serviceInfo)
- throws InvalidSyntaxException, IDCreateException {
+ throws InvalidSyntaxException, IDCreateException {
ID serviceID = null;
final String serviceNamespace = getServiceNamespace(serviceInfo);
final String serviceid = getServiceID(serviceInfo);
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ConnectionHandler.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ConnectionHandler.java
index 9ddf6eddd..254c7da2e 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ConnectionHandler.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ConnectionHandler.java
@@ -24,8 +24,7 @@ public abstract class ConnectionHandler extends AbstractHandler {
/*
* (non-Javadoc)
*
- * @see
- * org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.
+ * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.
* ExecutionEvent)
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/DisonnectRemoteServicehandler.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/DisonnectRemoteServicehandler.java
index 9e2d022a3..f1b14d48d 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/DisonnectRemoteServicehandler.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/DisonnectRemoteServicehandler.java
@@ -26,8 +26,7 @@ public class DisonnectRemoteServicehandler extends ConnectionHandler {
/*
* (non-Javadoc)
*
- * @see
- * org.eclipse.ecf.internal.remoteservices.ui.handlers.ConnectionHandler
+ * @see org.eclipse.ecf.internal.remoteservices.ui.handlers.ConnectionHandler
* #getJob()
*/
protected Job getJob(final ExecutionEvent event) throws ExecutionException {
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ReflectiveRemoteServiceHandler.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ReflectiveRemoteServiceHandler.java
index 0c8857065..0bea134c2 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ReflectiveRemoteServiceHandler.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/handlers/ReflectiveRemoteServiceHandler.java
@@ -115,12 +115,12 @@ public class ReflectiveRemoteServiceHandler extends AbstractHandler implements I
break;
case MethodInvocationDialog.OSGI_SERVICE_PROXY:
throw new UnsupportedOperationException();
- // invokeOSGiProxy(interfaceClass, remoteCall);
- // break;
+ // invokeOSGiProxy(interfaceClass, remoteCall);
+ // break;
case MethodInvocationDialog.REMOTE_SERVICE_PROXY:
throw new UnsupportedOperationException();
- // invokeProxy(interfaceClass, remoteService, remoteCall);
- // break;
+ // invokeProxy(interfaceClass, remoteService, remoteCall);
+ // break;
case MethodInvocationDialog.SYNCHRONOUS:
invokeSync(cls, remoteService, remoteCall);
break;
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/property/ConnectedTester.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/property/ConnectedTester.java
index 029ad4ac7..2faf49bcd 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/property/ConnectedTester.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/internal/remoteservices/ui/property/ConnectedTester.java
@@ -68,8 +68,7 @@ public class ConnectedTester extends PropertyTester {
}
/**
- * @param connectID
- * The conected ID for which an IContainer is to be returned
+ * @param connectID The conected ID for which an IContainer is to be returned
* @return a IContainer instance of null
*/
// TODO push this functionality down into the ContainerManager
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
index ad2f25988..d03016148 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
@@ -433,7 +433,7 @@ public class EndpointDiscoveryView extends ViewPart {
}
protected EndpointNode createEndpointDescriptionNode(EndpointDescription ed) {
- EndpointNode edo = new EndpointNode(ed,findImportReference(ed));
+ EndpointNode edo = new EndpointNode(ed, findImportReference(ed));
// Interfaces
EndpointInterfacesNode ein = new EndpointInterfacesNode();
@@ -480,7 +480,7 @@ public class EndpointDiscoveryView extends ViewPart {
EndpointNode findEndpointNode(final ImportReference ir) {
EndpointGroupNode egn = contentProvider.getRootNode();
- for(AbstractEndpointNode aen: egn.getChildren()) {
+ for (AbstractEndpointNode aen : egn.getChildren()) {
if (aen instanceof EndpointNode) {
EndpointNode en = (EndpointNode) aen;
ImportReference iRef = en.getImportReference();
@@ -490,13 +490,14 @@ public class EndpointDiscoveryView extends ViewPart {
}
return null;
}
-
+
public void handleRSAEent(RemoteServiceAdminEvent event) {
final int type = event.getType();
Throwable t = event.getException();
if (t == null) {
TreeViewer treeViewer = this.viewer;
- if (treeViewer == null) return;
+ if (treeViewer == null)
+ return;
switch (type) {
case RemoteServiceAdminEvent.IMPORT_UNREGISTRATION:
final ImportReference ir = (ImportReference) event.getImportReference();
@@ -505,7 +506,7 @@ public class EndpointDiscoveryView extends ViewPart {
@Override
public void run() {
EndpointGroupNode egn = contentProvider.getRootNode();
- for(AbstractEndpointNode aen: egn.getChildren()) {
+ for (AbstractEndpointNode aen : egn.getChildren()) {
if (aen instanceof EndpointNode) {
EndpointNode en = (EndpointNode) aen;
ImportReference iRef = en.getImportReference();
@@ -514,7 +515,8 @@ public class EndpointDiscoveryView extends ViewPart {
}
}
viewer.refresh();
- }});
+ }
+ });
}
break;
}
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/model/EndpointNode.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/model/EndpointNode.java
index b8a6d52fa..ef64db141 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/model/EndpointNode.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/model/EndpointNode.java
@@ -28,6 +28,7 @@ public class EndpointNode extends AbstractEndpointNode {
this.endpointDescription = ed;
this.importReference = (ImportReference) irn.getImportRegistration().getImportReference();
}
+
/**
* @since 3.3
*/
@@ -51,18 +52,17 @@ public class EndpointNode extends AbstractEndpointNode {
public EndpointDescription getEndpointDescription() {
return endpointDescription;
}
-
+
@Deprecated
public ImportRegistrationNode getImportReg() {
return null;
}
-
-
+
@Deprecated
public ImportRegistration getImportRegistration() {
return null;
}
-
+
/**
* @since 3.3
*/
@@ -84,10 +84,10 @@ public class EndpointNode extends AbstractEndpointNode {
public void setImportReference(ImportReference iref) {
this.importReference = iref;
}
-
+
@Deprecated
public void setImportReg(ImportRegistrationNode ir) {
-
+
}
}
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/AbstractRegistrationNode.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/AbstractRegistrationNode.java
index 707207b8c..a043dc6d6 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/AbstractRegistrationNode.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/AbstractRegistrationNode.java
@@ -29,7 +29,7 @@ public abstract class AbstractRegistrationNode extends AbstractRSANode {
*/
public AbstractRegistrationNode(Throwable t, boolean showStack) {
this.error = t;
- if (this.error != null)
+ if (this.error != null)
addChild(new ExceptionNode(this.error, showStack));
}
@@ -48,21 +48,21 @@ public abstract class AbstractRegistrationNode extends AbstractRSANode {
public abstract boolean isClosed();
protected abstract String getValidName();
-
+
/**
* @since 3.4
*/
- protected String getErrorName(){
+ protected String getErrorName() {
return ERROR;
}
-
+
/**
* @since 3.4
*/
protected String getClosedName() {
return CLOSED;
}
-
+
public abstract ServiceReference getServiceReference();
public String getName() {
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExceptionNode.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExceptionNode.java
index 093def399..b2eaeffb3 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExceptionNode.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExceptionNode.java
@@ -16,16 +16,16 @@ public class ExceptionNode extends NameValuePropertyNode {
public ExceptionNode(String exceptionLabel, Throwable exception, boolean showStack) {
super(exceptionLabel, exception.getLocalizedMessage());
if (showStack) {
- for(StackTraceElement ste: exception.getStackTrace())
+ for (StackTraceElement ste : exception.getStackTrace())
addChild(new StackTraceElementNode(ste.toString()));
Throwable cause = exception.getCause();
if (cause != null)
- addChild(new ExceptionNode(cause,true));
+ addChild(new ExceptionNode(cause, true));
}
}
public ExceptionNode(Throwable exception, boolean showStack) {
- this("",exception, showStack);
+ this("", exception, showStack);
setNameValueSeparator("");
}
}
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExportRegistrationNode.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExportRegistrationNode.java
index cb8bce7f2..b5d3c051c 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExportRegistrationNode.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ExportRegistrationNode.java
@@ -41,7 +41,7 @@ public class ExportRegistrationNode extends AbstractRegistrationNode {
protected String getErrorName() {
return "Export " + super.getErrorName();
}
-
+
protected ExportRegistration getExportRegistration() {
return this.exportRegistration;
}
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ImportRegistrationNode.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ImportRegistrationNode.java
index 66fef6765..f0246760f 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ImportRegistrationNode.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/ImportRegistrationNode.java
@@ -41,7 +41,6 @@ public class ImportRegistrationNode extends AbstractRegistrationNode {
protected String getErrorName() {
return "Import " + super.getErrorName();
}
-
protected ImportRegistration getImportRegistration() {
return this.importRegistration;
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/RSAAdapterFactory.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/RSAAdapterFactory.java
index 779a42116..280a00fd3 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/RSAAdapterFactory.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/RSAAdapterFactory.java
@@ -25,7 +25,7 @@ public class RSAAdapterFactory implements IAdapterFactory {
private NameValuePropertyNodeWorkbenchAdapter nameValuePropertyAdapter = new NameValuePropertyNodeWorkbenchAdapter();
private EndpointDescriptionRSANodeWorkbenchAdapter edAdapter = new EndpointDescriptionRSANodeWorkbenchAdapter();
private ExceptionNodeWorkbenchAdapter enAdapter = new ExceptionNodeWorkbenchAdapter();
-
+
@Override
public Object getAdapter(Object adaptableObject, @SuppressWarnings("rawtypes") Class adapterType) {
if (adapterType.isInstance(adaptableObject)) {
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/StackTraceElementNode.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/StackTraceElementNode.java
index 70c0f854c..012ad6ec8 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/StackTraceElementNode.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/rsa/model/StackTraceElementNode.java
@@ -14,7 +14,7 @@ package org.eclipse.ecf.remoteserviceadmin.ui.rsa.model;
public class StackTraceElementNode extends NameValuePropertyNode {
public StackTraceElementNode(String stackTraceElement) {
- super("at",stackTraceElement);
+ super("at", stackTraceElement);
setNameValueSeparator(" ");
}
}
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteservices/ui/MethodInvocationDialog.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteservices/ui/MethodInvocationDialog.java
index de4eea837..47e550b8f 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteservices/ui/MethodInvocationDialog.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteservices/ui/MethodInvocationDialog.java
@@ -68,31 +68,27 @@ public final class MethodInvocationDialog extends Dialog {
public static final int ASYNC_LISTENER = 0;
/**
- * An integer constant that corresponds to the "Async Future Result"
- * selection.
+ * An integer constant that corresponds to the "Async Future Result" selection.
*
* @see #getInvocationType()
*/
public static final int ASYNC_FUTURE_RESULT = ASYNC_LISTENER + 1;
/**
- * An integer constant that corresponds to the "Async Fire-and-Go"
- * selection.
+ * An integer constant that corresponds to the "Async Fire-and-Go" selection.
*
* @see #getInvocationType()
*/
public static final int ASYNC_FIRE_AND_GO = ASYNC_FUTURE_RESULT + 1;
/**
- * An integer constant that corresponds to the "OSGi Service Proxy"
- * selection.
+ * An integer constant that corresponds to the "OSGi Service Proxy" selection.
*
* @see #getInvocationType()
*/
public static final int OSGI_SERVICE_PROXY = ASYNC_FIRE_AND_GO + 1;
/**
- * An integer constant that corresponds to the "Remote Service Proxy"
- * selection.
+ * An integer constant that corresponds to the "Remote Service Proxy" selection.
*
* @see #getInvocationType()
*/
@@ -124,13 +120,10 @@ public final class MethodInvocationDialog extends Dialog {
private int invocationType;
/**
- * Creates a new MethodInvocationDialog on top of the specified shell
- * provider.
+ * Creates a new MethodInvocationDialog on top of the specified shell provider.
*
- * @param parentShell
- * the provider to return the parent shell of this dialog
- * @param cls
- * the class to select the methods from
+ * @param parentShell the provider to return the parent shell of this dialog
+ * @param cls the class to select the methods from
*/
public MethodInvocationDialog(IShellProvider parentShell, Class cls) {
super(parentShell);
@@ -174,10 +167,8 @@ public final class MethodInvocationDialog extends Dialog {
/**
* Creates a new MethodInvocationDialog over the provided shell.
*
- * @param parentShell
- * the parent shell
- * @param cls
- * the class to select the methods from
+ * @param parentShell the parent shell
+ * @param cls the class to select the methods from
*/
public MethodInvocationDialog(Shell parentShell, Class cls) {
this(new SameShellProvider(parentShell), cls);
@@ -408,8 +399,8 @@ public final class MethodInvocationDialog extends Dialog {
}
/**
- * Retrieves the timeout value that has been specified by the user. This
- * value is in milliseconds.
+ * Retrieves the timeout value that has been specified by the user. This value
+ * is in milliseconds.
*
* @return the timeout valued specified by the user in milliseconds
*/
diff --git a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/.settings/org.eclipse.m2e.core.prefs b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 000000000..f897a7f1c
--- /dev/null
+++ b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF
index ac53d54b8..9cd410796 100644
--- a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF
+++ b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: %bundle.name
Bundle-SymbolicName: org.eclipse.ecf.osgi.services.remoteserviceadmin
Automatic-Module-Name: org.eclipse.ecf.osgi.services.remoteserviceadmin
-Bundle-Version: 4.6.1101.qualifier
+Bundle-Version: 4.6.1102.qualifier
Bundle-Activator: org.eclipse.ecf.internal.osgi.services.remoteserviceadmin.Activator
Bundle-Vendor: %bundle.provider
Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/pom.xml b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/pom.xml
index 7d8a72281..1cfc803d8 100644
--- a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/pom.xml
+++ b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/pom.xml
@@ -10,6 +10,6 @@
</parent>
<groupId>org.eclipse.ecf</groupId>
<artifactId>org.eclipse.ecf.osgi.services.remoteserviceadmin</artifactId>
- <version>4.6.1101-SNAPSHOT</version>
+ <version>4.6.1102-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
diff --git a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java
index e23cc925f..476ba6e60 100644
--- a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java
+++ b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java
@@ -63,7 +63,8 @@ public class Activator implements BundleActivator {
private static Activator instance;
private static final String[] DEPENDENT_BUNDLES = new String[] { "org.eclipse.ecf.identity", "org.eclipse.ecf", //$NON-NLS-1$ //$NON-NLS-2$
- "org.eclipse.ecf.discovery", "org.eclipse.ecf.remoteservice", "org.eclipse.ecf.remoteservice.asyncproxy" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ "org.eclipse.ecf.discovery", "org.eclipse.ecf.remoteservice", "org.eclipse.ecf.remoteservice.asyncproxy", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ "org.eclipse.osgi.services.remoteserviceadmin" }; //$NON-NLS-1$
public static BundleContext getContext() {
return context;
@@ -120,14 +121,18 @@ public class Activator implements BundleActivator {
}
});
List<Capability> capabilities = rb.getCapabilities(namespace);
+ int bundleTypes = rb.getTypes();
if (capabilities != null && capabilities.size() > 0
- && !b.getSymbolicName().equals(hostBundle.getSymbolicName()))
- try {
- b.start();
- } catch (BundleException e) {
- LogUtility.logError("RemoteServiceAdmin.initializeProviders", DebugOptions.REMOTE_SERVICE_ADMIN, //$NON-NLS-1$
- Activator.class, startErrorMessage + " bundle=" + b.getSymbolicName(), e); //$NON-NLS-1$
+ && !b.getSymbolicName().equals(hostBundle.getSymbolicName())) {
+ if ((bundleTypes & BundleRevision.TYPE_FRAGMENT) == 0) {
+ try {
+ b.start();
+ } catch (BundleException e) {
+ LogUtility.logError("RemoteServiceAdmin.initializeProviders", DebugOptions.REMOTE_SERVICE_ADMIN, //$NON-NLS-1$
+ Activator.class, startErrorMessage + " bundle=" + b.getSymbolicName(), e); //$NON-NLS-1$
+ }
}
+ }
}
}
@@ -248,7 +253,7 @@ public class Activator implements BundleActivator {
// approach/using the ServiceFactory extender approach for this purpose:
// https://mail.osgi.org/pipermail/osgi-dev/2011-February/003000.html
initializeProxyServiceFactoryBundle();
-
+
// Start distribution providers if not already started
initializeProviders(context.getBundle(), DistributionNamespace.DISTRIBUTION_NAMESPACE,
"Could not start distribution provider. "); //$NON-NLS-1$
@@ -280,7 +285,8 @@ public class Activator implements BundleActivator {
}
}
}, (Dictionary) rsaProps);
- // Setup tracker for ContainerTypeDescriptions, which will modify the RSA properties when
+ // Setup tracker for ContainerTypeDescriptions, which will modify the RSA
+ // properties when
// added/removed by distribution providers
ctdTracker = new ServiceTracker<ContainerTypeDescription, ContainerTypeDescription>(context,
ContainerTypeDescription.class,
@@ -329,7 +335,7 @@ public class Activator implements BundleActivator {
// start endpointDescriptionLocator
endpointDescriptionLocator.start();
-
+
// Start discovery providers if not already started
initializeProviders(context.getBundle(), DiscoveryNamespace.DISCOVERY_NAMESPACE,
"Could not start discovery provider. "); //$NON-NLS-1$
@@ -454,6 +460,7 @@ public class Activator implements BundleActivator {
}
}
+ @SuppressWarnings("deprecation")
public void log(IStatus status) {
if (logService == null)
logService = getLogService();
@@ -465,6 +472,7 @@ public class Activator implements BundleActivator {
log(sr, LogHelper.getLogCode(status), LogHelper.getLogMessage(status), status.getException());
}
+ @SuppressWarnings("deprecation")
public void log(ServiceReference sr, int level, String message, Throwable t) {
if (logService == null)
logService = getLogService();

Back to the top