Embedding Images into Cheat Sheets [message #718869] |
Thu, 25 August 2011 10:28  |
Eclipse User |
|
|
|
As I write cheat sheets I find that I have to describe which buttons to push. I would really like to say, "Click the Run button" and then show the Run button right after the sentence within the cheat sheet.
I have found a tutorial by Kaesar Alnijres on how to embed images into cheat sheets but I am looking for something more simple (if it exists).
Here is the tutorial: http://www.java-javafx.com/2011/04/adding-images-or-any-other-resources-to.html
If anyone has found an easier method please advise. Thanks!
I have posted the link above in response to a question in the new comers forum, but I thought this would be a better place for this post.
|
|
|
|
Re: Embedding Images into Cheat Sheets [message #719226 is a reply to message #719069] |
Fri, 26 August 2011 09:13   |
Eclipse User |
|
|
|
Thanks, Chris. Can you perhaps clarify the tutorial. Here are my questions:
1. Do I add the yellow highlighted text exactly? If not, how do I know what needs to be altered?
2. How do I access the image repository and add images to it?
3. Do I register the extension point in the same place as the cheat sheets themselves? (We don't use plugin.xml. For some reason we call it fragment.xml and it has many different types of tags.)
I posted these same questions as a comment to the article but I'm not sure if I'll get an answer. I found that the tutorial required some familiarity that I don't have. Any assistance would be greatly appreciated. Thanks!
UPDATE:
I DID get a quick answer! Here is what he said:
Quote:Hello,
Here's a very quick answer. I hope you find it useful.
Answer 1, replace the body of createControl(Composite composite) method, of your class ItemExtensionHandler (or any other name) that extends AbstractItemExtensionElement with the one provided in the tutor. Other codes with yellow, are added for you by Eclipse.
Answer 2. I have just added this post
http://www.java-javafx.com/2011/08/use-custom-images-in-eclipse-plug-ins.html
Answer 3. Sorry, I didn't understand well your question, anyway plugin.xml, is the plug-in descriptor and extensions must be defined there
Answer 4. In the editor "Add Step" will add an in the source code, you can then use the attribute defined with the item extension in "ItemAttribute" (see the tutor)
Hoping that i was clear enough
[Updated on: Fri, 26 August 2011 09:17] by Moderator
|
|
|
Re: Embedding Images into Cheat Sheets [message #720111 is a reply to message #719226] |
Mon, 29 August 2011 18:50  |
Eclipse User |
|
|
|
I haven't followed the tutorial myself, but based on what I know about cheat sheets it looks as though it would work - note that when the tutorial talks about adding an extension point it is actually adding an extension. Adding an extension to the extension point org.eclipse.ui.cheatsheets.cheatSheetItemExtension is as far as I know the only way to add your own image although it is far from trivial.
|
|
|
Powered by
FUDForum. Page generated in 0.06251 seconds