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
