Home » Modeling » GMF (Graphical Modeling Framework) » Attribute Symbols
Attribute Symbols [message #158782] |
Thu, 08 November 2007 03:45  |
Eclipse User |
|
|
|
Originally posted by: 14.08.99.gmx.de
Hi,
is it possible to change the symbol of attributes?
E.g. I have a red cricle to represent a node in my ToolBar (this is
ok!). This node has 2 Attributes (Labels). When I draw such a node, both
of the Attributes have a red circle on the left... How do I change or
delete this symbol?
Greets,
Guido
|
|
| |
Re: Attribute Symbols [message #158940 is a reply to message #158895] |
Thu, 08 November 2007 07:53   |
Eclipse User |
|
|
|
Originally posted by: 14.08.99.gmx.de
Hi Boris,
Thank you for the answer. It works, the symbol does not appear anymore.
Is there a possibility to display another symbol (e.g. "-" or "+")?
Greets,
Guido
Boris Blajer schrieb:
> Hi Guido,
>
> If I understood you correctly, you should set the elementIcon property
> of DiagramLabel to false in your gmfmap model for the labels where the
> icons are not needed.
>
> Best regards,
> Boris
>
> Guido Schwab wrote:
>> Hi,
>>
>> is it possible to change the symbol of attributes?
>>
>> E.g. I have a red cricle to represent a node in my ToolBar (this is
>> ok!). This node has 2 Attributes (Labels). When I draw such a node,
>> both of the Attributes have a red circle on the left... How do I
>> change or delete this symbol?
>>
>> Greets,
>> Guido
|
|
|
Re: Attribute Symbols [message #158977 is a reply to message #158940] |
Thu, 08 November 2007 08:30   |
Eclipse User |
|
|
|
Hi Guido,
Find the generated XyzEditPart.getLabelIcon() method and modify its body
to return some other icon (preferably from some image registry). Do not
forget to mark the method as @generated NOT.
Best regards,
Boris
Guido Schwab wrote:
> Hi Boris,
>
> Thank you for the answer. It works, the symbol does not appear anymore.
> Is there a possibility to display another symbol (e.g. "-" or "+")?
>
> Greets,
> Guido
>
> Boris Blajer schrieb:
>> Hi Guido,
>>
>> If I understood you correctly, you should set the elementIcon property
>> of DiagramLabel to false in your gmfmap model for the labels where the
>> icons are not needed.
>>
>> Best regards,
>> Boris
>>
>> Guido Schwab wrote:
>>> Hi,
>>>
>>> is it possible to change the symbol of attributes?
>>>
>>> E.g. I have a red cricle to represent a node in my ToolBar (this is
>>> ok!). This node has 2 Attributes (Labels). When I draw such a node,
>>> both of the Attributes have a red circle on the left... How do I
>>> change or delete this symbol?
>>>
>>> Greets,
>>> Guido
|
|
|
Re: Attribute Symbols [message #159143 is a reply to message #158977] |
Fri, 09 November 2007 02:34   |
Eclipse User |
|
|
|
Originally posted by: 14.08.99.gmx.de
Thank you...
:-)
Boris Blajer schrieb:
> Hi Guido,
>
> Find the generated XyzEditPart.getLabelIcon() method and modify its body
> to return some other icon (preferably from some image registry). Do not
> forget to mark the method as @generated NOT.
>
> Best regards,
> Boris
>
> Guido Schwab wrote:
>> Hi Boris,
>>
>> Thank you for the answer. It works, the symbol does not appear
>> anymore. Is there a possibility to display another symbol (e.g. "-" or
>> "+")?
>>
>> Greets,
>> Guido
>>
>> Boris Blajer schrieb:
>>> Hi Guido,
>>>
>>> If I understood you correctly, you should set the elementIcon
>>> property of DiagramLabel to false in your gmfmap model for the labels
>>> where the icons are not needed.
>>>
>>> Best regards,
>>> Boris
>>>
>>> Guido Schwab wrote:
>>>> Hi,
>>>>
>>>> is it possible to change the symbol of attributes?
>>>>
>>>> E.g. I have a red cricle to represent a node in my ToolBar (this is
>>>> ok!). This node has 2 Attributes (Labels). When I draw such a node,
>>>> both of the Attributes have a red circle on the left... How do I
>>>> change or delete this symbol?
>>>>
>>>> Greets,
>>>> Guido
|
|
|
Re: Attribute Symbols [message #159480 is a reply to message #159143] |
Sat, 10 November 2007 15:36   |
Eclipse User |
|
|
|
Originally posted by: Sam.sam.org
Hi,
your graphical editor consist of several projects. in your XXX.edit project
there is an /icons/full/obj16 folder. all images come from here. you might
simply replace your desired image. you don't even have to regenerate.
regards
Matthias
"Guido Schwab" <14.08.99@gmx.de> schrieb im Newsbeitrag
news:fh12ht$fmp$1@build.eclipse.org...
> Thank you...
> :-)
>
> Boris Blajer schrieb:
>> Hi Guido,
>>
>> Find the generated XyzEditPart.getLabelIcon() method and modify its body
>> to return some other icon (preferably from some image registry). Do not
>> forget to mark the method as @generated NOT.
>>
>> Best regards,
>> Boris
>>
>> Guido Schwab wrote:
>>> Hi Boris,
>>>
>>> Thank you for the answer. It works, the symbol does not appear anymore.
>>> Is there a possibility to display another symbol (e.g. "-" or "+")?
>>>
>>> Greets,
>>> Guido
>>>
>>> Boris Blajer schrieb:
>>>> Hi Guido,
>>>>
>>>> If I understood you correctly, you should set the elementIcon property
>>>> of DiagramLabel to false in your gmfmap model for the labels where the
>>>> icons are not needed.
>>>>
>>>> Best regards,
>>>> Boris
>>>>
>>>> Guido Schwab wrote:
>>>>> Hi,
>>>>>
>>>>> is it possible to change the symbol of attributes?
>>>>>
>>>>> E.g. I have a red cricle to represent a node in my ToolBar (this is
>>>>> ok!). This node has 2 Attributes (Labels). When I draw such a node,
>>>>> both of the Attributes have a red circle on the left... How do I
>>>>> change or delete this symbol?
>>>>>
>>>>> Greets,
>>>>> Guido
|
|
|
Re: Attribute Symbols [message #159556 is a reply to message #159480] |
Mon, 12 November 2007 02:54  |
Eclipse User |
|
|
|
Originally posted by: 14.08.99.gmx.de
Hi Sam/Matthias,
changing the icon in the obj16 Folder changes ALL icons: tool-palette,
graphical symbol and attributes. I only wanted to change the icon for
attributes.
Greets,
Guido
Sam schrieb:
> Hi,
>
> your graphical editor consist of several projects. in your XXX.edit project
> there is an /icons/full/obj16 folder. all images come from here. you might
> simply replace your desired image. you don't even have to regenerate.
>
> regards
> Matthias
>
> "Guido Schwab" <14.08.99@gmx.de> schrieb im Newsbeitrag
> news:fh12ht$fmp$1@build.eclipse.org...
>> Thank you...
>> :-)
>>
>> Boris Blajer schrieb:
>>> Hi Guido,
>>>
>>> Find the generated XyzEditPart.getLabelIcon() method and modify its body
>>> to return some other icon (preferably from some image registry). Do not
>>> forget to mark the method as @generated NOT.
>>>
>>> Best regards,
>>> Boris
>>>
>>> Guido Schwab wrote:
>>>> Hi Boris,
>>>>
>>>> Thank you for the answer. It works, the symbol does not appear anymore.
>>>> Is there a possibility to display another symbol (e.g. "-" or "+")?
>>>>
>>>> Greets,
>>>> Guido
>>>>
>>>> Boris Blajer schrieb:
>>>>> Hi Guido,
>>>>>
>>>>> If I understood you correctly, you should set the elementIcon property
>>>>> of DiagramLabel to false in your gmfmap model for the labels where the
>>>>> icons are not needed.
>>>>>
>>>>> Best regards,
>>>>> Boris
>>>>>
>>>>> Guido Schwab wrote:
>>>>>> Hi,
>>>>>>
>>>>>> is it possible to change the symbol of attributes?
>>>>>>
>>>>>> E.g. I have a red cricle to represent a node in my ToolBar (this is
>>>>>> ok!). This node has 2 Attributes (Labels). When I draw such a node,
>>>>>> both of the Attributes have a red circle on the left... How do I
>>>>>> change or delete this symbol?
>>>>>>
>>>>>> Greets,
>>>>>> Guido
>
>
|
|
|
Goto Forum:
Current Time: Thu May 08 23:36:05 EDT 2025
Powered by FUDForum. Page generated in 0.27386 seconds
|