Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Direct Edit in GEF
Direct Edit in GEF [message #56313] Sun, 19 January 2003 20:21 Go to next message
yinglcs is currently offline yinglcsFriend
Messages: 64
Registered: July 2009
Member
Hi,
I am trying to make Direct Edit of my figure to open a Dialog when user
clicks on the label.
Is this possible? I am at a one where a Dialog (shell) does show up but it
disappears and it said "widget is disposed" in the direct edit manager.

Thanks for any feedback.
Re: Direct Edit in GEF [message #56329 is a reply to message #56313] Sun, 19 January 2003 20:29 Go to previous messageGo to next message
Eric Bordeau is currently offline Eric BordeauFriend
Messages: 259
Registered: July 2009
Senior Member
You're probably trying to access the CellEditor after the dialog is opened. DirectEditManager
commits the current cell editor value when it loses focus (like when your dialog opens) and then the
cell editor is disposed. What is the dialog for? I'm not sure why you'd need a cell editor if
you're going to open a dialog for editing.

Eric


yinglcs wrote:
> Hi,
> I am trying to make Direct Edit of my figure to open a Dialog when user
> clicks on the label.
> Is this possible? I am at a one where a Dialog (shell) does show up but it
> disappears and it said "widget is disposed" in the direct edit manager.
>
> Thanks for any feedback.
>
>
>
Re: Direct Edit in GEF [message #56341 is a reply to message #56329] Sun, 19 January 2003 20:55 Go to previous messageGo to next message
yinglcs is currently offline yinglcsFriend
Messages: 64
Registered: July 2009
Member
Here is what I want my Direct Edit to work:
- when user click on a label, it opens up a small panel of Check boxes, and
user able to click more than one of those check boxes and my direct edit
manager will build a new string based on the user selection of those boxes.

So I am thinking my direct edit manager will open a small shell which
contains those checkboxes, and a button for user to close that shell. After
the dialog is closed , I will re-set the string value of the label.

Do you think this is a right approach?


"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b0f0qh$r0j$1@rogue.oti.com...
> You're probably trying to access the CellEditor after the dialog is
opened. DirectEditManager
> commits the current cell editor value when it loses focus (like when your
dialog opens) and then the
> cell editor is disposed. What is the dialog for? I'm not sure why you'd
need a cell editor if
> you're going to open a dialog for editing.
>
> Eric
>
>
> yinglcs wrote:
> > Hi,
> > I am trying to make Direct Edit of my figure to open a Dialog when user
> > clicks on the label.
> > Is this possible? I am at a one where a Dialog (shell) does show up but
it
> > disappears and it said "widget is disposed" in the direct edit manager.
> >
> > Thanks for any feedback.
> >
> >
> >
>
Re: Direct Edit in GEF [message #56515 is a reply to message #56329] Mon, 20 January 2003 15:47 Go to previous messageGo to next message
yinglcs is currently offline yinglcsFriend
Messages: 64
Registered: July 2009
Member
how should I implement my direct edit so that it pops up a shell when the
label is doubled clicked?

what classes I need to create? Do I need my own DriectEditrManager? but no
cell editor?
Thanks.

"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b0f0qh$r0j$1@rogue.oti.com...
> You're probably trying to access the CellEditor after the dialog is
opened. DirectEditManager
> commits the current cell editor value when it loses focus (like when your
dialog opens) and then the
> cell editor is disposed. What is the dialog for? I'm not sure why you'd
need a cell editor if
> you're going to open a dialog for editing.
>
> Eric
>
>
> yinglcs wrote:
> > Hi,
> > I am trying to make Direct Edit of my figure to open a Dialog when user
> > clicks on the label.
> > Is this possible? I am at a one where a Dialog (shell) does show up but
it
> > disappears and it said "widget is disposed" in the direct edit manager.
> >
> > Thanks for any feedback.
> >
> >
> >
>
Re: Direct Edit in GEF [message #58385 is a reply to message #56515] Mon, 27 January 2003 20:17 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.i_b_m.com

"yinglcs" <yinglcs@netscape.com> wrote in message
news:b0h4k8$1gs$1@rogue.oti.com...
> how should I implement my direct edit so that it pops up a shell when the
> label is doubled clicked?
>
> what classes I need to create? Do I need my own DriectEditrManager? but no
> cell editor?

Yes, I believe DirectEditManager is designed to work with a JFace CellEditor
only. If you want to popup a shell, create some other helper class,
probably a subclass of JFace's Dialog.

> Thanks.
>
> "Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
> news:b0f0qh$r0j$1@rogue.oti.com...
> > You're probably trying to access the CellEditor after the dialog is
> opened. DirectEditManager
> > commits the current cell editor value when it loses focus (like when
your
> dialog opens) and then the
> > cell editor is disposed. What is the dialog for? I'm not sure why
you'd
> need a cell editor if
> > you're going to open a dialog for editing.
> >
> > Eric
> >
> >
> > yinglcs wrote:
> > > Hi,
> > > I am trying to make Direct Edit of my figure to open a Dialog when
user
> > > clicks on the label.
> > > Is this possible? I am at a one where a Dialog (shell) does show up
but
> it
> > > disappears and it said "widget is disposed" in the direct edit
manager.
> > >
> > > Thanks for any feedback.
> > >
> > >
> > >
> >
>
>
Previous Topic:How can I set one of the pages of multipage editor as GEF page?
Next Topic:Error Messages
Goto Forum:
  


Current Time: Fri Apr 26 15:34:10 GMT 2024

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

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

Back to the top