Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Why i cannot see the icons from a metamodel instance at eclipse with EMF
Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #630641] Mon, 04 October 2010 13:24 Go to next message
lalakis  is currently offline lalakis Friend
Messages: 48
Registered: October 2009
Member
I have created an eclipse plugin for my metamodel throught the emf+gmf = gems eclipse framework.When i am testing the metamodel and what i mean is to create an instance of my model with eclipse palette etc everything works fine.The way that i am testing it is throught the "Overview" tab of the plugig.xml file (PDE) i clicked on launch an eclipse application.

The problem is when i extract the plugin(i am sure that everything is included),i install it at a new eclipse framework(same version = Helios 3.6.0) i create a new metamodel instance but when i am dragging into the palette the items that i want from the left side of the palette the icons are disappeared into the canvas of the palette and some strange characters are appeared instead.
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #630655 is a reply to message #630641] Mon, 04 October 2010 13:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30551
Registered: July 2009
Senior Member
Lalakis,

Not sure how this is an EMF question, but it sounds like perhaps the
icons folder isn't specified in the build.properties and isn't included
in the packaged result.


lalakis wrote:
> I have created an eclipse plugin for my metamodel throught the emf+gmf
> = gems eclipse framework.When i am testing the metamodel and what i
> mean is to create an instance of my model with eclipse palette etc
> everything works fine.The way that i am testing it is throught the
> "Overview" tab of the plugig.xml file (PDE) i clicked on launch an
> eclipse application.
>
> The problem is when i extract the plugin(i am sure that everything is
> included),i install it at a new eclipse framework(same version =
> Helios 3.6.0) i create a new metamodel instance but when i am dragging
> into the palette the items that i want from the left side of the
> palette the icons are disappeared into the canvas of the palette and
> some strange characters are appeared instead.
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #630672 is a reply to message #630655] Mon, 04 October 2010 14:16 Go to previous messageGo to next message
lalakis  is currently offline lalakis Friend
Messages: 48
Registered: October 2009
Member
The icon folder is included in the build properties both in src and bin and also i can see at tha packaged jar file.The icons folder is under src/org/gems/test/atag/atag/icons/ so my build file looks like this:

src.includes = src/org/gems/test/atag/atag/icons,\
.
.
.
.
bin.includes =
.,\
bin/,\


.
.
.
.
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #630784 is a reply to message #630672] Tue, 05 October 2010 00:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30551
Registered: July 2009
Senior Member
What can I say? You'll need to debug it...

lalakis wrote:
> The icon folder is included in the build properties both in src and
> bin and also i can see at tha packaged jar file.The icons folder is
> under src/org/gems/test/atag/atag/icons/ so my build file looks like
> this:
>
> src.includes = src/org/gems/test/atag/atag/icons,\
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #630814 is a reply to message #630784] Tue, 05 October 2010 07:33 Go to previous messageGo to next message
lalakis  is currently offline lalakis Friend
Messages: 48
Registered: October 2009
Member
Yes but as i said when i run a new application from the plugin overview tab the eclipse framework works fine.It does not need any debugging.How can i debug the eclipse framework from the beginning of it's execution?
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #630915 is a reply to message #630814] Tue, 05 October 2010 14:40 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30551
Registered: July 2009
Senior Member
Lalakis,

That argues for a packaging issue, which you've discounted as a
potential cause of the problem.... You've really verified they are in
the binary jar at the right place? What mechanism are you using the
load the image? Are you seeing logged exceptions?


lalakis wrote:
> Yes but as i said when i run a new application from the plugin
> overview tab the eclipse framework works fine.It does not need any
> debugging.How can i debug the eclipse framework from the beginning of
> it's execution?
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #630948 is a reply to message #630641] Tue, 05 October 2010 15:35 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,
do you mean the palette of the GMF editor? Do the icons show well in a
none GMF editor?
cheers
Jonas

