| 
| Logic Editor Question: Add a LogicLabel to Circuit [message #21711] | Fri, 27 September 2002 02:01  |  | 
| Eclipse User  |  |  |  |  | Hi, I would like to change the logic in logic editor example, so that every
 circuit has an logic label inside it everytime a user seclect that
 component.
 So In the constructor of teh CircuitEditPart, I add this line:
 addChildVisual(new LogicLabelEditPart(), 0);
 
 I can see the label in the editor, but
 - it just should an empty rectangle, the text "label" is missing.
 - which I click the mose over it, the curser did not change and I can't add
 text inside that logic label
 
 Is there something I miss?
 Thanks for your help again.
 |  |  |  | 
| 
| Re: Logic Editor Question: Add a LogicLabel to Circuit [message #22028 is a reply to message #21711] | Fri, 27 September 2002 14:19   |  | 
| Eclipse User  |  |  |  |  | I tried addChild(new LogicLabelEditPart(), -1) instead of addChildVisual(), it fails with a NullPointer Exception.
 
 When I manually add a LogicLabel to the Container, it did break at
 addChildVisual(), so I don't know what I am missing.
 
 Thanks.
 
 "Sam Cheung" <scheung@novarra.com> wrote in message
 news:an0r2k$rgo$1@rogue.oti.com...
 > Hi,
 > I would like to change the logic in logic editor example, so that every
 > circuit has an logic label inside it everytime a user seclect that
 > component.
 > So In the constructor of teh CircuitEditPart, I add this line:
 > addChildVisual(new LogicLabelEditPart(), 0);
 >
 > I can see the label in the editor, but
 > - it just should an empty rectangle, the text "label" is missing.
 > - which I click the mose over it, the curser did not change and I can't
 add
 > text inside that logic label
 >
 > Is there something I miss?
 > Thanks for your help again.
 >
 >
 |  |  |  | 
| 
| Re: Logic Editor Question: Add a LogicLabel to Circuit [message #22071 is a reply to message #21711] | Fri, 27 September 2002 15:24  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: hudsonr.us.eye-bee-em.com 
 "Sam Cheung" <scheung@novarra.com> wrote in message
 news:an0r2k$rgo$1@rogue.oti.com...
 > Hi,
 > I would like to change the logic in logic editor example, so that every
 > circuit has an logic label inside it everytime a user seclect that
 > component.
 > So In the constructor of teh CircuitEditPart, I add this line:
 > addChildVisual(new LogicLabelEditPart(), 0);
 
 I already responded to this question below.  Do NOT new an EditPart.  You
 need a Label in the *model*, not just in the EditParts.
 
 > I can see the label in the editor, but
 > - it just should an empty rectangle, the text "label" is missing.
 > - which I click the mose over it, the curser did not change and I can't
 add
 > text inside that logic label
 >
 > Is there something I miss?
 > Thanks for your help again.
 >
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.06238 seconds