Hi Ede,
I probably was not correct to explain myself.
I am not talking about plugins. I observed that layer context submenus
(Style and Datastore) are decorated with icons. I checked which class was
involved and I found that FeatureInstaller.childMenuItem does this job, on
Popupmenus: wehich means that it can be used even for right-click view
context menu.
I wonder if it can be used for MainMenu ( 'File,Edit,View...' -this is
right) for submenus (for instance to decorate "View">""Map decoration"
submenus).
I give an other example. I want to add my measuretools to "view" menu under
a submenu (called "Measurements"). I know how to di it but I also want to
decorate that submenu with an icon, like a compass or similar.
Right now I didn't find the way how to use that class.
thanks for the answer
Peppe
2012/12/24 <[email protected]>
> On 24.12.2012 11:09, Giuseppe Aruta wrote:
> > Hi all,
> > I upgraded the html pages of keyboards either Italian and Spanish.
> > Just an observation/question: I can see on JumpConfiguration this
> initalize line:
> >
> > FeatureInstaller.childMenuItem(MenuNames.STYLE, layerNamePopupMenu)
> >
> .setIcon(GUIUtil.toSmallIcon(pasteStylesPlugIn.getIcon()));
> >
> > FeatureInstaller.childMenuItem adds icons to popup submenus.
> > I ask if it is possible to use it even for Toolbar submenus or it
> requires another class.
> > regards
> >
>
> you mean MainMenu Bar 'File,Edit,View...' right?
>
> use FeatureInstaller.addMainMenuPlugin(..., Icon icon,...) to install your
> plugin or take the returned MenuItem and setIcon() on that.
>
> FeatureInstaller.childMenuItem works on _all_ menus regardless if popup or
> not, but it has to iterate over the menu entries and find the name given.
> so it is essentially slower and will only decorate the first entry found in
> a menu, given there are more entries than one with the given name.
>
> ..ede
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel