[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Check for package private type

You can use the Flags.AccXXX constants to test whether neither of public, 
protected or private is present

Cheers

Tobias

"Konstantin Scheglov" <scheglov_ke@xxxxxxx> wrote in message 
news:LDy2VR1ZFHA.4064@xxxxxxxxxxxxxxxx
>
>   How can I check that type (IType) is package private?
>   I see that I can use Flags class to do this, for example:
>
> IType providerType = 
> m_Viewer.getEditor().getProject().findType(qualifiedName);
> if (providerType.isLocal() || !Flags.isPublic(providerType.getFlags())) {
> return;
> }
>
>  but I don't see method for package private check.
>
> -- 
> SY, Konstantin.
> Advanced Eclipse SWT Designer (http://www.swt-designer.com)