Simple issue: my java bean is on a composite, but I can't select it in VE [message #79560] |
Tue, 08 February 2005 21:30  |
Eclipse User |
|
|
|
Hello,
I have a simple java bean derived from Composite, that I've created in
VE. I have another Composite onto which I've dropped my bean. It shows
up on the composite in the Visual Editor, but I can't select it, and
thus I can't edit it's properties in the property editor.
It seems like this was working yesterday. Maybe it was my imagination.
Could someone offer me a pointer?
Thanks, Paul
|
|
|
|
|
|
|
Re: Simple issue: my java bean is on a composite, but I can't select it in VE [message #79945 is a reply to message #79764] |
Fri, 11 February 2005 12:09  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
pmurphy wrote:
> Rich Kulp wrote:
>
>> Why couldn't you put your code in the initialize method? That should
>> of been fine. Did you throw some exceptions?
>>
>>
>
> Yes, that's right. I've got a call to MyPlugin.getDefault(). To
> paraphrase:
>
> IMyAbstractAppLogic app = MyPlugin.getDefault()
> .getMyApplicationLogic();
>
> Naturally, this will throw an NPE.
>
> I suppose I could send messages to my appLogic by using events instead
> of via method calls, but that codebase is not currently eclipse-aware.
> It also exists in a command line environment. Does anyone know of any
> effective patterns I could use in this situation?
I believe you can do this in the constructor as opposed to the
initialize method?
CL
|
|
|
Re: Simple issue: my java bean is on a composite, but I can't select it in VE [message #605119 is a reply to message #79560] |
Tue, 08 February 2005 23:37  |
Eclipse User |
|
|
|
pmurphy wrote:
> Hello,
>
> I have a simple java bean derived from Composite, that I've created in
> VE. I have another Composite onto which I've dropped my bean. It shows
> up on the composite in the Visual Editor, but I can't select it, and
> thus I can't edit it's properties in the property editor.
>
> It seems like this was working yesterday. Maybe it was my imagination.
> Could someone offer me a pointer?
>
> Thanks, Paul
I'm sorry. I had code that could only be executed at runtime in my
initialize() method.
Could someone tell me if there is some sort of "post initialize" event
that I could respond to at runtime, to get some initialization work
done? Otherwise, I'll have to do lazy initialization for the bean for
every control which responds to a widgetSelected event.
|
|
|
|
Re: Simple issue: my java bean is on a composite, but I can't select it in VE [message #605169 is a reply to message #79722] |
Wed, 09 February 2005 11:32  |
Eclipse User |
|
|
|
Rich Kulp wrote:
> Why couldn't you put your code in the initialize method? That should of
> been fine. Did you throw some exceptions?
>
>
Yes, that's right. I've got a call to MyPlugin.getDefault(). To
paraphrase:
IMyAbstractAppLogic app = MyPlugin.getDefault()
.getMyApplicationLogic();
Naturally, this will throw an NPE.
I suppose I could send messages to my appLogic by using events instead
of via method calls, but that codebase is not currently eclipse-aware.
It also exists in a command line environment. Does anyone know of any
effective patterns I could use in this situation?
|
|
|
|
Re: Simple issue: my java bean is on a composite, but I can't select it in VE [message #605204 is a reply to message #79764] |
Fri, 11 February 2005 12:09  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
pmurphy wrote:
> Rich Kulp wrote:
>
>> Why couldn't you put your code in the initialize method? That should
>> of been fine. Did you throw some exceptions?
>>
>>
>
> Yes, that's right. I've got a call to MyPlugin.getDefault(). To
> paraphrase:
>
> IMyAbstractAppLogic app = MyPlugin.getDefault()
> .getMyApplicationLogic();
>
> Naturally, this will throw an NPE.
>
> I suppose I could send messages to my appLogic by using events instead
> of via method calls, but that codebase is not currently eclipse-aware.
> It also exists in a command line environment. Does anyone know of any
> effective patterns I could use in this situation?
I believe you can do this in the constructor as opposed to the
initialize method?
CL
|
|
|
Powered by
FUDForum. Page generated in 0.05691 seconds