kamalchopra / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

Auto Completion: Select with Mouse Buttons #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I embedded the jsyntaxpane into my program and used the Java syntax
2. I pressed Ctrl + space to trigger auto completion
3. I want to use the mouse to select the keyword, but there are no response

What is the expected output? What do you see instead?
I expect that the keyword would be inputted after clicking with the mouse.
 It turns out that it doesn't work that way, and I am stuck on the auto
complete screen.  Even pressing "Enter" doesn't get me out of this mode.

What version of the product are you using? On what operating system?
I am using jsyntaxpane-0.9.5-b7 on Java 6.  The OS is Windows Vista.

Please provide any additional information below.

Original issue reported on code.google.com by fac...@gmail.com on 25 Feb 2009 at 2:13

GoogleCodeExporter commented 9 years ago
Strange.  I could not re-create the issue on XP and JDK 6u10, or 6u12.
What should happen is that when you click a selection, the typed text does not 
change.
Only when you press one of the closing keys (for java they are ENTER, ";", "(", 
"=",
TAB) will the selected word be typed and the dialog closed.
If you press ESC, then the completion dialog is closed, and the typed text does 
not
change.  This closely mimics NetBeans and possible other IDE's.

Original comment by ayman.al...@gmail.com on 25 Feb 2009 at 5:59

GoogleCodeExporter commented 9 years ago

Original comment by ayman.al...@gmail.com on 25 Feb 2009 at 5:59

GoogleCodeExporter commented 9 years ago
I guess I am used to develop with Eclipse IDE where I can use the mouse point to
select the auto completed choices.  Do you think that this feature should be 
placed
in jSyntaxPane?  I thought it would be a great addition to the existing 
function now.

Original comment by fac...@gmail.com on 10 Mar 2009 at 7:41

GoogleCodeExporter commented 9 years ago
Regardless of the IDE, auto-completion, as currently implemented should support 
mouse
clicks, as it is actually a plain old JList.
The Text component however does not change when you click an item.  It will 
change
and be pasted when you press any of the completion keys (ENTER, SPACE, DOT and 
others).

Or do you mean that you'd prefer to have the selection pasted when you do 
dbl-click
on the item?

Original comment by ayman.al...@gmail.com on 10 Mar 2009 at 1:41

GoogleCodeExporter commented 9 years ago
Yes, I mean that I think adding the option to have the selection pasted upon 
double-
click would be a welcoming feature.

Original comment by fac...@gmail.com on 10 Mar 2009 at 2:48

GoogleCodeExporter commented 9 years ago
Fixed in r106

Original comment by ayman.al...@gmail.com on 15 Mar 2009 at 9:28