Discouraged access ! (Warning) [message #181425] |
Thu, 23 November 2006 02:21  |
Eclipse User |
|
|
|
Originally posted by: ashivasw.yahoo.com
Hi,
I wanted to reuse some of the APIs when trying to construct a new project
wizard. The wizard basically accepts project name and location with a
checkbox meant to toggle between default location and a user-specified
location. Basically, I didn't want to rewrite the wizard myself and hence
thought of reusing some apis from the following plugins:
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
import org.eclipse.ui.internal.ide.dialogs.FileSystemSelectionArea;
import org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils;
import org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationA rea;
import
org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationA rea.IErrorMessageReporter;
import org.eclipse.ui.internal.ide.filesystem.FileSystemConfigurati on;
import org.eclipse.ui.internal.ide.filesystem.FileSystemSupportRegi stry;
This works for me but looks like these are internal apis which I am not
supposed to use for my plugin development.
If I use these, I see a warning which says:
"Discouraged access: The type IDEWorkbenchMessages is not accessible due
to restriction on required library
C:\calisto_eclipse\eclipse\plugins\org.eclipse.ui.ide_3.2.0. I20060605-1400.jar "
, etc.....
Can anyone let me know if there is a wrapper on top of these which are
made public so that I can reuse them ? Otherwise, looks like the entire
wizard has to be re-coded for my requirement which is not what I want to
do.
Thanks in advance for your help.
|
|
|
Re: Discouraged access ! (Warning) [message #181436 is a reply to message #181425] |
Thu, 23 November 2006 03:32  |
Eclipse User |
|
|
|
Arun wrote:
> Hi,
>
> I wanted to reuse some of the APIs when trying to construct a new
> project wizard. The wizard basically accepts project name and location
> with a checkbox meant to toggle between default location and a
> user-specified location. Basically, I didn't want to rewrite the
> wizard myself and hence thought of reusing some apis from the
> following plugins:
>
> import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
> import org.eclipse.ui.internal.ide.dialogs.FileSystemSelectionArea;
> import org.eclipse.ui.internal.ide.dialogs.IDEResourceInfoUtils;
> import org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationA rea;
> import
> org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationA rea.IErrorMessageReporter;
>
> import org.eclipse.ui.internal.ide.filesystem.FileSystemConfigurati on;
> import org.eclipse.ui.internal.ide.filesystem.FileSystemSupportRegi stry;
>
>
> This works for me but looks like these are internal apis which I am
> not supposed to use for my plugin development.
Right, see
http://www.eclipse.org/articles/Article-API%20use/eclipse-ap i-usage-rules.html
which explains what is API and what is not. Especially, there's no such
thing like "internal API" ;-)
Dani
> If I use these, I see a warning which says:
> "Discouraged access: The type IDEWorkbenchMessages is not accessible
> due to restriction on required library
> C:\calisto_eclipse\eclipse\plugins\org.eclipse.ui.ide_3.2.0. I20060605-1400.jar "
> , etc.....
>
> Can anyone let me know if there is a wrapper on top of these which are
> made public so that I can reuse them ? Otherwise, looks like the
> entire wizard has to be re-coded for my requirement which is not what
> I want to do.
>
> Thanks in advance for your help.
>
|
|
|
Powered by
FUDForum. Page generated in 0.08176 seconds