Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problem with emf entity icons
Problem with emf entity icons [message #1039780] Fri, 12 April 2013 15:27 Go to next message
Luca Gherardi is currently offline Luca GherardiFriend
Messages: 62
Registered: November 2010
Member
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.

I placed the icons in the folder ./incons/full/obj16 of the respective editor projects and I renamed it according to the generated ones.

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 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 #1040193 is a reply to message #1039780] Sat, 13 April 2013 06:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
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 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.
>
> 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.
> 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 #1040296 is a reply to message #1040193] Sat, 13 April 2013 10:29 Go to previous messageGo to next message
Luca Gherardi is currently offline Luca GherardiFriend
Messages: 62
Registered: November 2010
Member
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.

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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Luca Gherardi is currently offline Luca GherardiFriend
Messages: 62
Registered: November 2010
Member
Thanks Ed!

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
>> >
>> >
>
>

[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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous messageGo to next message
Luca Gherardi is currently offline Luca GherardiFriend
Messages: 62
Registered: November 2010
Member
Ed Merks wrote on Sun, 14 April 2013 07:09
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...



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

Re: Problem with emf entity icons [message #1040980 is a reply to message #1040969] Sun, 14 April 2013 12:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
Luca,

So you followed every step? And the plugin.xmls have all the expected
registrations in them? You might try deleting them all and generating
them all to be sure.


On 14/04/2013 1:50 PM, Luca Mising name wrote:
> Ed Merks wrote on Sun, 14 April 2013 07:09
>> 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...
>
>
> 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).
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem with emf entity icons [message #1040986 is a reply to message #1040980] Sun, 14 April 2013 12:25 Go to previous message
Luca Gherardi is currently offline Luca GherardiFriend
Messages: 62
Registered: November 2010
Member
Ed Merks wrote on Sun, 14 April 2013 08:11
Luca,

So you followed every step? And the plugin.xmls have all the expected
registrations in them? You might try deleting them all and generating
them all to be sure.

>


Thanks Ed! This was the good suggestion!

The name of the meta-model URI was misspelled.
Fixing the name solved the problem.

Thanks again,
Luca
Previous Topic:getHREF of org.eclipse.emf.ecore.xmi.XMLHelper doesn't encode '&' in element name
Next Topic:Hibernate constraints - HowTo?
Goto Forum:
  


Current Time: Tue Mar 19 07:59:27 GMT 2024

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

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

Back to the top