Sven --<div><br></div><div>You should be able to store icon images in your own module -- the key is that they need to be on the classpath at the right location.  So, for the gif thumbnails, they need to be in '/actorthumbs', and for SVG images, they need to be in '/svg'.  In the common module, these are in:</div>
<div><br></div><div>./common/lib/images/actorthumbs/arrayaverage-c-sm.gif</div><div><meta charset="utf-8"><div>./common/lib/images/actorthumbs/arrayaverage-c.gif</div></div><div>./common/lib/images/svg/arrayaverage-c.svg</div>
<div><br></div><div>So, if you have a module called 'mod1', then you should be able to use, for example:</div><div><br></div><div>./mod1/lib/images/actorthumbs/mod1-actor1-sm.gif</div><div><meta charset="utf-8"><div>
./mod1/lib/images/actorthumbs/mod1-actor1.gif</div></div><div>./mod1/lib/images/svg/mod1-actor1.svg</div><div><br></div><div>Note that the order of modules in your suite will determine the classpath order, so your icons will only be used if your module is above other modules that provide icons with the same name.  This should be fine though for most suites, especially as you're adding new icons presumably with new and unique filenames.</div>
<div><br></div><div>In addition, you will need to add configuration pairs to describe which icon files to use for these actors to the configuration.  You can do this by using the configuration manager to add pairs to the uiSVGIconMappingsByClass and uiSVGIconMappingsByLSID configuration namespaces under the gui module.  How to add to other modules' configuration from within your own module is described here:</div>
<div><br></div><div><a href="https://kepler-project.org/developers/teams/framework/configuration-system-documentation/">https://kepler-project.org/developers/teams/framework/configuration-system-documentation/</a></div><div>
<br></div><div>Take a look at gui/resources/configurations/uiSVGIconMappingsByClass.xml and gui/resources/configurations/uiSVGIconMappingsByClass.xml for examples of the config properties you'll need to provide.</div>
<div><br></div><meta charset="utf-8"><meta charset="utf-8"><div>I haven't done all of this myself, so can't attest to all of the details or provide more detail than I have here.  I'm sure you'll run into some issues.  Its clear we need to put together a guide specifically for how to add and change actor icons.  If you are successful and would be willing to document the procedure that you used, we'd be willing to help clean it up and put it on the Kepler wiki to benefit <meta charset="utf-8">others. </div>
<div><br></div><div>Thanks, and good luck! Let us know how it goes...</div><div><br></div><div>Matt<br><br><div class="gmail_quote">On Tue, Mar 15, 2011 at 10:03 AM, Sven Koehler <span dir="ltr"><<a href="mailto:skoehler80@gmail.com">skoehler80@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<div class="im"><br>
On Tue, Mar 15, 2011 at 3:45 AM, Tomasz Żok <<a href="mailto:tzok@man.poznan.pl">tzok@man.poznan.pl</a>> wrote:<br>
>>what is the official way to add actors to the library in my own Kepler<br>
>>module? How do I create a new folder in the library for my actors?<br>
><br>
> First, you write code for this actor and make sure that<br>
> generated .class or .jar files are in Kepler's classpath. Then you<br>
> run Kepler and choose "Instantiate Component" from menu "Tools". You<br>
> need to provide it with full class name of your actor. The actor will<br>
> appear on workflow canvas. You can now right-click on it and choose<br>
> "Semantic Type Annotation" where you select categories to which this<br>
> actor belong (categories are those in hierarchy in Kepler library). The<br>
> last step is to right-click the actor and choose "Save as KAR".<br>
<br>
</div>This would allow me to create an actor that shows up on my<br>
installation of Kepler.<br>
But how do I add actors to my modules that I want to publish? Other<br>
users, who install my modules should be able to find those actors<br>
directly in their library. Those actors should also show up in a<br>
separate folder in the library.<br>
<div class="im"><br>
>>And how can I give them customized icons?<br>
><br>
> In the directory kepler/gui/resources/configurations/ there are two<br>
> files uiSVGIconMappingsByClass.xml and uiSVGIconMappingsByLSID.xml.<br>
> Please read comments inside them as it is already clearly described on<br>
> how to specify icons for actors. One note from me however - in Kepler<br>
> 2.x it seems that icons themselves are placed in<br>
> kepler/config/lib/images/<br>
<br>
</div>Does that mean that I also have to change other modules to add icons<br>
to actors in my Kepler module?<br>
Is there no way to declare those icon mappings directly in my module?<br>
<br>
Thanks,<br>
<font color="#888888">  Sven<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Kepler-dev mailing list<br>
<a href="mailto:Kepler-dev@kepler-project.org">Kepler-dev@kepler-project.org</a><br>
<a href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev" target="_blank">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev</a><br>
</div></div></blockquote></div><br></div>