Direct Editor CellEditor in GEF [message #66235] |
Sat, 22 February 2003 15:59  |
Eclipse User |
|
|
|
Originally posted by: oro7d3.netscape.net
Hi,
I implement own cell editor,
it has a button as its control (a private attribute) and I create that
button in my createControl() method:
private Button model1 = null;
protected Control createControl(Composite parent) {
model1 = new Button(group);
}
And the I create another class to init the cell editor.
I put breakpoints in my both createContron() and doSetValue() method of
my CellEditor. First the createControl() call, and model1 is NOT null and
then doSetValue() gets called, but what I find out is the model1 is NULL.
Can someone please tell me why? In the debugger, there is only 1 instance of
MyCellEditor created, so I don't understand why all the sudden the veriable
model1 becomes null.
thank you for any help.
|
|
|
Re: Direct Editor CellEditor in GEF [message #66258 is a reply to message #66235] |
Sat, 22 February 2003 17:54   |
Eclipse User |
|
|
|
Originally posted by: oro7d3.netscape.net
And the control I create is a Private attribute. If My celleditor does not
set it to Null, how can it gets to null? And my celleditor does not set it
to null (i.e. I don't have stuff like "model1 = null;").
and I also put a breakpoint at the end of createControl(), the attribute
button is NOT null.
but when I break at doSetValue() later, it becomes Null.
"oro" <oro7d3@netscape.net> wrote in message
news:b38mmp$deh$1@rogue.oti.com...
> Hi,
>
> I implement own cell editor,
>
> it has a button as its control (a private attribute) and I create that
> button in my createControl() method:
> private Button model1 = null;
>
> protected Control createControl(Composite parent) {
>
> model1 = new Button(group);
>
> }
>
> And the I create another class to init the cell editor.
>
> I put breakpoints in my both createContron() and doSetValue() method of
> my CellEditor. First the createControl() call, and model1 is NOT null and
> then doSetValue() gets called, but what I find out is the model1 is NULL.
>
> Can someone please tell me why? In the debugger, there is only 1 instance
of
> MyCellEditor created, so I don't understand why all the sudden the
veriable
> model1 becomes null.
>
> thank you for any help.
>
>
>
>
>
>
>
>
|
|
|
Re: Direct Editor CellEditor in GEF [message #66300 is a reply to message #66258] |
Sun, 23 February 2003 17:48  |
Eclipse User |
|
|
|
Originally posted by: oro7d3.netscape.net
I solve the problem. Sorrry for the confusion.
"oro" <oro7d3@netscape.net> wrote in message
news:b38tet$g07$1@rogue.oti.com...
>
> And the control I create is a Private attribute. If My celleditor does not
> set it to Null, how can it gets to null? And my celleditor does not set it
> to null (i.e. I don't have stuff like "model1 = null;").
>
> and I also put a breakpoint at the end of createControl(), the attribute
> button is NOT null.
> but when I break at doSetValue() later, it becomes Null.
>
>
>
> "oro" <oro7d3@netscape.net> wrote in message
> news:b38mmp$deh$1@rogue.oti.com...
> > Hi,
> >
> > I implement own cell editor,
> >
> > it has a button as its control (a private attribute) and I create that
> > button in my createControl() method:
> > private Button model1 = null;
> >
> > protected Control createControl(Composite parent) {
> >
> > model1 = new Button(group);
> >
> > }
> >
> > And the I create another class to init the cell editor.
> >
> > I put breakpoints in my both createContron() and doSetValue() method
of
> > my CellEditor. First the createControl() call, and model1 is NOT null
and
> > then doSetValue() gets called, but what I find out is the model1 is
NULL.
> >
> > Can someone please tell me why? In the debugger, there is only 1
instance
> of
> > MyCellEditor created, so I don't understand why all the sudden the
> veriable
> > model1 becomes null.
> >
> > thank you for any help.
> >
> >
> >
> >
> >
> >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05246 seconds