Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Editable Labels with Connections
Editable Labels with Connections [message #174769] Fri, 01 April 2005 01:18 Go to next message
Eclipse UserFriend
Originally posted by: binti.ksu.edu

Dear All,

Is there a way to add editable labels with connections.

Like we do...
connection.add(new Label("not editable"));

I want to know a way of either editing these labels i.e. change the text
that appears on it or some other way round the problem.

Regards,
Binti
Re: Editable Labels with Connections [message #174793 is a reply to message #174769] Fri, 01 April 2005 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You can make those labels editable just like any other label would be.
If they aren't individual editparts, you can just hit-test the figures when
you get the direct-edit request

"Binti Sepaha" <binti@ksu.edu> wrote in message
news:d2i7li$egh$1@news.eclipse.org...
> Dear All,
>
> Is there a way to add editable labels with connections.
>
> Like we do...
> connection.add(new Label("not editable"));
>
> I want to know a way of either editing these labels i.e. change the text
> that appears on it or some other way round the problem.
>
> Regards,
> Binti
>
Re: Editable Labels with Connections [message #174875 is a reply to message #174793] Fri, 01 April 2005 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: binti.ksu.edu

What do you mean by 'just like any other label would be'?

Is there no other way than writing the direct edit policy and an assoiciated
command?

Binti.


"Randy Hudson" <none@us.ibm.com> wrote in message
news:d2ihkh$p9g$1@news.eclipse.org...
> You can make those labels editable just like any other label would be.
> If they aren't individual editparts, you can just hit-test the figures
> when you get the direct-edit request
>
> "Binti Sepaha" <binti@ksu.edu> wrote in message
> news:d2i7li$egh$1@news.eclipse.org...
>> Dear All,
>>
>> Is there a way to add editable labels with connections.
>>
>> Like we do...
>> connection.add(new Label("not editable"));
>>
>> I want to know a way of either editing these labels i.e. change the text
>> that appears on it or some other way round the problem.
>>
>> Regards,
>> Binti
>>
>
>
Re: Editable Labels with Connections [message #174933 is a reply to message #174875] Fri, 01 April 2005 16:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

I am looking at adding names to my edit parts. I looked at simply
adding a Label figure to the returned figure of the edit part but its
not dynamic enough. I want to be able to move the name and/or positing
it. Adding a LabelEditPart is a much more dynamic approach.

So I am going to do this and add this edit part as a child of the edit
parts I want to have a name.

You can probably do the same.


CL



Binti Sepaha wrote:
> What do you mean by 'just like any other label would be'?
>
> Is there no other way than writing the direct edit policy and an assoiciated
> command?
>
> Binti.
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:d2ihkh$p9g$1@news.eclipse.org...
>
>>You can make those labels editable just like any other label would be.
>>If they aren't individual editparts, you can just hit-test the figures
>>when you get the direct-edit request
>>
>>"Binti Sepaha" <binti@ksu.edu> wrote in message
>>news:d2i7li$egh$1@news.eclipse.org...
>>
>>>Dear All,
>>>
>>>Is there a way to add editable labels with connections.
>>>
>>>Like we do...
>>>connection.add(new Label("not editable"));
>>>
>>>I want to know a way of either editing these labels i.e. change the text
>>>that appears on it or some other way round the problem.
>>>
>>>Regards,
>>>Binti
>>>
>>
>>
>
>
Re: Editable Labels with Connections [message #174949 is a reply to message #174933] Fri, 01 April 2005 16:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: binti.ksu.edu

I have editable names to my other objects and they have a directedit policy
for chagning these names. I have an editableLabel and I have added it to all
my objects.

I just wanted to know if this is the way I have to do for connections too. I
guess YES. I will go ahead and start doing that.

Thanks,
Binti.

"CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
news:d2ju57$ocf$2@news.eclipse.org...
>I am looking at adding names to my edit parts. I looked at simply adding a
>Label figure to the returned figure of the edit part but its not dynamic
>enough. I want to be able to move the name and/or positing it. Adding a
>LabelEditPart is a much more dynamic approach.
>
> So I am going to do this and add this edit part as a child of the edit
> parts I want to have a name.
>
> You can probably do the same.
>
>
> CL
>
>
>
> Binti Sepaha wrote:
>> What do you mean by 'just like any other label would be'?
>>
>> Is there no other way than writing the direct edit policy and an
>> assoiciated command?
>>
>> Binti.
>>
>>
>> "Randy Hudson" <none@us.ibm.com> wrote in message
>> news:d2ihkh$p9g$1@news.eclipse.org...
>>
>>>You can make those labels editable just like any other label would be.
>>>If they aren't individual editparts, you can just hit-test the figures
>>>when you get the direct-edit request
>>>
>>>"Binti Sepaha" <binti@ksu.edu> wrote in message
>>>news:d2i7li$egh$1@news.eclipse.org...
>>>
>>>>Dear All,
>>>>
>>>>Is there a way to add editable labels with connections.
>>>>
>>>>Like we do...
>>>>connection.add(new Label("not editable"));
>>>>
>>>>I want to know a way of either editing these labels i.e. change the text
>>>>that appears on it or some other way round the problem.
>>>>
>>>>Regards,
>>>>Binti
>>>>
>>>
>>>
>>
Re: Editable Labels with Connections [message #175001 is a reply to message #174949] Fri, 01 April 2005 17:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You could always re-invent the wheel.

"Binti Sepaha" <binti@ksu.edu> wrote in message
news:d2jum0$pkm$1@news.eclipse.org...
>I have editable names to my other objects and they have a directedit policy
>for chagning these names. I have an editableLabel and I have added it to
>all my objects.
>
> I just wanted to know if this is the way I have to do for connections too.
> I guess YES. I will go ahead and start doing that.
>
> Thanks,
> Binti.
Re: Editable Labels with Connections [message #175041 is a reply to message #175001] Fri, 01 April 2005 19:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: binti.ksu.edu

oh I wish so much, but this project deadline is killing me...maybe after the
project :)

:) Binti


"Randy Hudson" <none@us.ibm.com> wrote in message
news:d2jved$qp9$1@news.eclipse.org...
> You could always re-invent the wheel.
>
> "Binti Sepaha" <binti@ksu.edu> wrote in message
> news:d2jum0$pkm$1@news.eclipse.org...
>>I have editable names to my other objects and they have a directedit
>>policy for chagning these names. I have an editableLabel and I have added
>>it to all my objects.
>>
>> I just wanted to know if this is the way I have to do for connections
>> too. I guess YES. I will go ahead and start doing that.
>>
>> Thanks,
>> Binti.
>
>
Re: Editable Labels with Connections [message #175049 is a reply to message #174949] Fri, 01 April 2005 20:17 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Connections was easier for me because they have locators. I dont think
regular figures allow or use the locators, or maybe I dont know how the
locators work. But you can put a label in the middle of a connection by
using a midpoint locator, but you cant put a label in the middle of a
regular figure that way AFAIK.

your 'editableLabel' is an editpart or a figure?

CL

Binti Sepaha wrote:
> I have editable names to my other objects and they have a directedit policy
> for chagning these names. I have an editableLabel and I have added it to all
> my objects.
>
> I just wanted to know if this is the way I have to do for connections too. I
> guess YES. I will go ahead and start doing that.
>
> Thanks,
> Binti.
>
> "CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
> news:d2ju57$ocf$2@news.eclipse.org...
>
>>I am looking at adding names to my edit parts. I looked at simply adding a
>>Label figure to the returned figure of the edit part but its not dynamic
>>enough. I want to be able to move the name and/or positing it. Adding a
>>LabelEditPart is a much more dynamic approach.
>>
>>So I am going to do this and add this edit part as a child of the edit
>>parts I want to have a name.
>>
>>You can probably do the same.
>>
>>
>>CL
>>
>>
>>
>>Binti Sepaha wrote:
>>
>>>What do you mean by 'just like any other label would be'?
>>>
>>>Is there no other way than writing the direct edit policy and an
>>>assoiciated command?
>>>
>>>Binti.
>>>
>>>
>>>"Randy Hudson" <none@us.ibm.com> wrote in message
>>>news:d2ihkh$p9g$1@news.eclipse.org...
>>>
>>>
>>>>You can make those labels editable just like any other label would be.
>>>>If they aren't individual editparts, you can just hit-test the figures
>>>>when you get the direct-edit request
>>>>
>>>>"Binti Sepaha" <binti@ksu.edu> wrote in message
>>>>news:d2i7li$egh$1@news.eclipse.org...
>>>>
>>>>
>>>>>Dear All,
>>>>>
>>>>>Is there a way to add editable labels with connections.
>>>>>
>>>>>Like we do...
>>>>>connection.add(new Label("not editable"));
>>>>>
>>>>>I want to know a way of either editing these labels i.e. change the text
>>>>>that appears on it or some other way round the problem.
>>>>>
>>>>>Regards,
>>>>>Binti
>>>>>
>>>>
>>>>
>
Previous Topic:Opening Editor from Wizard
Next Topic:BendPoint Connection - What all to do?
Goto Forum:
  


Current Time: Thu Apr 25 07:48:40 GMT 2024

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

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

Back to the top