|
|
|
There are enough screenshot capturing tools on the market already. One is even built into JIRA itself. And copy/paste is hardly appropriate for most of these items (what should we put into clipboard for CachedImageIcon, for instance?)
Do you have any examples/docs on how to use JIRA for screen capture? I didn't think a web app was capable of capturing an image/text from another application.
For the icon you could just print the text of what the icon represents or its internal name or some generic character to indicate an icon like. □ or [ ] or ? or nothing. In most cases the text it displays on the screen would be appropriate. If this is a complex change, I wouldn't bother. I just noted that you have an inspection for calls to the default toString() but you could be missing some yourself. Peter,
There's an action "Attach screenshot for this issue" in the JIRA sidebar. It uses a Java applet. Well, even though the applet cannot capture screenshots, it can attach images from the clipboard which can be easily put there by pressing PrintScreen (whole screen) or Alt-PrintScreen (current window) - at least on Windows, not sure about Linux/Mac.
Giving IDEA the ability to capture (textual) screenshots from itself sounds like huge overkill IMHO. Often I cannot include anything which might be company sensitive information. For images of windows this means cropping the image and editing it in something like ms-paint to obscure any IP content.
Just think how you would feel about taking screen shots of your sensitive code and posting to a public web site. Esp if doing so could get you the sack? Being able to capture text, no more than I need and edit is much simpler when it works. I don't expect being able to select a windows as text, but having components implement toString() to print what they display already isn't overkill IMHO. You have an inspection which flags calls to the generic toString() as an issue. Is that overkill? I'm afraid I don't understand your goal: Why are toString()-implementations of internal IDEA components relevant for the copy&paste of code from IDEA's editor into a web-form? If it's not text and not a whole screenshot image, what else do you want to copy? Where exactly do you see those objects you listed?
I click on the component which I see in the GUI such as the setting. I select the component I am interested in and do a Ctrl+C and then do a "paste" into jira.
In most cases, this results in the text of the component as it appears in IDEA. Since you know the application better that I do perhaps I have made an incorrect assumption. So I could ask you instead. When I use the "copy" of a component on the screen how does it determine what to put in the clipboard? What is the method called? Can this be overridden to call another method which is used to determine what should be displayed on the screen? If you see the attached image you can see I have selected Libraries (perhaps not a good example as cannot see why I would need to copy this) and if I paste that into Jira I get com.intellij.ui.navigation.Place@2014029 I have used "Attach screenshot" as you suggested twice because I could not see the file.
|
|||||||||||||||||||||||||||||||||||||||||||||||
You would hit a key, select an area of the screen to add to the clip board. Another option would be to automaticly save it.
This would be more useful than a screen shots which are tedious to work with.
Why? Because it is useful for writing internal documentation and reporting issues.