[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[News.eclipse.technology.packaging] Re: UDC in own RCP applications

Sorry for the delay in responding.

The warnings are due to the fact that none of the UDC is currently
exposed as APIs. The PDE is warning you of this.

You shouldn't have to tell the UsageDataService to start monitoring. It
should already be monitoring if you can obtain it.

Wayne

On Wed, 2008-06-25 at 09:38 +0000, Eugen Reiswich wrote:
> Today I was able to get the UsageDataService and record my own commands. 
> However I had some "discouraged access warnings" which I ignored. Is this 
> a proper way to use the service?
> 
> 	this.tracker = new ServiceTracker(Activator.getContext(),
> 			UsageDataService.class.getName(), null);
> 	this.tracker.open();
> 
> 	usageService = (UsageDataService) this.tracker.getService();
> 	Assert.isNotNull(usageService);
> 
> 	this.usageService.startMonitoring();
> 
> Regards,
> Eugen
>