Community
Participate
Working Groups
Build ID: I20070625-1500 Steps To Reproduce: 1. I have an application where Menu Item Icons are missing on Solaris platforms but same Icons are seen Windows Platform. 2. when we have check box Icon and some Icon attached with Menu name. More information: 1. I have an application where Menu Item Icons are missing on Solaris platforms but same Icons are seen Windows Platform. 2. when we have check box Icon and some Icon attached with Menu name. 3. Path to the variables is correct,variables related to the icon are also set properly. 4. Is there any issue with setIcon API in java of Swings? 5. 'defaultIcon' which is a member variable of class JCheckBoxMenuItem in swings package, a derived class of JMenuItem is set but not painted properly.Structure of JCheckBoxMenuItem is as follows.CheckRectangle,IconRectangle followed by the Title.Icon rectangle not getting painted though the value is set in variable. Please update me how to resolve this issue.
(In reply to comment #0) > 4. Is there any issue with setIcon API in java of Swings? > 5. 'defaultIcon' which is a member variable of class JCheckBoxMenuItem in > swings package, a derived class of JMenuItem is set but not painted > properly.Structure of JCheckBoxMenuItem is as > follows.CheckRectangle,IconRectangle followed by the Title.Icon rectangle not > getting painted though the value is set in variable. > Please update me how to resolve this issue. This sounds more like a discrepancy between Swing implementations. Could you describe how this problem is related to Eclipse?
(In reply to comment #1) > (In reply to comment #0) > > 4. Is there any issue with setIcon API in java of Swings? > > 5. 'defaultIcon' which is a member variable of class JCheckBoxMenuItem in > > swings package, a derived class of JMenuItem is set but not painted > > properly.Structure of JCheckBoxMenuItem is as > > follows.CheckRectangle,IconRectangle followed by the Title.Icon rectangle not > > getting painted though the value is set in variable. > > Please update me how to resolve this issue. > This sounds more like a discrepancy between Swing implementations. Could you > describe how this problem is related to Eclipse? Menu Item Icons are missing on Solaris platform when we define style = "toggle". Same issue is not seen/observed on Windows Platform. Existing code =============================================== <command commandId="COMMAND NAME ID" icon="ICON PATH" style="toggle"> <visibleWhen> <reference> </visibleWhen> </command> =============================================== Modified code and disabled style = toggle code style="toggle"> I was able to see ICON but Options Check mark was missing as I have disabled style = toggle.
Please supply a sample plugin that shows the problem (a simple menu contribution and an icon that shows up on windows but not when the plugin is run on Solaris) Commands and and menu contributions do not interact with Swing, only SWT. PW
(In reply to comment #3) > Please supply a sample plugin that shows the problem (a simple menu > contribution and an icon that shows up on windows but not when the plugin is > run on Solaris) > Commands and and menu contributions do not interact with Swing, only SWT. > PW Following is the code which I have copied from my plugin.xml ------------------------------------------------------------ 1. Extension point for my command "com.myCustomApp.rac.mycustom" <extension point="org.eclipse.ui.commands"> <command id="com.myCustomApp.rac.mycustom" name="mycustom"/> </extension> 2. MenuContribution entry to add menu item <menuContribution locationURI="menu:file?after=file.Save_As"> <command commandId="com.myCustomApp.rac.mycustom" icon="platform:/plugin/com.myCustomApp.rac.TRACK/icons/mycustom.png" mnemonic="%MyCustom.MNEMONIC" style="toggle"> </command> </menuContribution> 3. handler for commandId="com.myCustomApp.rac.mycustom" <command defaultHandler="com.myCustomApp.rac.TRACK.handlers.MyCustomHandler" id="com.myCustomApp.rac.mycustom" name="MyCustomMenu" /> --------------------------------------------------------------- Please let me know if you need more details.
Changing Version tag to something more believable.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.