|Re: Access to org.eclipse.swt.widgets.Composite forbidden [message #53221 is a reply to message #53119]
||Thu, 18 October 2007 09:17
| Alexander Forschnr
Registered: July 2009
Frank Appel schrieb:
> the type Composite should be accessible for implementation. It is not
> declared as internal and used in a lot of cases. There may be a problem with
> your target specification - it's difficult to say without any further
> information. Maybe you should try to clear your workspace and see whether
> the problem persists (I know this comes a little bit of out of desperation
> since I don't have a better clue at the moment...).
I imported all my projects into a new workspace, but the problem is
still the same: when I type, for example, "final Composite parentForm =
swtContext.getParentComposite();", I expect eclipse to import
"Composite", after I hit STRG+Space after the word "Composite".
Eclipse wants to import composite, but either from java.awt or from
sun.java2d...., but that's not, what I need.
Eclips still tells me, that I can not access "Composite" due to access
restrictions. It offers me to configure the access rules, but I don't
know anything about this rules and where to configure, what is
accessable and what isn't.
Could you create a new project, using composite and make a test, if this
works? I'll do this here, too and tell you the result.
|Re: Access to org.eclipse.swt.widgets.Composite forbidden [message #54184 is a reply to message #53247]
||Mon, 22 October 2007 14:29
Originally posted by: fappel.innoopract.com|
the access restriction in the jar file's manifest are correct. Only non
internal packages are exported and org.eclipse.swt.widgets that contains
Composite is one of the exported packages. I also can create a new project
and use the RWT composite.
How did you install RAP - using the update site (tooling) or the target
download? Did you adjust the Target-Platform settings in the preferences for
You may retry use the update-site approach, since it contains a wizard that
creates RAP projects from a template - so it could be helpful to see if that
works. There's a nice screencast available at
which shows how it is done. Sorry that I don't have any better idea at the
"Alexander Forschner" <firstname.lastname@example.org> schrieb im
> Frank Appel schrieb:
>> the type Composite should be accessible for implementation. It is not
>> declared as internal and used in a lot of cases. There may be a problem
>> with your target specification - it's difficult to say without any
>> further information. Maybe you should try to clear your workspace and see
>> whether the problem persists (I know this comes a little bit of out of
>> desperation since I don't have a better clue at the moment...).
> Could you please check, if it is enough, to grad access to
> org/eclipse/swt/widgets/*? Maybe, you have to grand access to
> org/eclipse/swt/widgets/** or to any subpackage? I'm not able to configure
> this by myself, because it seems to be fixt in the .jar-file.
Powered by FUDForum
. Page generated in 0.05006 seconds