public void customResultAvailable(IProxyAgentService pas) { pas.getRemoteComponentIdentifier().addResultListener(new DelegationResultListener<IComponentIdentifier>(ret) { public void customResultAvailable(IComponentIdentifier rcid) { cid = rcid; super.customResultAvailable(rcid); } }); } });
ser.getRemoteComponentIdentifier().addResultListener(new SwingResultListener<IComponentIdentifier>(new IResultListener<IComponentIdentifier>()
public IFuture<Void> execute(IInternalAccess ia) { Collection<IProxyAgentService> sers = SServiceProvider.getLocalServices(component, IProxyAgentService.class, RequiredServiceInfo.SCOPE_PLATFORM); if(sers!=null && sers.size()>0) { for(IProxyAgentService ser: sers) { ser.getRemoteComponentIdentifier().addResultListener(new IResultListener<ITransportComponentIdentifier>() { public void resultAvailable(ITransportComponentIdentifier rcid) { newPlatformFound(rcid); } public void exceptionOccurred(Exception exception) { exception.printStackTrace(); } }); } } component.getComponentFeature(IExecutionFeature.class).waitForDelay(10000, this, true); return IFuture.DONE; } });
ps.getRemoteComponentIdentifier().addResultListener(new IResultListener<ITransportComponentIdentifier>()
ps.getRemoteComponentIdentifier().addResultListener(new IResultListener<ITransportComponentIdentifier>()