Discouraged accesses - consequences? [message #463727] |
Thu, 15 February 2007 02:12  |
Eclipse User |
|
|
|
Originally posted by: unidad.gmx.net
Hi!
I'm quite new to the RCP-stuff and I'm developing
a little standalone-RCP-Application.
(Kind of a college term project)
I'm implementing several features and the whole thing evolves.
There's one point I'm not sure about. I have several warnings about
discouraged access:
e.g.:
************************************************************ ***************************
Discouraged access: The type JavaFileEditorInput is not accessible due
to restriction on required library
C:\eclipse\eclipse321\plugins\org.eclipse.ui.editors_3.2.1.r 321_v20060721.jar
************************************************************ ***************************
I assume, one should avoid discouraged accesses, but I can't see the
disadvantages if there are any.
Maybe one can clarify this a bit.
Greetings, Hermann
|
|
|
|
|
|
|
|
|
|
|
Re: Discouraged accesses - consequences? [message #463879 is a reply to message #463815] |
Mon, 19 February 2007 10:20  |
Eclipse User |
|
|
|
Originally posted by: lamont_gilbert.rigidsoftware.com
On Thu, 15 Feb 2007 22:47:11 +0100, Hermann Maier wrote:
> Hi!
>
> Daniel Megert schrieb:
>> Hermann Maier wrote:
>
>>> For instance I use Eclipse 3.2 and want to save a file in a
>>> "saveAs"-dialog outside the workspace. Is there perhaps another "legal"
>>> way doing this in Eclipse 3.2 without using JavaFileEditorInput, which
>>> provides the discouraged access?
>>
>> Only by writing your own editor input.
>
> So, the cleanest solution would be, that I copy the source-code of
> JavaFileEditorInput in one of my own classes and so the functionality will
> persist, even if JavaFileEditorInput changes in underlying plugins?
>
> Greetings, Hermann
The cleanest solution would be to implement your own version of
IEditorInput I have a JavaFileEditorInput myself and its rediculously
simple. Perhaps you can achieve that with simply copy from Eclipse.
|
|
|
Powered by
FUDForum. Page generated in 0.03647 seconds