Eric,
Thanks for the response. Here are answers to your questions in the order you asked:
No, any valid file.
Apparently not. While I haven't tried dozens of permutations I did try some, and I have been using the location/configuration that I have used now (successfully) for months (albeit in versions prior to 6.5.1). I'm locating it "relative to source" and in its own subdirectory (I have tried "icons", as well as nested in a package dir, i.e., "org.xyz.tools.tool.graphics"). All to no avail.
Yes. Any (that I have seen...or not seen as the case might be) graphic I have tried fails to work.
Again, I would _stress_ that, much like in your screen capture the "Image" property is populated with the name of the graphic file, in mine, it _does not_, regardless of type or location. However, in the source view, this is what is appending into the code block:
- Code: Select all
this.btnAddEncoding = new Button(grpEncodingValues, SWT.NONE);
this.btnAddEncoding.setImage(SWTResourceManager.getImage(MainWindow.class, "/icons/icon1.jpg"));
this.btnAddEncoding.setImage(SWTResourceManager.getImage(MainWindow.class, "/icons/icon1.jpg"));
this.btnAddEncoding.setImage(SWTResourceManager.getImage(MainWindow.class, "/icons/add.png"));
btnAddEncoding.setBounds(329, 50, 115, 110);
For each attempt (even for the same graphic file, thus the duplicate entries), it is appending a "setImage" method, but (obviously) it is not rendering. To me, it looks like something is wrong with the code parser--transitioning from code to Property....
The only other thing I can tell you is that the "buttons" in question are: contained within a Group, within a Composite, within a TabItem, within a JFace AppWindow.
Sooo, now I'm back to my previous statement...I have NO clue where to look on this one.
Thanks.
-A