Bug 269363 - [Contributions] I have an application where Menu Item Icons are missing on Solaris platforms.
Summary: [Contributions] I have an application where Menu Item Icons are missing on So...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: Sun Solaris
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 10:15 EDT by Ramhari CLA
Modified: 2019-09-06 16:05 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ramhari CLA 2009-03-19 10:15:01 EDT
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.
Comment 1 Remy Suen CLA 2009-03-19 11:28:38 EDT
(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?
Comment 2 Ramhari CLA 2009-03-23 02:24:52 EDT
(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.
Comment 3 Paul Webster CLA 2009-03-23 11:09:33 EDT
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
Comment 4 Ramhari CLA 2009-03-25 06:35:49 EDT
(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. 
Comment 5 Mike Wilson CLA 2009-05-05 14:12:03 EDT
Changing Version tag to something more believable.
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:05:47 EDT
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.