Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to create a DirectEditManager using ComboBoxCellEditor in GEF?
How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #23065] Wed, 02 October 2002 17:35 Go to next message
Hal is currently offline HalFriend
Messages: 67
Registered: July 2009
Member
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?

any help is appreciated.
Re: How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #23297 is a reply to message #23065] Wed, 02 October 2002 18:36 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Hal is currently offline HalFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Hal is currently offline HalFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #23827 is a reply to message #23784] Fri, 04 October 2002 22:50 Go to previous messageGo to next message
Hal is currently offline HalFriend
Messages: 67
Registered: July 2009
Member
Randy,

Thank you.


"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:ankt8h$qhv$1@rogue.oti.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.
>
>
Re: How to create a DirectEditManager using ComboBoxCellEditor in GEF? [message #196696 is a reply to message #23065] Fri, 23 September 2005 18:26 Go to previous message
Eclipse UserFriend
Originally posted by: ccastedo.business-innovions.biz

Hi, I´m starting working with the directEditManager, I have a
TextCellEditor inside a figure, and also I have to put a ComboCellEditor
to appear a ComboBox next to this label, I couldn`t do this.
It´s possible please that someone could do this...
Previous Topic:Different EditParts selected in GraphicalViewer and SelectionAction
Next Topic:Is there a standard/common way to select the last EditPart added to a treeViewer?
Goto Forum:
  


Current Time: Wed Jan 15 20:37:01 GMT 2025

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

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

Back to the top