Menu

#2588 Search and Replace Dialog Inconsistent Focus Behaviour

closed
None
5
2006-08-09
2006-07-24
No

Sometimes when I bring up the Search and Replace Dialog
the focus is in the "search for" box. Sometimes I must
tab to get it in there. Naturally the inconsistency is
maddening. I can't work out any pattern to it apart
from the focus will always be in the right place if I
cancel the dialog and bring it up again straight away.
It is as if not bringing it up for a while makes it
"forget" to put the focus in the right place. Please
contact me if you need more details -- bakert@gmail.com

jEdit 4.2final

GTK Look and Feel

Ubuntu 6.06 (Dapper Drake)

java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed
mode, sharing)

Discussion

  • Alan Ezust

    Alan Ezust - 2006-07-31
    • assigned_to: nobody --> ezust
     
  • Alan Ezust

    Alan Ezust - 2006-07-31

    Logged In: YES
    user_id=935841

    I'll see if I can reproduce it. I don't normally use the
    regular search/replace dialog, but I've been fixing a bunch
    of other similar bugs in other dockables, so I can probably
    take care of this too.

    Can you try the XSearch plugin and see if you have the same
    problem with that?

    http://lazarus.oddiofile.com:81/workspace/jEditCVS/build/jars/XSearch.jar

     
  • Thomas David Baker

    Logged In: YES
    user_id=1555613

    I installed XSearch through plugin manager -- dialog remains
    the same with the same behaviour. Does XSearch replace the
    Search dialog? Or is that not what you meant?

    I should mention that this is the same with the Metal Look
    and Feel with any customizations I did removed.

    I should also mention that jedit is very unstable on my
    system. It doesn't actually crash but the UI disappears
    frequently and I need to call it back by restarting (it
    doesn't actually restart, it just pops back on the screen
    right away).

    I also get a variety of errors from XSearch such as when I
    try to call quick-xfind-standard-options:

    java.lang.ArrayIndexOutOfBoundsException: 0:1
    at org.gjt.sp.jedit.Buffer.getText(Buffer.java:1058)
    at
    org.gjt.sp.jedit.textarea.JEditTextArea.getText(JEditTextArea.java:1292)
    at
    xsearch.XSearchAndReplace.assignSelectionToSearchString(XSearchAndReplace.java:783)
    at
    xsearch.XSearchAndReplace.quickXfind(XSearchAndReplace.java:804)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
    Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at bsh.Reflect.invokeOnMethod(Reflect.java:149)
    at bsh.Reflect.invokeStaticMethod(Reflect.java:100)
    at bsh.Name.invokeMethod(Name.java:872)
    at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
    at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
    at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
    at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
    at bsh.BSHBlock.eval(BSHBlock.java:80)
    at bsh.BshMethod.invokeImpl(BshMethod.java:349)
    at bsh.BshMethod.invoke(BshMethod.java:246)
    at bsh.BshMethod.invoke(BshMethod.java:171)
    at
    org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)
    at
    org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
    at
    org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
    at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2910)
    at
    org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown
    Source)
    at
    javax.swing.AbstractButton$Handler.actionPerformed(Unknown
    Source)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
    Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown
    Source)
    at
    javax.swing.plaf.basic.BasicPopupMenuUI$Actions.doReturn(Unknown
    Source)
    at
    javax.swing.plaf.basic.BasicPopupMenuUI$Actions.actionPerformed(Unknown
    Source)
    at javax.swing.SwingUtilities.notifyAction(Unknown Source)
    at javax.swing.JComponent.processKeyBinding(Unknown Source)
    at javax.swing.KeyboardManager.fireBinding(Unknown Source)
    at javax.swing.KeyboardManager.fireKeyboardAction(Unknown
    Source)
    at
    javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown
    Source)
    at javax.swing.JComponent.processKeyBindings(Unknown Source)
    at javax.swing.JComponent.processKeyEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.KeyboardFocusManager.redispatchEvent(Unknown
    Source)
    at
    java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown
    Source)
    at
    java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown
    Source)
    at
    java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown
    Source)
    at
    java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown
    Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
    Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    So perhaps my install is just screwed or the version in the
    repository I am using is messed up?

    deb http://dl.sourceforge.net/sourceforge/jedit ./
    deb-src http://dl.sourceforge.net/sourceforge/jedit ./

     
  • Alan Ezust

    Alan Ezust - 2006-07-31

    Logged In: YES
    user_id=935841

    ah, I see you're still using 4.2final. We are not going to
    fix any bugs in that. If you want to benefit from the
    current development work going into jedit, you'll have to
    update to jedit 4.3pre5 and XSearch 1.3.1 (sent to you in a
    link already).

    Any bug you find with regards to GUI usability issues, we
    will fix before 4.3final comes out.

     
  • Thomas David Baker

    Logged In: YES
    user_id=1555613

    This is fixed in 4.3pre6.

    Thanks and sorry for wasting your time!

     
  • Thomas David Baker

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB