Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Direct Editor CellEditor in GEF
Direct Editor CellEditor in GEF [message #66235] Sat, 22 February 2003 20:59 Go to next message
Eclipse UserFriend
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 22:54 Go to previous messageGo to next message
Eclipse UserFriend
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 22:48 Go to previous message
Eclipse UserFriend
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.
> >
> >
> >
> >
> >
> >
> >
> >
>
>
Previous Topic:GEF and background images
Next Topic:Text, Icon Alignment in draw 2D label
Goto Forum:
  


Current Time: Sat Sep 28 02:20:44 GMT 2024

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

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

Back to the top