[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools] Problems using the org.eclipse.wst.ws.internal.explorer package
|
- From: derbeatle@xxxxxx (Bernd W.)
- Date: Tue, 8 Sep 2009 12:13:05 +0000 (UTC)
- Newsgroups: eclipse.webtools
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi,
in my own plugin I open a web services explorer window via the
WSExplorerLauncherCommand class.
Therefore I added the org.eclipse.wst.ws.internal.explorer package to my
plugin dependencies.
My code looks as follows:
WSExplorerLauncherCommand wsec = new WSExplorerLauncherCommand();
LaunchOption lo = new LaunchOption(LaunchOptions.WSDL_URL,location);
wsec.setLaunchOptions(new LaunchOption[]{lo});
wsec.execute();
Now the surprising fact: Everything works fine, so the reason why I'm
bugging you is, that eclipse shows up warnings like "Discouraged access:
The type WSExplorerLauncherCommand is not accessible due to restriction on
required library..."
Since the org.eclipse.wst.ws.internal.explorer package exports those
classes to ohter plugins, I don't understand these warnings.
Is there any better, any correct way to access the mentioned classes? (I
dislike the solution with @SuppressWarnings("restriction"))
Thanks,
Bernd