lalakis wrote:
> I have created an eclipse plugin for my metamodel throught the emf+gmf =
> gems eclipse framework.When i am testing the metamodel and what i mean
> is to create an instance of my model with eclipse palette etc everything
> works fine.The way that i am testing it is throught the "Overview" tab
> of the plugig.xml file (PDE) i clicked on launch an eclipse application.
>
> The problem is when i extract the plugin(i am sure that everything is
> included),i install it at a new eclipse framework(same version = Helios
> 3.6.0) i create a new metamodel instance but when i am dragging into the
> palette the items that i want from the left side of the palette the
> icons are disappeared into the canvas of the palette and some strange
> characters are appeared instead.
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #631117 is a reply to message #630915] Wed, 06 October 2010 09:17 Go to previous messageGo to next message
lalakis  is currently offline lalakis Friend
Messages: 48
Registered: October 2009
Member
Yes i can verify that.I have exported the plugin at a jar file and then inside the jar file i can see the icons folder.The way that i am loading the images is through GEMS.In fact i changed the dsml.palette and the dsml.css file for every element in my model there is an entry like that:
Task-image:icons/Task_s.gif;
Under icons are all my images.And i can see that folder under the jar .I: can't see any logging exceptions

Ed Merks wrote on Tue, 05 October 2010 10:40
Lalakis,

That argues for a packaging issue, which you've discounted as a
potential cause of the problem.... You've really verified they are in
the binary jar at the right place? What mechanism are you using the
load the image? Are you seeing logged exceptions?


lalakis wrote:
> Yes but as i said when i run a new application from the plugin
> overview tab the eclipse framework works fine.It does not need any
> debugging.How can i debug the eclipse framework from the beginning of
> it's execution?

Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #631119 is a reply to message #630948] Wed, 06 October 2010 09:20 Go to previous messageGo to next message
lalakis  is currently offline lalakis Friend
Messages: 48
Registered: October 2009
Member
I am using gems.which i assume that it uses gmf and emf.So what i wanted to say is that at my working project when i am testing it as a new Run configuration and a new Eclipse framework begins everything works fine at the palette and i can see the images both at canvas and at palette.When i am exporting the plugin i can only see images at the palette and not on canvas
Jonas wrote on Tue, 05 October 2010 11:35
Hi,
do you mean the palette of the GMF editor? Do the icons show well in a
none GMF editor?
cheers
Jonas

lalakis wrote:
> I have created an eclipse plugin for my metamodel throught the emf+gmf =
> gems eclipse framework.When i am testing the metamodel and what i mean
> is to create an instance of my model with eclipse palette etc everything
> works fine.The way that i am testing it is throught the "Overview" tab
> of the plugig.xml file (PDE) i clicked on launch an eclipse application.
>
> The problem is when i extract the plugin(i am sure that everything is
> included),i install it at a new eclipse framework(same version = Helios
> 3.6.0) i create a new metamodel instance but when i am dragging into the
> palette the items that i want from the left side of the palette the
> icons are disappeared into the canvas of the palette and some strange
> characters are appeared instead.

Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #631135 is a reply to message #631119] Wed, 06 October 2010 09:45 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,
by "exporting", i assume you mean building a feature and deploying it
into a fresh Eclipse instance. As Ed has asnwered before, the most
likely reason for that is is your build configuration. But if you have
checked that, the only remaining thing left is the Eclipse installation
where you deploy your software to. Is there a plugin missing, which is
available in your IDE Eclipse? Did you install sth. else? I would use a
fresh eclipse instance on both sides, for building the feature and for
tesing it to get sure.
cheers
jonas

lalakis wrote:
> I am using gems.which i assume that it uses gmf and emf.So what i wanted
> to say is that at my working project when i am testing it as a new Run
> configuration and a new Eclipse framework begins everything works fine
> at the palette and i can see the images both at canvas and at
> palette.When i am exporting the plugin i can only see images at the
> palette and not on canvas
> Jonas wrote on Tue, 05 October 2010 11:35
>> Hi,
>> do you mean the palette of the GMF editor? Do the icons show well in a
>> none GMF editor?
>> cheers
>> Jonas
>>
>> lalakis wrote:
>> > I have created an eclipse plugin for my metamodel throught the
>> emf+gmf = > gems eclipse framework.When i am testing the metamodel and
>> what i mean > is to create an instance of my model with eclipse
>> palette etc everything > works fine.The way that i am testing it is
>> throught the "Overview" tab > of the plugig.xml file (PDE) i clicked
>> on launch an eclipse application.
>> > > The problem is when i extract the plugin(i am sure that everything
>> is > included),i install it at a new eclipse framework(same version =
>> Helios > 3.6.0) i create a new metamodel instance but when i am
>> dragging into the > palette the items that i want from the left side
>> of the palette the > icons are disappeared into the canvas of the
>> palette and some strange > characters are appeared instead.
>
>
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #631141 is a reply to message #631135] Wed, 06 October 2010 10:25 Go to previous messageGo to next message
lalakis  is currently offline lalakis Friend
Messages: 48
Registered: October 2009
Member
By exporting i mean to export the plugin somewhere then to make a feature and then an update site.After all at a new eclipse installation i install my new feature without errors but when i drawing something for my new model no icons.I will check it again i do not know what else to do.But the build property file is correct
Jonas wrote on Wed, 06 October 2010 05:45
Hi,
by "exporting", i assume you mean building a feature and deploying it
into a fresh Eclipse instance. As Ed has asnwered before, the most
likely reason for that is is your build configuration. But if you have
checked that, the only remaining thing left is the Eclipse installation
where you deploy your software to. Is there a plugin missing, which is
available in your IDE Eclipse? Did you install sth. else? I would use a
fresh eclipse instance on both sides, for building the feature and for
tesing it to get sure.
cheers
jonas

