Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ide4edu-dev] Discouraged Access

We broke this rule with the "Lite" Java wizards, and have been slowly working toward getting ourselves to a more valid state. This warning is just that: a warning. The "internal" stuff is not intended to be used and may change. It is not official API. We've already been burned by this once when they changed a method signature between Eclipse 3.4 and 3.5. Ideally, we will always try and find a way to not use internal stuff. When we do use it (in those rare cases), we need to be aware that we are accepting the fact that our code make break with some future release of the underlying framework.

Does that make sense?

Wayne

Souvik Roy wrote:
Hello Nil,
Yes, You cannot access those packages simply because they are not meant to be extended by other classes. Sadly many of these classes just does the work that we need, but we are not supposed (or allowed) to use it. I'm pretty sure there are other APi's which would support what you are tryin to do ATM. If there is any better workaround for this, I'd love to hear it

Regs
Souvik

On Thu, Oct 1, 2009 at 10:01 PM, Nil Goyette <nilgoyette@xxxxxxxxx <mailto:nilgoyette@xxxxxxxxx>> wrote:

    Hi,

    Peter Lorimer and I were working on the assignment view which use
    the cheatsheet classes. I was intriged to see a lot of warning
    that say :
    "Discouraged access : The type ### is not accessible due to
    restriction on required library ###.jar"

    So, I red the
    page http://www.eclipse.org/articles/article.php?file=Article-API-Use/index.html who
    gives some information about what we can use and what we should
    never use if we want our program to work on the next version of
Eclipse. I want to draw your attention to the part that say :
    "org.eclipse.foo.internal.* - not API; internal implementation
    packages"

    So, are we supposed to fallow that rule? If I can't use "internal"
    classes, I don't see how can I can use/extends the cheatsheet
    classes...

    Thanks.

    _______________________________________________
    ide4edu-dev mailing list
    ide4edu-dev@xxxxxxxxxxx <mailto:ide4edu-dev@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/ide4edu-dev


------------------------------------------------------------------------

_______________________________________________
ide4edu-dev mailing list
ide4edu-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ide4edu-dev


Back to the top