|
Re: Access to org.eclipse.swt.widgets.Composite forbidden [message #53119 is a reply to message #52495] |
Thu, 18 October 2007 08:18 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
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...).
Ciao
Frank
"Alexander Forschner" <alexander.forschner@uni-ulm.de> schrieb im
Newsbeitrag news:ff50i8$b6m$1@build.eclipse.org...
> Hey there.
>
> Is it correct, that I'm not able to
|
|
|
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 Messages: 21 Registered: July 2009 |
Junior Member |
|
|
Hi Frank.
Frank Appel schrieb:
> Hi,
>
> 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.
Tanks.
Alex
|
|
|
|
Re: Access to org.eclipse.swt.widgets.Composite forbidden [message #54184 is a reply to message #53247] |
Mon, 22 October 2007 14:29 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
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
Plug-in-Development properly?
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
http://www.thescreencast.com/2007/10/first-look-at-eclipse-r ich-ajax.html,
which shows how it is done. Sorry that I don't have any better idea at the
moment.
Ciao
Frank
"Alexander Forschner" <alexander.forschner@uni-ulm.de> schrieb im
Newsbeitrag news:ff78ub$jv0$1@build.eclipse.org...
> Frank Appel schrieb:
>> Hi,
>>
>> 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.
>
> Thanks.
> Alex
|
|
|
Powered by
FUDForum. Page generated in 0.03584 seconds