History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-5329
Type: Usability Problem Usability Problem
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Peter Lawrey
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Add meaningful toString() so that copy-and-paste works from the GUI.

Created: 12 Nov 07 15:33   Updated: 15 Nov 07 17:38
Component/s: IDE Configuration
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,531


 Description  « Hide
When reporting issues it is useful to be able to copy-and-paste from the UI into JIRA. This ensures the text of the reports what can be seen on the screen. However some components support this and other don't.

Some of the component which don't support toString().

com.intellij.codeInspection.ex.Descriptor@2d91a2dc
com.intellij.profile.ui.InspectionConfigurable@12196da
com.intellij.profile.ui.IDEProfileConfigurable@cd768a
com.intellij.profile.ui.ProjectProfileConfigurable@10501ac
<com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable@742af4,1>
com.intellij.ui.navigation.Place@20c38df
com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleConfigurable@14f39fb
false com.intellij.openapi.roots.ui.configuration.ClasspathPanel$SelfModuleItem@1ae494b
false com.intellij.openapi.roots.ui.configuration.ClasspathPanel$LibItem@594a25
false com.intellij.openapi.roots.ui.configuration.ClasspathPanel$JdkItem@1b25c85
com.intellij.openapi.roots.ui.configuration.projectRoot.JdkConfigurable@1c8fd00
com.intellij.openapi.roots.ui.configuration.projectRoot.LibraryConfigurable@12e5df2
com.intellij.openapi.util.IconLoader$CachedImageIcon@1520b41



 All   Comments   Work Log   Change History      Sort Order:
Peter Lawrey - 12 Nov 07 15:47
Even more useful, but more work, would be a select a rectangle image snapshot.
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.


Dmitry Jemerov - 12 Nov 07 21:30
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?)

Peter Lawrey - 13 Nov 07 12:35
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.

Dmitry Jemerov - 13 Nov 07 12:37
Peter,

There's an action "Attach screenshot for this issue" in the JIRA sidebar. It uses a Java applet.


Sascha Weinreuter - 13 Nov 07 12:55
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.


Peter Lawrey - 15 Nov 07 16:20
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?


Sascha Weinreuter - 15 Nov 07 17:07
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?

Peter Lawrey - 15 Nov 07 17:35
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


Peter Lawrey - 15 Nov 07 17:38
I have used "Attach screenshot" as you suggested twice because I could not see the file.