Home » Eclipse Projects » GEF » How to create a DirectEditManager using ComboBoxCellEditor in GEF?
|
Re: How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #23297 is a reply to message #23065] |
Wed, 02 October 2002 18:36 |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
"Hal" <otaconss2@hotmail.com> wrote in message
news:anf9g5$q89$1@rogue.oti.com...
> Hi,
>
> Is it possible use ComboBoxCellEditor instead of TextCellEditor as the
cell
> editor for my Edit Manager
>
> it works if I do this:
> directEditManager = new MyEditManager ( aEditPart, TextCellEditor.class,
> aCellEditorLocator);
> but can I do this:
> directEditManager = new MyEditManager ( aEditPart, ComboCellEditor.class,
> aCellEditorLocator);
>
> it does not work. Is there something else I need to do?
Can you be more descriptive? Do you not see the ComboCellEditor at all?
|
|
|
Re: How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #23318 is a reply to message #23297] |
Wed, 02 October 2002 20:05 |
Hal Messages: 67 Registered: July 2009 |
Member |
|
|
No, i don't see anything.
When I use TextCellEditor, when I click on it, i can see a cursor on the
editpart and I can change text.
But when i switch to ComboBoxCellEditor, when i click on it, I don't see
anything.
Thanks for your help.
"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:anfd44$se4$1@rogue.oti.com...
>
> "Hal" <otaconss2@hotmail.com> wrote in message
> news:anf9g5$q89$1@rogue.oti.com...
> > Hi,
> >
> > Is it possible use ComboBoxCellEditor instead of TextCellEditor as the
> cell
> > editor for my Edit Manager
> >
> > it works if I do this:
> > directEditManager = new MyEditManager ( aEditPart, TextCellEditor.class,
> > aCellEditorLocator);
> > but can I do this:
> > directEditManager = new MyEditManager ( aEditPart,
ComboCellEditor.class,
> > aCellEditorLocator);
> >
> > it does not work. Is there something else I need to do?
>
> Can you be more descriptive? Do you not see the ComboCellEditor at all?
>
>
>
|
|
|
Re: How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #23361 is a reply to message #23318] |
Thu, 03 October 2002 00:01 |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
I don't have time to hack the Logic Editor to use a ComboCellEditor right
now.
Here is how I would debug it:
A) Is a Combo Control even being created? Breakpoint in constructor of
SWT's Combo.
B) Where is your Locator placing the Combo? Perhaps computeBounds(-1,-1)
isn't very meaningful for a combo, especially if it isn't showing the
current value. See DirectEditManager.show(), that is where the CellEditor
is positioned initially.
"Hal" <otaconss2@hotmail.com> wrote in message
news:anfi99$ve3$1@rogue.oti.com...
> No, i don't see anything.
> When I use TextCellEditor, when I click on it, i can see a cursor on the
> editpart and I can change text.
>
> But when i switch to ComboBoxCellEditor, when i click on it, I don't see
> anything.
>
> Thanks for your help.
>
> "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> news:anfd44$se4$1@rogue.oti.com...
> >
> > "Hal" <otaconss2@hotmail.com> wrote in message
> > news:anf9g5$q89$1@rogue.oti.com...
> > > Hi,
> > >
> > > Is it possible use ComboBoxCellEditor instead of TextCellEditor as the
> > cell
> > > editor for my Edit Manager
> > >
> > > it works if I do this:
> > > directEditManager = new MyEditManager ( aEditPart,
TextCellEditor.class,
> > > aCellEditorLocator);
> > > but can I do this:
> > > directEditManager = new MyEditManager ( aEditPart,
> ComboCellEditor.class,
> > > aCellEditorLocator);
> > >
> > > it does not work. Is there something else I need to do?
> >
> > Can you be more descriptive? Do you not see the ComboCellEditor at all?
> >
> >
> >
>
>
|
|
|
Re: How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #23743 is a reply to message #23361] |
Fri, 04 October 2002 20:35 |
Hal Messages: 67 Registered: July 2009 |
Member |
|
|
a CCombo object is creaetd.
But I got this exception afterward:
Unhandled exception caught in event loop.
Reason:
org.eclipse.swt.custom.CCombo.
but I don't know which exception is being thrown in CCombo. When I setup
Eclipse to break at java.lang.Exception, it just breaks at
ClassNotFoundException.
Any help is appreciate.
Thank you.
"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:ang046$60v$1@rogue.oti.com...
> I don't have time to hack the Logic Editor to use a ComboCellEditor right
> now.
> Here is how I would debug it:
>
> A) Is a Combo Control even being created? Breakpoint in constructor of
> SWT's Combo.
> B) Where is your Locator placing the Combo? Perhaps computeBounds(-1,-1)
> isn't very meaningful for a combo, especially if it isn't showing the
> current value. See DirectEditManager.show(), that is where the CellEditor
> is positioned initially.
>
> "Hal" <otaconss2@hotmail.com> wrote in message
> news:anfi99$ve3$1@rogue.oti.com...
> > No, i don't see anything.
> > When I use TextCellEditor, when I click on it, i can see a cursor on the
> > editpart and I can change text.
> >
> > But when i switch to ComboBoxCellEditor, when i click on it, I don't see
> > anything.
> >
> > Thanks for your help.
> >
> > "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> > news:anfd44$se4$1@rogue.oti.com...
> > >
> > > "Hal" <otaconss2@hotmail.com> wrote in message
> > > news:anf9g5$q89$1@rogue.oti.com...
> > > > Hi,
> > > >
> > > > Is it possible use ComboBoxCellEditor instead of TextCellEditor as
the
> > > cell
> > > > editor for my Edit Manager
> > > >
> > > > it works if I do this:
> > > > directEditManager = new MyEditManager ( aEditPart,
> TextCellEditor.class,
> > > > aCellEditorLocator);
> > > > but can I do this:
> > > > directEditManager = new MyEditManager ( aEditPart,
> > ComboCellEditor.class,
> > > > aCellEditorLocator);
> > > >
> > > > it does not work. Is there something else I need to do?
> > >
> > > Can you be more descriptive? Do you not see the ComboCellEditor at
all?
> > >
> > >
> > >
> >
> >
>
>
|
|
|
Re: How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #23784 is a reply to message #23743] |
Fri, 04 October 2002 20:43 |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
"Hal" <otaconss2@hotmail.com> wrote in message
news:anksoj$qab$1@rogue.oti.com...
> a CCombo object is creaetd.
> But I got this exception afterward:
> Unhandled exception caught in event loop.
> Reason:
> org.eclipse.swt.custom.CCombo.
>
> but I don't know which exception is being thrown in CCombo. When I setup
> Eclipse to break at java.lang.Exception, it just breaks at
> ClassNotFoundException.
Look in your runtime-workspace/.metadata/.log file. The complete stacktrace
from the exception is logged there.
|
|
| | |
Goto Forum:
Current Time: Wed Feb 05 14:11:23 GMT 2025
Powered by FUDForum. Page generated in 0.04166 seconds
|