Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Access to org.eclipse.swt.widgets.Composite forbidden
Access to org.eclipse.swt.widgets.Composite forbidden [message #52495] Wed, 17 October 2007 12:52 Go to next message
Alexander Forschnr is currently offline Alexander ForschnrFriend
Messages: 21
Registered: July 2009
Junior Member
Hey there.

Is it correct, that I'm not able to înstanciate
org.eclipse.swt.widgets.Composite?

If I try to do so, I get the following error:

Access restriction: The type Composite is not accessible due to
restriction on required library
D:\rap\eclipse\plugins\org.eclipse.rap.rwt_1.0.0.20070817-15 25.jar

Is there any way, to create instances of this object or is it not
wanted, that one creates instances?

Greez
Alex
Re: Access to org.eclipse.swt.widgets.Composite forbidden [message #53119 is a reply to message #52495] Thu, 18 October 2007 08:18 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Alexander Forschnr is currently offline Alexander ForschnrFriend
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 #53247 is a reply to message #53119] Thu, 18 October 2007 09:27 Go to previous messageGo to next message
Alexander Forschnr is currently offline Alexander ForschnrFriend
Messages: 21
Registered: July 2009
Junior Member
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
Re: Access to org.eclipse.swt.widgets.Composite forbidden [message #54184 is a reply to message #53247] Mon, 22 October 2007 14:29 Go to previous message
Eclipse UserFriend
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
Previous Topic:Exception: No context available outside of the request service lifecycle
Next Topic:NUllPointerException after updating to 1.0
Goto Forum:
  


Current Time: Wed Dec 11 22:36:19 GMT 2024

Powered by FUDForum. Page generated in 0.02968 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top