Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Constructor of WaitForShell is package private
Constructor of WaitForShell is package private [message #30220] Wed, 25 March 2009 10:30 Go to next message
Anders Baumann is currently offline Anders BaumannFriend
Messages: 55
Registered: July 2009
Member
Hi Ketan.
I would like to use the public class "WaitForShell", but I can't, because
the constructor is package private. Is that on purpose?

Best regards,
Anders Baumann
Re: Constructor of WaitForShell is package private [message #30256 is a reply to message #30220] Wed, 25 March 2009 11:11 Go to previous messageGo to next message
Anders Baumann is currently offline Anders BaumannFriend
Messages: 55
Registered: July 2009
Member
Sorry. I found the Conditions factory class where there is a static
waitForShell method.

Best regards,
Anders


"Anders Baumann" <anb@maconomy.dk> wrote in message
news:gqd152$jp3$1@build.eclipse.org...
> Hi Ketan.
> I would like to use the public class "WaitForShell", but I can't, because
> the constructor is package private. Is that on purpose?
>
> Best regards,
> Anders Baumann
>
Re: Constructor of WaitForShell is package private [message #30328 is a reply to message #30256] Wed, 25 March 2009 12:21 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
The constructors are private for a good reason, so that clients can
always use the factory methods.

-- Ketan

On 25/3/09 04:11, Anders Baumann wrote:
> Sorry. I found the Conditions factory class where there is a static
> waitForShell method.
>
> Best regards,
> Anders
>
>
> "Anders Baumann"<anb@maconomy.dk> wrote in message
> news:gqd152$jp3$1@build.eclipse.org...
>> Hi Ketan.
>> I would like to use the public class "WaitForShell", but I can't, because
>> the constructor is package private. Is that on purpose?
>>
>> Best regards,
>> Anders Baumann
>>
>
>
Previous Topic:how to access toggle button
Next Topic:EclipseCon 2009 tutorial update
Goto Forum:
  


Current Time: Fri Mar 29 07:05:33 GMT 2024

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

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

Back to the top