lalakis wrote:
> I am using gems.which i assume that it uses gmf and emf.So what i wanted
> to say is that at my working project when i am testing it as a new Run
> configuration and a new Eclipse framework begins everything works fine
> at the palette and i can see the images both at canvas and at
> palette.When i am exporting the plugin i can only see images at the
> palette and not on canvas
> Jonas wrote on Tue, 05 October 2010 11:35
>> Hi,
>> do you mean the palette of the GMF editor? Do the icons show well in a
>> none GMF editor?
>> cheers
>> Jonas
>>
>> lalakis wrote:
>> > I have created an eclipse plugin for my metamodel throught the
>> emf+gmf = > gems eclipse framework.When i am testing the metamodel and
>> what i mean > is to create an instance of my model with eclipse
>> palette etc everything > works fine.The way that i am testing it is
>> throught the "Overview" tab > of the plugig.xml file (PDE) i clicked
>> on launch an eclipse application.
>> > > The problem is when i extract the plugin(i am sure that everything
>> is > included),i install it at a new eclipse framework(same version =
>> Helios > 3.6.0) i create a new metamodel instance but when i am
>> dragging into the > palette the items that i want from the left side
>> of the palette the > icons are disappeared into the canvas of the
>> palette and some strange > characters are appeared instead.
>
>

Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #631169 is a reply to message #631141] Wed, 06 October 2010 12:53 Go to previous messageGo to next message
lalakis  is currently offline lalakis Friend
Messages: 48
Registered: October 2009
Member
Actually my icons are under org.gems.test.atag.atag.icons
That was created automatically by the auto code generator.Under dsml.css and dsml.palette i see something like this:
Task{

active-style:true;
ExpansionPanel.ClosedImage:resources/icons/Task.gif;
TreeImage:resources/icons/Task_s.gif;
TitleTemplate:%Name% [%Type%];
TreeTitleTemplate:%Name% [%Type%];
}
How am i sure that the "resources" var is actually the right path at org.gems.test.atag.atag?
Re: Why i cannot see the icons from a metamodel instance at eclipse with EMF [message #631211 is a reply to message #631117] Wed, 06 October 2010 14:48 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30551
Registered: July 2009
Senior Member
Lalakis,

Perhaps you should ask some GEMS experts.


lalakis wrote:
> Yes i can verify that.I have exported the plugin at a jar file and
> then inside the jar file i can see the icons folder.The way that i am
> loading the images is through GEMS.In fact i changed the dsml.palette
> and the dsml.css file for every element in my model there is an entry
> like that:
> Task-image:icons/Task_s.gif;
> Under icons are all my images.And i can see that folder under the jar
> .I: can't see any logging exceptions
>
> Ed Merks wrote on Tue, 05 October 2010 10:40
>> Lalakis,
>>
>> That argues for a packaging issue, which you've discounted as a
>> potential cause of the problem.... You've really verified they are
>> in the binary jar at the right place? What mechanism are you using
>> the load the image? Are you seeing logged exceptions?
>>
>>
>> lalakis wrote:
>> > Yes but as i said when i run a new application from the plugin >
>> overview tab the eclipse framework works fine.It does not need any >
>> debugging.How can i debug the eclipse framework from the beginning of
>> > it's execution?
>
>
Previous Topic:Loading different models with same namespace
Next Topic:Uniqueness not enforced by Validate
Goto Forum:
  


Current Time: Sun Oct 20 13:48:29 GMT 2019

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

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

Back to the top