Home » Modeling » EMF » Problem with emf entity icons
| |
Re: Problem with emf entity icons [message #1040296 is a reply to message #1040193] |
Sat, 13 April 2013 10:29 |
Luca Gherardi Messages: 62 Registered: November 2010 |
Member |
|
|
Ed Merks wrote on Sat, 13 April 2013 02:39Luca,
Comments below.
On 12/04/2013 5:27 PM, Luca Mising name wrote:
> Hi all,
>
> I created a meta-model and extend as explained here:
> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>
> I also modified the icons for the elements of both the models.
>
> When I start the editor generated by ecore I can see the new icons for
> the elemenent of the main metamodel but not the icons of the element
> of the metamodel that extend the first one.
What do you see instead?
I see the original icons, the ones automatically generated by EMF.
Ed Merks wrote on Sat, 13 April 2013 02:39
>
> I placed the icons in the folder ./incons/full/obj16 of the respective
> editor projects and I renamed it according to the generated ones.
It's the icons from the .edit projects that are shown in the tree view.
Yes, I placed the icons in the .edit project, not .editor.
Ed Merks wrote on Sat, 13 April 2013 02:39
>
> What could be the problem?
>
> Another problem is: is it possible to define different icons for the
> file type, the icon displayed of in the editor tab
Those two are typically the same, i.e., the default editor's icon is
used in the explorer view. Look in the plugin.xml of the editor to see
which is used.
In the plugin.xml I setted an icon for the editor and one for the wizard.
I suppose that the icon set for the editor is used both in the explorer view and in the tab of the tree editor. Is it possible to have two different icons?
Ed Merks wrote on Sat, 13 April 2013 02:39
> and the icon used on the first line of the tree representation of the
> models?
>
> Thanks in advance,
> Luca
>
>
|
|
|
Re: Problem with emf entity icons [message #1040777 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040781 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040785 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040789 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040793 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040797 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040801 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040805 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040810 is a reply to message #1040296] |
Sun, 14 April 2013 05:01 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040935 is a reply to message #1040810] |
Sun, 14 April 2013 10:33 |
Luca Gherardi Messages: 62 Registered: November 2010 |
Member |
|
|
Thanks Ed!
Ed Merks wrote on Sun, 14 April 2013 01:01Luca,
Comments below.
On 13/04/2013 12:29 PM, Luca Mising name wrote:
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> Luca,
>>
>> Comments below.
>>
>> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> > Hi all,
>> >
>> > I created a meta-model and extend as explained here: >
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >
>> > I also modified the icons for the elements of both the models.
>> >
>> > When I start the editor generated by ecore I can see the new icons
>> for > the elemenent of the main metamodel but not the icons of the
>> element > of the metamodel that extend the first one.
>> What do you see instead?
>
>
> I see the original icons, the ones automatically generated by EMF.
So you're editing those?
Yes I am. I replaced those with new icons.
Ed Merks wrote on Sun, 14 April 2013 01:01
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > I placed the icons in the folder ./incons/full/obj16 of the
>> respective > editor projects and I renamed it according to the
>> generated ones.
>> It's the icons from the .edit projects that are shown in the tree view.
>
>
> Yes, I placed the icons in the .edit project, not .editor.
You replaced the generated ones?
Yes.
Ed Merks wrote on Sun, 14 April 2013 01:01
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> >
>> > What could be the problem?
>> >
>> > Another problem is: is it possible to define different icons for
>> the > file type, the icon displayed of in the editor tab Those two
>> are typically the same, i.e., the default editor's icon is used in
>> the explorer view. Look in the plugin.xml of the editor to see which
>> is used.
>
>
> In the plugin.xml I setted an icon for the editor and one for the wizard.
>
> I suppose that the icon set for the editor is used both in the
> explorer view and in the tab of the tree editor. Is it possible to
> have two different icons?
I don't think so, but that's not really an EMF question.
>
> Ed Merks wrote on Sat, 13 April 2013 02:39
>> > and the icon used on the first line of the tree representation of
>> the > models?
>> >
>> > Thanks in advance,
>> > Luca
>> >
>> >
>
>
[Updated on: Sun, 14 April 2013 10:34] Report message to a moderator
|
|
|
Re: Problem with emf entity icons [message #1040952 is a reply to message #1040935] |
Sun, 14 April 2013 11:09 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Luca,
So if you're seeing icons, they must be the ones being loaded by the
generated item providers. You could set a breakpoint in one of them
(getImage) to see what's going on...
On 14/04/2013 12:33 PM, Luca Mising name wrote:
> Ed Merks wrote on Sun, 14 April 2013 01:01
>> Luca,
>>
>> Comments below.
>>
>> On 13/04/2013 12:29 PM, Luca Mising name wrote:
>> > Ed Merks wrote on Sat, 13 April 2013 02:39
>> >> Luca,
>> >>
>> >> Comments below.
>> >>
>> >> On 12/04/2013 5:27 PM, Luca Mising name wrote:
>> >> > Hi all,
>> >> >
>> >> > I created a meta-model and extend as explained here: > >>
>> http://ed-merks.blogspot.de/2008/01/creating-children-you-didnt-know.html.
>> >> >
>> >> > I also modified the icons for the elements of both the models.
>> >> >
>> >> > When I start the editor generated by ecore I can see the new
>> icons >> for > the elemenent of the main metamodel but not the icons
>> of the >> element > of the metamodel that extend the first one.
>> >> What do you see instead?
>> >
>> >
>> > I see the original icons, the ones automatically generated by EMF.
>> So you're editing those?
>
>
> Yes I am. I replaced those with new icons.
>
> Ed Merks wrote on Sun, 14 April 2013 01:01
>> >
>> > Ed Merks wrote on Sat, 13 April 2013 02:39
>> >> >
>> >> > I placed the icons in the folder ./incons/full/obj16 of the >>
>> respective > editor projects and I renamed it according to the >>
>> generated ones.
>> >> It's the icons from the .edit projects that are shown in the tree
>> view.
>> >
>> >
>> > Yes, I placed the icons in the .edit project, not .editor.
>> You replaced the generated ones?
>
>
> Yes.
>
> Ed Merks wrote on Sun, 14 April 2013 01:01
>> >
>> > Ed Merks wrote on Sat, 13 April 2013 02:39
>> >> >
>> >> > What could be the problem?
>> >> >
>> >> > Another problem is: is it possible to define different icons for
>> >> the > file type, the icon displayed of in the editor tab Those two
>> >> are typically the same, i.e., the default editor's icon is used in
>> >> the explorer view. Look in the plugin.xml of the editor to see
>> which >> is used.
>> >
>> >
>> > In the plugin.xml I setted an icon for the editor and one for the
>> wizard.
>> >
>> > I suppose that the icon set for the editor is used both in the >
>> explorer view and in the tab of the tree editor. Is it possible to >
>> have two different icons?
>> I don't think so, but that's not really an EMF question.
>> >
>> > Ed Merks wrote on Sat, 13 April 2013 02:39
>> >> > and the icon used on the first line of the tree representation
>> of >> the > models?
>> >> >
>> >> > Thanks in advance,
>> >> > Luca
>> >> >
>> >> >
>> >
>> >
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Problem with emf entity icons [message #1040969 is a reply to message #1040952] |
Sun, 14 April 2013 11:50 |
Luca Gherardi Messages: 62 Registered: November 2010 |
Member |
|
|
Ed Merks wrote on Sun, 14 April 2013 07:09Luca,
So if you're seeing icons, they must be the ones being loaded by the
generated item providers. You could set a breakpoint in one of them
(getImage) to see what's going on...
Thanks Ed!
I already tried to insert both a break point and also a System.out.println() in the getImage() method. However it seems that the method is never called (no interruption or output on the console).
More specifically: if I put the System.out in the method getImage of an entity of the Parent Meta-models the string is printed. If I put the System.out in the method getImage of an entity of the metamodel that extend the parent meta-model, then the string is not printed.
[Updated on: Sun, 14 April 2013 12:01] Report message to a moderator
|
|
| | |
Goto Forum:
Current Time: Sat Apr 27 16:49:04 GMT 2024
Powered by FUDForum. Page generated in 0.05207 seconds
|