This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 56623

Summary: Initialize the Class Name field of Go To Class dialog with the contents of the clipboard (if it is a valid java type name or a fully qualified java type name)
Product: utilities Reporter: _ sandipchitale <sandipchitale>
Component: Jump ToAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: blocker CC: markiewb
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ sandipchitale 2005-03-18 00:14:27 UTC
The text field where one types the name of the class in Go to Class dialog 
could be initialized with the contents of clipboard if it contains a valid 
Java Type name (fully qualified or otherweise). The text should be pre-
selected so that user can simply hit delete and start from scratch or ovewrite.

This is helpful when one has copied the Java Type name into the clipboard from 
some other window - for example command shell window or other editor etc.

This behaviour may be under the control of some option:

[ ] Initialize dialogs with Clipboard content when applicable.

under Tools:Options:Source Creation and Management:...
Comment 1 Jan Pokorsky 2005-03-18 09:49:26 UTC
Go to Class belongs to the editor, reassigning
Comment 2 _ sandipchitale 2007-11-27 00:24:30 UTC
Seems to work like that in NB 6.0. Close this.
Comment 3 markiewb 2012-05-16 06:45:58 UTC
(In reply to comment #2)
> Seems to work like that in NB 6.0. Close this.


Veto: The request here is to use the clipboard content.

Currently supported: the element at the carret is used for preinitalising the "go to type"-dialog.
Comment 4 markiewb 2012-10-29 17:14:46 UTC
Simple workaround:

* invoke the action for opening the "go to type"-dialog -> the dialog opens and the text in the textfield is selected
* Paste the content of the clipboard.